×òÌì×°ÁËһ̨еļÆËã»ú£¬ºÇºÇ£¬ÎÒÖÕÓÚÌø³öÁËPIIµÄÌìµØÁË£¬×ßÈëÁËеÄʱ´ú£¬Ò»¸ãºÃ»úÆ÷ºó£¬Ã»ÓйÜWindowsµÄÊ£¬ÏÈ×°ÉÏBSD£¬°²×°ºÃºó¿ªÊ¼×°Ö®Ç°ÎÒ×Ô¼ºÏ²»¶µÄÂÒÆß°ËÔãµÄ¶«¶«¡£Ò»°²×°£¬ÈÃÎÒ×Ô¼ºÒ²´ó´ó¾ªÑÈÁËÒ»°Ñ¡£ÏÖÔÚµÄBSDÖмÓÈëµÄ¶«¶«Õæ¶àÓ´¡£ºº»¯ºóµÄЧ¹ûÕæºÃÓ´¡£¸üÈÃÎҸоõ²»´íµÄÊÇÎÒϲ»¶Óõļ¸¸öÈí¼þ¹¦Äܸü¼ÓÇ¿´óÁË£¡ÎÒÏÂÃ潫ÎÒÕâ´ÎµÄÖÐÎĺ͸öÐÔ»¯¹ý³Ì¼Ç¼ÏÂÀ´£¬Ï£Íû½«À´×Ô¼ººÍ´ó¼Ò¶¼¿ÉÒÔÓõ½¡£
×°²»×°±ðµÄÈí¼þÏȲ»Ëµ£¬ÇëÏȸüÐÂÄãµÄports tree£¬·½·¨Ò²ºÜ¼òµ¥µÄÓ´¡£½«/usr/share/examples/cvsupÖеÄports-supfile¸´ÖƵ½/rootÖС£
¸Ä¶¯¸üзþÎñÆ÷ΪÄãϲ»¶µÄcvsup·þÎñÆ÷¡£Ö®ºó£º
cvsup -g -L 2 /root/ports-supfile
ÎÒ×îϲ»¶µÄ¸öÐÔ»¯Èí¼þÖ®Ò»ÊÇgnuls£¬Ò»·½ÃæÊÇËüµÄ¹¦ÄܺÜÇ¿£¬ÁíÒ»·½ÃæËüµÄÉ«²ÊÏÔʾ¸ü·ûºÏÎÒµÄÊÓ¾õЧ¹û£º
cd /usr/ports/misc/gnuls
make install clean
ÎÒ¶ÔJavaÊÇÄÄôµÄϲ»¶£¬ÎÒµÄBSDÉÏÒ»¶¨»áÓÐJava£¬Í¬Ê±ÎҵĿª·¢Ò²ÊÇÔÚBSDÏÂ×öµÄ£¬ËùÒÔҲҪװÉÏÎÒϲ»¶µÄEclipseÒÔ¼°ËüµÄ¹ú¼Ê»¯Èí¼þ°ü
cd /usr/ports/java/jdk
make install clean
Õâ¹ý³ÌÒªÈÃÄã×Ô¼ºÈ¥Ï¼¸¸öÈí¼þ£¬¿´×ÅÌáʾ×ö°Õ¡£»¹ÓоÍÊDZàÒëʱÐèÒªenable linux base¡£Ôõô×ö×Ô¼ºµ½sysinstall¿´¿´¾Í³ÉÁË¡£¸üÐèҪעÒâµÄÊÇmake jdkÐèÒª°ÑlinuxµÄproc mountÉÏÀ´£¬Èç¹ûÄãûÄÜmount linux proc£¬ÔÚmake¹ý³ÌÖлáÌáÐÑÄãµÄ¡£ÎÒ¸ü¼òµ¥£¬½«ÏÂÃæÕâ¾ä¼ÓÈë/etc/fstab
linprocfs /compat/linux/proc linprocfs rw 0 0
È»ºó
mount /compat/linux/proc
¾ÍºÃÁË¡£×°eclipse¾Í¸ü¼òµ¥ÁË£º
cd /usr/ports/java/eclipse
make install clean
cd /usr/ports/java/eclipse-langpack
make install clean
ºÇºÇ£¬ÎÞ´¦²»ÔÚµÄJavaÒ²ÔÚÎҵĻúÆ÷ÖÐÓ´¡£ÐèҪעÒâµÄÊÇ×°ºÃÕâЩ¶«¶«ºóÒª½«×Ô¼ºµÄ»·¾³Ò²ÉèÖúá£ÔÚshellÉÏÎÒϲ»¶Ê¹ÓÃbash£¬Èç¹ûÄãʹÓõÄÊDZðµÄshell£¬ÄÄôÄã¾Í¿¼ÂÇÒ»ÏÂ/etc/profile¸ÄΪÄã×Ô¼ºµÄshellµÄÏà¹ØÓï¾ä£º
PS1='\u@\w$'
alias ls="gnuls --color --show-control-chars"
alias ll="ls -l"
export XMODIFIERS='@im=fcitx'
export LANG=zh_CN.EUC
export LC_CTYPE=zh_CN.EUC
export JAVA_HOME=/usr/local/java
export CLASSPATH=.
ºÇºÇ£¬ÄãÒ»¶¨¿´µ½ÎÒÔÚprofileÖÐÉèÖÃÁËÊäÈë·¨ÊÇfcitx£¬¿ÉÊÇûÓÐװѽ£¡²»Òª×ż±£¬·Ç³£¼òµ¥µÄ£º
cd /usr/ports/chinese/fcitx
make install clean
еÄfcitx 2°æ±¾×öµÄ¸üƯÁÁÁË£¬Ê×ÏÈÊǽçÃæ±ÈÒÔÇ°¸üºÃ¿´ÁË£¬ÔÙ¾ÍÊÇ~/.fcitx/configÎļþÖеÄÅäÖö¼ÊÇÖÐÎĵģ¬¼òµ¥µÄ°´ÄãµÄÏ°¹ß¸ü¸Ä¾ÍºÃÁË¡£»¹ÓоÍÊÇÔÚÊäÈëÎå±Êʱ¿ÉÒÔʹÓÃz¿ªÍ·À´ÊäÈëÆ´Òô£¬ÒÔ¼°Ê¹ÓÃÒ»¸ö°´¼üÀ´Çл»ÖÐÓ¢ÎÄģʽ¡£ÒѾ¿ì±ÈµÃÉÏÎÒϲ»¶µÄÍòÄÜÎå±ÊÁË¡£ :)
FreeBSDϵĴ°¿ÚÏÖÔÚÒ²Ô½À´Ô½ºÃÓÃÁË£¬¶øÇÒ¸öÐÔ»¯Ê®×㣬Ϊʲô²»ÓÃÄØ£¿ÎÒÒѾ½«Ëü±äΪÎÒµÄofficeºÍ¿ª·¢Æ½Ì¨ÁË¡£ÏÂÃæÎÒÃÇÏÈÀ´×°X£º
cd /usr/ports/x11/XFree86-4
make install clean
ÔÙÀ´°²×°Ò»¸öÓÅÐãµÄ×ÀÃægnome£º
cd /usr/ports/x11/gnome2
make install clean
ΪÁËÈÃXÆô¶¯Ê±¾Í½øÈëgnome£¬ÔÚ~/.xinitrcÖмÓÈëÒÔÏÂÄÚÈÝ£º
exec gnome-session
ͬʱchmod +x .xinitrc£¬ÈÃÆäÓпÉÖ´ÐеÄÄÜÁ¦¡£
ÔõôÅäÖÃX£¿Äã²»»áÂð£¿ÎÒÒ²²»Ïë¶à˵£¬Äã×Ô¼ºÊ¹ÓÃsysinstallÖеÄXÅäÖÃÊÔÊÔ°Õ¡£×ÜÖ®£¬ÅäÖúÃÒÔºóÄãÔÚ/etc/X11ÖÐÓ¦¸ÃÓÐÒ»¸öXF86ConfigµÄÅäÖÃÎļþ¡£
»¹ÓÐʲôÂ𣿶ԣ¬¾ÍÊÇÖÐÎÄ×ÖÌåÁË£¬½«simsun.ttf¸´ÖƵ½/usr/X11/lib/X11/fonts/TTFĿ¼ÖС£ÔÙ±àÒëÒ»ÏÂttmkfdir£º
cd /usr/ports/x11-fonts/ttmkfdir
make install clean
²»ÖªÎªÊ²Ã´£¬ÏÖÔÚportsÖеıàÒë²»¹ýÈ¥£¬ÎÒÓõÄÊÇpkg_add -rÀ´×°µÄttmkfdir¡£Ò²ÎÞËùνµÄÁË¡£
×°ºÃttmkfdirºó£¬ÎÒÃÇÉú³ÉÒ»ÏÂsimsunµÄfont˵Ã÷Îļþ£º
cd /usr/X11R6/lib/X11/fonts/TTF
ttmkfdir > fonts.dir
cp fonts.dir fonts.scale
ÔÙʹÓÃfc-cache¸üÐÂһϣº
fc-cache -f -v
ÕâʱÄã×îºÃ¼ì²éÒ»ÏÂÄãµÄXF86ConfigÖеÄFontdirÓÐûTTF£¬ÕâÊÇÎÒµÄÅäÖÃÎļþÖÐÓйØ×ÖÌåµÄÒ»¸öƬ¶Î£º
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
EndSection
Õâ¸öºÜÖØÒª£¬ÒòΪXºÍgtkÊÇʹÓÃÕâ¸ö·¾¶À´ÕÒ×ÖÌåµÄ¡£ÎÒ֮ǰ¾ÍÊÇûÓÐд£¬ÔÚgnomeÖÐÄÜÕÒµ½simsun£¬µ«ÊÇopenofficeºÍxmmsÕâÑùµÄ³ÌÐò¾ÍÕÒ²»µ½simsunµÄ¡£
×îºóΪÁËÒÔǰʹÓÃgtkµÄÓ¦ÓÃʹÓÃÖÐÎÄ£¬ÎÒÃÇÐèÒªÔÚhomeĿ¼Ï¼ÓÈëÒ»¸ö.gtkrc.mineÎļþ£¬ÄÚÈÝÊÇ£º
style "gtk-default-zh-cn" {
fontset = "-*-*-medium-r-normal--12-*-*-*-*-*-iso10646-1,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
²î²»¶àÁË¡£ÏÖÔÚÄã´óµ¨µÄʹÓÃstartxÀ´½øÈëÃÀÀöµÄÐÂÊÀ½ç°Õ£¡½øµ½gnomeÖгõʼµÄ×ÖÌ廹²»ÊÇsimsun£¬ÇëÔÚ×ÖÌåÉèÖÃÖн«Ïà¹ØµÄ×ÖÌåÉèÖÃΪsimsun¡£Í¬Ê±ÔÚEpiphany(ÕâÊÇgnome×Ô´øµÄä¯ÀÀÆ÷£¬ºËÐÄʹÓõÄÊÇmozilla)Öн«Ïà¹Ø×ÖÌåÒ²ÉèÖÃΪsimsun¡£
²»ÖªµÀÄãµÄmouseÊÇʲôÑù×ӵģ¬ÎÒµÄmouseÖмäÓÐÒ»¸öСµÄ¹öÂÖ£¬Õâ¸ö¶«¶«ÒѾ³ÉΪÎÒµÄ×î°®£¬ÔÚXÖÐûÓÐËü¶à²»Ë¬£¬ÎÒÃÇÀ´¼ÓÉÏ£¬»¹ÊǸü¸Ä/etc/X11/XF86ConfigÖÐÏà¹ØµÄÄÚÈÝΪÏÂÃæÕâЩ£º
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/sysmouse"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
ºÇºÇ£¬ÄãµÄ¹öÂ־ͿÉÒÔÓÃÁË£¡£¡£¡
²»¹ý£¬Ö»ÊÇÓÐÒ»¸ö¿ÉÒÔÓõÄ×ÀÃæ¾ÍÏñÊÇÖ»ÓÐÒ»¸öwindowsÒ»Ñù²»ÐУ¬ÎÒÑù»¹ÐèÒªÒ»¸ö·Ç³£ºÃµÄÎÄ×Ö´¦Àí¼¯³É¹¤¾ßopenoffice£º
cd /usr/ports/chinese/openoffice-1.1-zh_CN
make install clean
°²×°Íê³Éºó£¬´ò¿ªÒ»¸öÖնˣ¬ÊäÈëopenoffice-1.1¡£µÚÒ»´ÎÊäÈëÕâ¸öÃüÁî»áÈÃÄã°²×°Ò»¸öopenoffice£¬ÇëʹÓÃ×îС»¯µÄ°²×°£¬Ëü»áÔÚÄãµÄhomeĿ¼ÖÐÉú³ÉÒ»¸öÄãµÄ¸öÈ˹¤×÷Ŀ¼£¬Õâ¸öĿ¼²î²»¶àÖ»ÓÐ2M¡£Íê³ÉºóÔÙÊäÈëÕâ¸öÃüÁî¾Í½øÈëOpenoffice¼¯³É°ì¹«»·¾³ÁË¡£ÐµÄ1.1ÒѾ¶ÔÖÐÎÄÖ§³Ö·Ç³£ºÃÁË£¬Èç¹ûÄã°´ÉÏÃæµÄ°ì·¨¼ÓÈëÁËsimsun£¬OOÒ²¾ÍʹÓÃSimSunÀ´½øÐÐÏÔʾ£¬Í¬Ê±ÎĵµµÄÖÐÎÄ×ÖÌåÒ²ÊÇĬÈÏSimsunÁË¡£
ÌýÒôÀÖ°Õ£¬ÎÒÃǵÄxmms¸ÃÏÖÉíÁË£º
cd /usr/ports/chinese/xmms
make install clean
×°ºÃºóÆô¶¯xmms£¬½«×ÖÌåÖеÄÁ½¸ö×ÖÌåÉèÖÃΪsimsun£¬12ºÅ´óС£¬Äã¾Í¿´µ½Ò»¸öwinamp for FreeBSDÁË¡£ :)
ÎҵĻúÆ÷ÊÇP4 2.6c/DDR 400 512MÄÚ´æ¡£ÎÒÏòÀ´Ï²»¶×Ô¼º±àÒë°²×°µÄ£¬ÒÔÉϵijýFreeBSD³õʼ°²×°ÍⶼÊÇÎÒ×Ô¼º±àÒëµÄ(ttmkfdir³öÁËÎÊÌâ¾ÍʹÓÃÁËpkg_add -r)¡£Ê¹ÓÃÁËÔ¼Ò»¸öÍíÉϵÄʱ¼ä¡£¿´À´HT»¹ÊǺܲ»´íµÄ¡£ºÇºÇ£¬±¾ÎľÍÊÇÓõĸÕ×°ºÃµÄ¹¤×÷»úдµÄÓ´¡£ÎÒÕæÊÇ̫ϲ»¶Õâ¸öfcitxÁË£¬Ë¬¾ÍÒ»¸ö×Ö£¬Ï£ÍûÓë´ó¼Ò·ÖÏíÎҵĿìÀÖ¡£ÒÔϸø³öÎÒ°²×°¼¸¸ö´óµÄ¶«¶«Ê¹ÓõÄʱ¼ä£¬ÊÇ·ñÄã×Ô¼º±àÒ룬ÓÉÄã×Ô¼º¾ö¶¨ÁË£º
openoffice Լ5Сʱ
jdk1.4 p6_2 Լ2Сʱ
gnome Լ5Сʱ
eclipse Ô¼10·ÖÖÓ
cvsup -g -L 2 /root/stable-supfile
ÕâÑù¾Í½«×îеIJÙ×÷ϵͳԴ´úÂë¸üе½ÁËÄãµÄ»úÆ÷ÉÏ¡£½ÓÏÂÀ´ÎÒÃDZàÒëϵͳÖеÄÏà¹Ø´úÂ룬²¢¸üÐÂϵͳ£º
cd /usr/src
make buildworld
make buildkernel KERNCONF=YOUR_KERNEL_HERE (Èç¹û²»ÖªµÀYOUR_KERNEL_HEREÊÇʲô£¬ÇëʹÓÃGENERIC)
make installkernel KERNCONF=YOUR_KERNEL_HERE (Èç¹û²»ÖªµÀYOUR_KERNEL_HEREÊÇʲô£¬ÇëʹÓÃGENERIC)
reboot
Æô¶¯ºóÈç¹û²»ÄÜÕý³£µÄ½øÈë²Ù×÷ϵͳ£¬ÄÄôÔÙ´ÎÖØÆôʹÓõ¥Óû§Ä£Ê½À´½øÐÐÏÂÃæµÄ²Ù×÷(½øÈëµ¥Óû§Ä£Ê½ºó²»ÒªÍü¼Çmount -a½«ËùÓеķÖÇø¼ÓÔØ)¡£
mergemaster -p
make installworld
mergemaster
reboot
ÔÚmergemasterµÄ¹ý³ÌÖлáÎʲ»ÉÙÎÊÌ⣬Ö÷ÒªÓÐÁ½ÖÖ£¬Ò»ÖÖÊǽ«ÅäÖÃÎļþ·ÅÔÚ/tmpµÄÒ»¸öĿ¼Ï£¬ÊÇ·ñɾ³ý£¬ÎÒ½¨ÒéÔÚÄã²»Öªµ±Ç°»á²úÉúʲôÎÊÌâµÄÇé¿öÏÂʹÓÃn¶ø²»È¥É¾³ý£¬ÕâÑù³öÁËÎÊÌâÒ²¿ÉÒÔÓлָ´µÄ»ú»á¡£ÁíÒ»ÖÖÊÇmergemasterµÄ²Ù×÷¹ý³ÌÖÐÎÊÄãÊÇi¡¢d»¹ÊÇm¡£³õѧÕß½¨ÒéֻʹÓÃiºÍd»Ø´ðÎÊÌâ¡£½¨Òé³ýÒÔÏÂÎļþʹÓÃdÀ´É¾³ýÖ®ÍâÆäËüÎļþ¶¼Ê¹ÓÃi½øÐа²×°£º
/etc/hosts
ËüÃÇÈý¸ö·Ö±ðÊÇϵͳÆô¶¯ÅäÖÃÎļþ¡¢dns·þÎñÆ÷ÅäÖÃÎļþ¡¢Ö÷»úÃûÅäÖÃÎļþ¡£
ºÇºÇ£¬³õѧcvsupÉý¼¶ÏµÍ³¸Ð¾õ±È½ÏÅÂÅ£¬µ«ÊÇÈç¹ûÄã»áÓÃÁË£¬¾Í»á·¢ÏÖ£¬Ö»ÒªÓÐInternet£¬ÄÄôÄãµÄFreeBSD×Ü»áÊÇ×îеĺÍ×ȫµÄϵͳ¡£