中科大的centos源恢复

昨天把centos升了下级。cn99的源失效后,很难找到速度能与之相比的源就一直没更新,突然发现中科大的源又恢复了,就换了源升了下级,电信访问速度还是很快的!

安装后请按照以下步骤修改CenOS-Base.repo,以后就可以方便的用yum安装软件了.
cd /etc/yum.repos.d
mv CentOS-Base.repo  CentOS-Base.repo.save
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo

顺便再记录几个centos的源:
上海交通大学:http://ftp.sjtu.edu.cn/centos/
清华大学:http://mirror.lib.tsinghua.edu.cn/centos/
山东电信:http://mirrors.ta139.com/centos/

为centos安装NTFS支持

我用的centos5.2,默认不支持NTFS格式的分区,无法共享windows分区下的文件,需要安装NTFS支持!

经过搜索找到解决之道!

首先,查看自己系统的内核版本!

# uname -r
2.6.18-92.1.13.el5

其次,在这里找到对应的内核模块文件下载

http://sourceforge.net/project/showfiles.php?group_id=13956&package_id=24313

如我的是:kernel-module-ntfs-2.6.18-92.1.13.el5-2.1.27-0.rr.10.11.i686.rpm

最后,安装下载来的rpm包,

运行/sbin/modprobe ntfs加载内核模块。

运行dmesg | grep NTFS,可以查看NTFS驱动版本。显示

# dmesg | grep NTFS
NTFS driver 2.1.27 [Flags: R/W MODULE].

就可以挂载NT格式的分区了!

centos5.2中VirtualBox中文显示为乱马的解决方法

vmware体积越来越庞大,对于只需要简单的虚拟应用来说,VirtualBox还是不错的选择!

我的centos5.2直接下载rh5的rpm安装包,装完后能顺利启动,不过就是显示字符全为方块,网络搜索发现解决办法,只需要安装bitmap-fonts-cjk包。

centos的cn99的源

一直用ubuntu,现在我的本本就是ubuntu,一直用cn99的源,电信速度非常快。前两天装了cnetos,一直在找一个稳定且快速的源,就中科大的那个快,其他的都差不多的慢,很怀恋当初ubuntu下用cn99源的感觉,不想一搜之下居然有一个。那就没什么好说的了,用就一个字。

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://mirrors.cn99.com/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=updates
baseurl=http://mirrors.cn99.com/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=addons

baseurl=http://mirrors.cn99.com/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=extras

baseurl=http://mirrors.cn99.com/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=centosplus
baseurl=http://mirrors.cn99.com/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=contrib
baseurl=http://mirrors.cn99.com/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5