感谢支持
我们一直在努力

CentOS5配置笔记

题外话:在玩CentOS5和debian4,发现默认配置debian会比较周到全面,比以前的2个旧版进步很大,适合新手。两个发行版的openoffice都相当不错的说,中文输入scim(只测试过五笔输入)也相当好用。尤其值得称道的是firefox(debian下叫ice….什么着)浏览器非常好用了,在普通浏览下视觉体验已经与IE不相上下,不过在一些特殊应用,比如银行的网银应用上,兼容性还不行,比如在登录建行网银时,无法自动弹出输入密码的软键盘,可能是插件的问题吧。

samba配置中文机器(主机)名

这两三天为了搞定centos5的samba让它显示中文机器(主机)名,搞得很狼狈,结果是用了swat后,在swat里更改参数后才成功。把关键配置记下做个备忘。

[global]

dos charset = CP936

unix charset = utf8

workgroup = mygroup

server string = 文件服务器

log file = /var/log/samba/%m.log

max log size = 50

os level = 99

preferred master = Yes

dns proxy = No

注意前面两行配置,第一行是配置在win客户端上的显示的代码面,试过前面两行都用cp936不行(但是貌似在debian下可以,有点诡异的说),,只能一个cp936一个utf8。还有“client code page ”这个参数已经被废弃了。用testparm提示是个非法参数。NND,今晚总算可以安心睡觉了。防火墙的自定义配置端口格式

swat:tcp

yum更新站点配置文件

修改/etc/yum.repos.d下的CentOS-Base.repo

[base]
name=CentOS-5.0 – Base
baseurl=http://mirror.be10.com/centos/5.0/os/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[update]
name=CentOS-5.0 – Updates
baseurl=http://mirror.be10.com/centos/5.0/updates/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-5.0 – Addons
baseurl=http://mirror.be10.com/centos/5.0/addons/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5.0 – Extras
baseurl=http://mirror.be10.com/centos/5.0/extras/$basearch/
gpgcheck=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.0 – Plus
baseurl=http://mirror.be10.com/centos/5.0/centosplus/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#contrib – packages by Centos Users
[contrib]
name=CentOS-5.0 – Contrib
baseurl=http://mirror.be10.com/centos/5.0/contrib/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages in testing
[testing]
name=CentOS-5.0 – Testing
baseurl=http://mirror.be10.com/centos/5.0/testing/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

注意所有的gpgcheck=0,这是因为更新时老提示NO key,懒得去导入key(不提倡,西西),就把1改为0

赞(0) 打赏
转载请注明出处:服务器评测 » CentOS5配置笔记
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏