The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features
See the new ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
ports&配置
== 加速ports ==
vi /etc/make.conf
# 在x86amd64系统中,axel2.4 安装vnc时会报错,由axel2.4的一个bug导致
FETCH_CMD=axel
FETCH_BEFORE_ARGS= -n 10 -a
FETCH_AFTER_ARGS=
DISABLE_SIZE=yes
MASTER_SITE_OVERRIDE?=\
http://ports.hshh.org/${DIST_SUBDIR}/\
http://ports.cn.freebsd.org/${DIST_SUBDIR}/\
ftp://ftp.freeBSDchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}
使用代理
在~/.cshrc中设置HTTP_PROXY和FTP_PROXY (sh或者bash用户用export)
setenv HTTP_PROXY 10.84.21.76:27015
setenv FTP_PROXY 10.84.21.76:27015
在/etc/make.conf中添加两行:
FETCH_ENV= FTP_PROXY=10.84.21.76:27015
FETCH_ENV= HTTP_PROXY=10.84.21.76:27015
(注意:=号后面的空格不可少)
== 更新ports ==
[root@bsd01 /usr/ports]# vi /etc/portsnap.conf
SERVERNAME=portsnap.hshh.org
# portsnap fetch extract
# portsnap fetch update
/var/db/portsnap
== 配置文件 ==
/etc/profile 此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行,并从/etc/profile.d目录的配置文件中搜集shell的设置.
/etc/bashrc 为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取.
~/.bash_profile 每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件.
~/.bashrc 该文件包含专用于你的bash shell的bash信息,当登录时以及每次打开新的shell时,该该文件被读取.
~/.bash_logout 当每次退出系统(退出bash shell)时,执行该文件.
另外,/etc/profile中设定的变量(全局)的可以作用于任何用户,而~/.bashrc等中设定的变量(局部)只能继承/etc/profile中的变量,他们是"父子"关系.
~/.bash_profile 是交互式、login 方式进入 bash 运行的
~/.bashrc 是交互式 non-login 方式进入 bash 运行的
通常二者设置大致相同,所以通常前者会调用后者。
./usr/local/lib/eclipse/eclipse.ini
== 分区 ==
/var /tmp的写操作很频繁 分区的时候可以放在/home之前 提升效率
根分区独立分割成一个只会做读取动作的空间,在异常关机时,磁盘空间也不容易损毁。
BSD的block size预设是16k 如果跑MYSQL的话 尤其是8.0平台上 将block size设置为8k 性能提升是最明显的。
你用sysinstall分区时的那个N选项 不知道你留意过没有 N = Newfs Opts 就是让你用newfs来格式化硬盘的。
详情参考:http://www.twbsd.org/chs/book/index.php?ch=09