分类: BSD
2005-05-20 08:49:51
我的主要步骤是:
= 1 安装系统和软件包 =
下载以后,先安装系统部分。然后,重新起动。
用如下命令,起用光盘:
代码: |
mount_cd9660 /dev/acd0 /cdrom |
代码: |
cd x11 pkg_add xorg-6.8.2.tbz pkg_add kde-3.4.0.tbz |
代码: |
cp /usr/local/share/vim/vim63/vimrc_example.vim /usr/local/share/vim/vimrc |
代码: |
alias ls ls -aGw # 彩色显示目录文件 setenv LANG zh_CN.eucCN setenv LC_LANG zh_CN.eucCN #setenv LC_CTYPE zh_CN.UTF-8 # 让系统默认文件编码为utf-8 #setenv LC_CTYPE zh_CN.eucCN # 让系统默认文件编码为GB2312 setenv XMODIFIERS @im=fcitx # 我使用小企鹅输入法 |
代码: |
gateway_enable="YES" linux_enable="YES" moused_enable="YES" sshd_enable="YES" usbd_enable="YES" ifconfig_rl1="inet 192.168.0.1 netmask 255.255.255.0" # 修改为你的 IP 地址和网卡 hostname="office.baow.com" # 修改为你自己的主机名称 |
代码: |
default: set log Phase tun command set ifaddr 10.0.0.1/0 10.0.0.2/0 set timeout 100 adsl: set device PPPoE:rl0 # 使用 rl0 网卡 set mru 1492 set authname 123456 # 修改为你的ADSL帐号 set authkey 123456 # 修改为你的密码 set dial set login add default HISADDR |
代码: |
domain baow.com nameserver 202.106.0.20 # 可以按照上边格式,加入第二个域名解析服务器 |
代码: |
cp /usr/share/examples/cvsup/ports-supfile /usr/MyPorts cd /usr |
代码: |
default host=cvsup2.FreeBSDchina.org |
代码: |
cvsup -g -L 2 MyPports |
代码: |
cd /usr/ports/chinese/fcitx make install clean |
代码: |
mkdir /usr/X11R6/lib/X11/fonts/TrueType/ |
代码: |
mkdir /mnt/WinXP mount_msdosfs /dev/ad0s1 /mnt/WinXP # 适用于FAT #mount_ntfs /dev/ad0s1 /mnt/WinXP # 适用于 NTFS |
代码: |
xorgcfg -textmode |
代码: |
Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" FontPath "/usr/local/share/fonts" FontPath "/usr/X11R6/lib/X11/fonts" FontPath "/usr/local/share/fonts/override" FontPath "/usr/X11R6/lib/X11/fonts/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/bitstream-vera" FontPath "/usr/X11R6/lib/X11/fonts/cyrillic" FontPath "/usr/X11R6/lib/X11/fonts/latin2" FontPath "/usr/X11R6/lib/X11/fonts/local" FontPath "/usr/X11R6/lib/X11/fonts/misc" FontPath "/usr/X11R6/lib/X11/fonts/PEX" FontPath "/usr/X11R6/lib/X11/fonts/Speedo" FontPath "/usr/X11R6/lib/X11/fonts/TTF" FontPath "/usr/X11R6/lib/X11/fonts/Type1" FontPath "/usr/X11R6/lib/X11/fonts/TrueType" FontPath "/usr/X11R6/lib/X11/fonts/URW" FontPath "/usr/X11R6/lib/X11/fonts/chinese" EndSection Section "Module" Load "freetype" # Load "xtt" Load "extmod" Load "glx" Load "dri" Load "dbe" Load "record" Load "xtrap" Load "type1" Load "speedo" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "Auto" Option "Emulate3Buttons" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5" # 添加支持鼠标滚轮 EndSection Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbModel" "pc101" Option "XkbLayout" "us" EndSection Section "Monitor" Identifier "Monitor0" ### Uncomment if you don't want to default to DDC: # 我使用液晶显示器,所以注释掉 # HorizSync 31.5 - 48.5 # VertRefresh 50.0 - 70.0 EndSection Section "Device" Identifier "Card0" Driver "nv" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1024x768" EndSubSection EndSection |
代码: |
exec fcitx & # 运行 fcitx exec startkde # 使用KDE #exec gnome-session # 使用 GNOME |
代码: |
startx |
代码: |
# fcitx 双拼编码方案 # 以'#'打头的行是注释。 # # 双拼编码范围为英文字母键(A到Z)和分号键“;”。在此文件中,为了看起来醒目起见,双拼编码 # 采用大写英文字母(此处也可以用小写字母);而在实际输入过程中,只能使用小写英文字母。 [零声母标识] =O [声母] # 双拼编码就是它本身的声母不必列出 ch=E sh=V zh=A [韵母] # 双拼编码就是它本身的韵母不必列出 ai=L an=J ang=H ao=K ei=Q en=F eng=G er=R ia=D ian=W iang=T iao=Z ie=X in=C ing=Y iong=S iu=R ong=S ou=B ua=D uai=C uan=P uang=T ue=M ve=M ui=M un=N uo=O |
代码: |
colorscheme desert " 选择desert颜色风格 set shiftwidth=4 " tab 键自动调整为4个空格 set tabstop=4 set expandtab " 自动缩进 set backupdir=/usr/local/backup " 默认备份文件目录 set guifont=SimSun 12 " 设置默认字体为 simsun |
代码: |
cd /usr/ports/editors/vim make -DWITH_GTK2 install |