设置yum的数据源:
我使用的是FC,以下是具体的配置步骤:
1.修改/etc/yum.conf文件:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
[base]
name=fedora core
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/debug/
http://rpmfind.net/linux/fedora/extras/5/i386/
注意:baseurl中,没有使用变量代替路径,比较lazy。
2.安装完成后,启动smb服务。
chkconfig smb on
chkconfig smb --list //查看是否启动成功
修改计算机名字
1.# vi /etc/sysconfig/network-scripts/ifcfg-eth0
HOSTNAME=名字
2.# vi /etc/hosts
127.0.0.1 名字
3. 启动服务
service network restart

