1. cd /usr/src/sys/i386/conf/
vi GENERAL
add
options IPFIREWALL # enables IPFW
options IPFIREWALL_VERBOSE # enables logging for rules with log keyword
options IPFIREWALL_VERBOSE_LIMIT=5 # limits number of logged packets per-entry
options IPFIREWALL_DEFAULT_TO_ACCEPT # sets default policy to pass what is not explicitly denied
options IPDIVERT # enables NAT
yves2005 發表在 痞客邦 留言(0) 人氣(10)
1.
# cd /usr/ports/devel/subversion
# make install clean
yves2005 發表在 痞客邦 留言(0) 人氣(15)
FreeBSD 作弊条
在 ls 时显示多种颜色
打开 /etc/csh.cshrc(全局生效) 或者 ~/.cshrc(当前用户有效),加入下列设置:
setenv LSCOLORS ExGxFxdxCxegedabagExEx
setenv CLICOLOR yes
根据之前修改的配置文件,在命令行运行如下命令,以 /etc/csh.cshrc 为例:
source /etc/csh.cshrc
yves2005 發表在 痞客邦 留言(0) 人氣(13)
1. pkg_add -r vim ,
2. 裝好後 cp /usr/local/share/vim/vim73/vimrc_example.vim ~/.vimrc 就可以顯示彩色了
yves2005 發表在 痞客邦 留言(0) 人氣(6)
1. ifconfig bridge create
2. check bridge status -> ifconfig bridge0
yves2005 發表在 痞客邦 留言(0) 人氣(82)
1.portsnap
setup : /etc/portsnap.conf
modify ==> SERVERNAME=portsnap.tw.freebsd.org
step1: get port data
portsnap fetch extract
yves2005 發表在 痞客邦 留言(0) 人氣(53)
1.
#
pkg_add -r xorg
注意: 上面的例子介绍了如何安装完整的 X11 软件包, 包括服务器端,客户端,字体等等。 此外, 也有一些单独的 X11 的 ports 和 packages.
另外, 如果需要最小化的 X11 软件, 您也可以安装 x11/xorg-minimal。
yves2005 發表在 痞客邦 留言(0) 人氣(30)
###############
.cshrc
################
# $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $
#
# System-wide .cshrc file for csh(1).
yves2005 發表在 痞客邦 留言(0) 人氣(204)
1.
# vi /etc/rc.conf
usbd_enable="YES"
2.
# mkdir /mnt/sda1(先建立一個資料夾,準備讓usb的檔案掛載進來)
# mount_msdosfs -L zh_TW.Big5 /dev/da0s1 /mnt/sda1
(要加入 zh_TW.Big5 , 否則中文會變亂碼)
yves2005 發表在 痞客邦 留言(0) 人氣(282)
top - display and update information about the top cpu processes
OPTIONS
-C Toggle CPU display mode. By default top displays the weighted
CPU percentage in the WCPU column (this is the same value that
ps(1) displays as CPU). Each time -C flag is passed it toggles
between "raw cpu" mode and "weighted cpu" mode, showing the
"CPU" or the "WCPU" column respectively.
-S Show system processes in the display. Normally, system pro-
cesses such as the pager and the swapper are not shown. This
option makes them visible.
yves2005 發表在 痞客邦 留言(0) 人氣(76)