12月29
因其他原因,仅用FreeBSD disc1安装了一个最基本的系统起来,里面没有ports。
手头上也没有FreeBSD完整版的光盘,想安装软件都麻烦。

解决:
1、保证此FreeBSD系统能正常上网。

2、编辑make.conf
# vi /etc/make.conf
内容:
MASTER_SITE_OVERRIDE=\
ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}\
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}
保存退出。

3、编辑portsnap.conf
# vi /etc/portsnap.conf
将里面的:
SERVERNAME=portsnap.FreeBSD.org
修改为:
SERVERNAME=portsnap.hshh.org
保存退出。

4、执行:
# portsnap fetch extract && portsnap fetch update


注:如果有其他更快一点的站点,用那快一点的站点也可以。
12月23
在/etc/rc.conf文件内加入以下语句即可:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
12月20
通过ports安装的mysql,没有my.cnf,需要自己copy一份:
# cp /usr/local/share/mysql/mysql-large.cnf /usr/local/etc/my.cnf


Tags: , ,
12月14
在~/.profile或~/.bashrc文件中增加下面的內容:
#stty cs8 -istrip
#stty pass8
export LANG=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK

另外在~/.inputrc(该文件不存在,需要手工创建)文件中增加如下:
# inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.

# Be 8 bit clean.
set meta-flag on
set input-meta on
set output-meta on

# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
set convert-meta off

Tags: , , ,
11月3
automake:
# cd /usr/ports/devel/automake19
# make install clean

autogen:
# cd /usr/ports/devel/autogen
# make install clean
分页: 1/5 第一页 1 2 3 4 5 下页 最后页 [ 显示模式: 摘要 | 列表 ]