freebsd安装完成后,做一些简单的设置吧。
1,系统安装过后,对于一些特别的设置,
ee /etc/csh.cshrc 添加以下内容
setenv LSCOLORS ExGxFxdxCxegedabagExEx
setenv CLICOLOR yes (以上为文件显示为彩色)
setenv GREP_OPTIONS --color=auto (grep显示高亮)
set autolist (使用tab键自动补全)
set correct = cmd (自动纠正输入错误的命令)
setenv LANG zh_CN.GBK
setenv LC_ALL zh_CN.GBK
2,/etc/make.conf的内容:
MASTER_SITE_OVERRIDE?=
http://mirrors.163.com/FreeBSD/distfiles/${DIST_SUBDIR}/
http://ports.hshh.org/${DIST_SUBDIR}/
ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
ftp://ftp.freeBSDchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
WITHOUT_X11=yes
WITHOUT_IPV6=yes
WITHOUT_PRINT=yes
3,安装mysql支持GBK字符
cd /usr/ports/database/mysql51-server/
make WITH_CHARSET=gbk WITH_XCHARSET=all WITH_COLLATION=gbk_chinese_ci install clean