Chinaunix首页 | 论坛 | 博客
  • 博客访问: 640477
  • 博文数量: 197
  • 博客积分: 4858
  • 博客等级: 上校
  • 技术积分: 2162
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-06 22:46
文章分类

全部博文(197)

文章存档

2011年(30)

2010年(21)

2009年(25)

2008年(80)

2007年(41)

分类: BSD

2008-11-17 14:22:21

FreeBSD setenv make.conf
最小化安装后:
1,设置pkg_add的变量,让pkg_add时从国内的站点下载,
代码:
     #setenv PACKAGEROOT “ftp://ftp.freebsdchina.org"
如果想每次开机都自动设置这个变量,可以在.cshrc中加入:
代码:
       setenv PACKAGEROOT “ftp://ftp.freebsdchina.org"
2,安装cvsup-without-gui
代码:
    #pkg_add -r cvsup-without-gui
3,如果要使用ports和src的话,更改/etc/make.conf文件(如果没有此文件,要自己建立该文件)
代码:
     #ee /etc/make.conf
在该文件内增加以下内容:
MASTER_SITE_OVERRIDE?= \
代码:
    ftp://ftp.freebsd.org.cn/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/\
    ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
4,将 /usr/share/examples/cvsup/ports-supfile 和 /usr/share/examples/cvsup/stable-supfile这两个文件里边
的其中一行:
代码:
     default host=CHANGE_THIS.FreeBSD.org
更改为:
代码:
     default host=cvsup.FreeBSDchina.org
(可用ee来编辑这两个文件的内容)

更改前可作个备份。

5,可以更新和ports和src了:
代码:
    #cvsup -g -L 2 /usr/share/examples/cvsup/ports-supfile
    #cvsup -g -L 2 /usr/share/examples/cvsup/stable-supfile
阅读(521) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~