歡迎您光臨本站 註冊首頁

CentOS5下的配置手記

←手機掃碼閱讀     火星人 @ 2014-03-23 , reply:0

題外話:在玩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

[火星人 ] CentOS5下的配置手記已經有438次圍觀

http://coctec.com/docs/linux/show-post-125071.html