freebsdһЩС֪ʶ

2009-05-13 04:23:46À´Ô´£ºÎ´Öª ÔĶÁ ()

ÐÂÀÏ¿Í»§´ó»ØÀ¡,ÔÆ·þÎñÆ÷µÍÖÁ5ÕÛ

1¡¢ÔÚ unix-like Öеµ°¸½á¹¹ÊÇÂúÖØÒªµÄ£¬ÄÇôҪÈçºÎÈ¥¿´Ïà¹Øµµ°¸Ä¿Â¼½á¹¹µÄ˵Ã÷ÄØ£¿
ÄѵÀÊÇ cd µ½Ã¿¸öĿ¼ÏÂÂð£¿ÆäʵÓиüºÃµÄ·½·¨..
ÄǾÍÊÇÓúÃÄÐÈË man À´¿´£º
# man hier
2¡¢ÔÚ console ϲÙ×÷ʱ£¬ÓÉÓÚÆÁÄ»ÏÔʾÓÐÏÞ£¬ÓÐʱÐè¿´Ç°ÃæÏÔʾµÄ×ÊÁÏ£¬ÕâʱÄã¿É£º
. °´Ò»Ï Pause or Scroll Lock¼üºó£¬Ôò¿ÉÀûÓà PageUp PageDown Up Down Home End µÈ¼üÀ´¿´Ç°ºóÏÔʾµÄ×ÊÁÏ
. ÔÙ°´Ò»Ï Pause or Scroll LockÔò¿É»Ø¸´µÈ´ýÊäÈë»­Ãæ.
3¡¢ ʹÓà pw À´¹ÜÀíÄãµÄÕʺÅ
ÔÚ FreeBSD ÏÂʹÓà adduser À´ÐÂÔöÕʺţ¬ÓÐЩʱ»áÂú·³µÄ£¬¿ÉÓÃÒÔÏ·½Ê½£º
pw useradd -n ; -g ; -m -s /bin/csh
=>; -m ´ú±í½¨Á¢Ê¹ÓÃÕßĿ¼
¡ñͬʱÉèÃÜÂë
echo ; | pw useradd -n ; -g ; -m -s /bin/csh -h 0
¡ñ ɾ³ýÕʺÅ
pw userdel -n ; -r
=>; -r ´ú±íͬʱɾ³ýÆä home Ŀ¼µÈÏà¹Ø×ÊÁÏ
¡ñ ÐÞ¸ÄÕʺÅ
pw usermod -g ; -s /bin/csh
PS£ºÎÞ·¨ÐÞ¸ÄÕʺÅÃû³Æ
¡ñ lock ¼° unlock ʹÓÃÕßÕʺÅ
pw lock ;
pw unlock ;
4¡¢ ¼¤»îÄãµÄ screensaver
ÓÉÓÚ FreeBSD ´ó¶àµ±ÎªÖ÷»úʹÓ㬶¼Êdz£ÆÚ²»¹Ø»úµÄ£¬Òò´Ë¿É½«ÆÁÄ»¹Øµô£¬»òʹÓà ScreenSaver ¹¦ÄÜ..
ʹÓà ScreenSaver ÇëÔÚ /etc/rc.conf Õâ¸öµµ¼ÓÈëÒÔÏÂÁ½ÐУº
blanktime="900"
=>; ÒÔÃëÊýΪµ¥Î»£¬ÈçÒÔÉÏΪ 15 ·ÖÖÓ
saver="logo"
=>; logo ÊÇ FreeBSD µÄ¼ªÏéÎï(ͼÐͽӿÚ)£¬ÁíÒ²¿ÉʹÓà "daemon"£¬ÕâÊÇÎÄ×ÖÐÍʽ
5¡¢ ¼ì²éÄãµÄijһ¸ö ports °æ±¾¼°¸üÐÂ
Èç¹ûÒª¸üÐÂËùÓÐµÄ port Ö»ÐèÔÚ /etc/ports/ ÏÂÖ´ÐÐÒÔÏÂÖ¸Á
# make update
ÓÐʱÎÒÃÇ¿ÉÄÜÒª¼ì²éijһ¸ö ports µÄ°æ±¾£¬ÔÚÿ¸ö ports ÖÐµÄ Makefile ¶¼ÓÐÕâÒ»ÐÐ
PORTVERSION= x.x.x
Èç´Ë¾Í¿É¿´µ½Õâ¸ö ports µÄ°æ±¾ÁË£¬ÁíÍâÒ²¿ÉʹÓÃÒÔÏ·½Ê½(Óà grep)£¬±ÈÈçÎÒÃÇÏë¿´ mod_php4 µÄ°æ±¾
# grep PORTVERSION= /usr/ports/www/mod_php4/Makefile
PORTVERSION= ¡¡¡¡1.4.1 ->; °æ±¾Ñ¶Ï¢
Èç¹û°æ±¾Ì«¾ÉÁË£¬Ôò¿ÉÀûÓÃÒÔÏ·½·¨À´¸üе¥Ò» ports
a. ʹÓà portupgrade »ò portinstall£¬ÇëÓà man ²é¿´Ó÷¨
b. µ½ FreeBSD ÍøÕ¾²éѯ×îÐ嵀 ports ÐÅÏ¢£¬²¢×¥ ports »ØÀ´¸üÐÂ
꿅᣼http://www.freebsd.org/cgi/cvsweb.cgi/ports/
×¥»ØÀ´ºóÔÚÏà¹ØĿ¼¸üУ¬ÀýÈçÎÒÃÇ×¥»ØµÄÊÇ mod_php4.tar.gz£¬´æÔÚ /usr/tmp/ Ŀ¼Ï£¬Ôò½âѹËõµÄ·½Ê½ÈçÏ£º
# cd /usr/ports/www/mod_php4
# tar xzvf /usr/tmp/mod_php4.tar.gz
Èç´Ë¾Í ok ÁË..
6¡¢ ¼ÓËÙÄãµÄ°´¼üËÙ¶È..
ÏàÐÅʹÓà FreeBSD µÄÈ˺ܶ඼ÊÇÔÚ console ϲÙ×÷°É£¬ÓÐЩʱ£¬ÒªÖظ´Ä³Ò»°´¼üËÙ¶ÈʵÔÚºÜÂý..
ÁíÒ»¸öÎÊÌâ¾ÍÊÇ cusror µÄλÖÃÓÐЩʱ²»Ì«Ã÷ÏÔ..
¿ÉÓÃÒÔÏ·½·¨À´¸ÄÉÆ£º
ÔÚ /etc/rc.conf ÖмÓÈëÒÔÏÂ×ÊÁÏ..
keyrate="fast"
cursor="blink" »ò "destructive"
7¡¢ É趨¿ª»ú»­Ãæ
ʹÓà windows µÄÈË£¬¶¼ÖªµÀËùνµÄ¿ª»ú»­Ã棬ÔÚ FreeBSD ÏÂÊÇ·ñÒ²Óд˹¦ÄÜÄØ£¿´ð°¸Êǿ϶¨µÄ£¬¶øÇÒÉ趨¸üΪ¼ò±ã£¬ÇëÕÕÒÔÏ steps£º
Ò». Ê×ÏÈÖÆ×÷Ò»¸öͼÐÍÎļþ£¬µµ°¸¸ñʽΪ logo.pcx »ò logo.bmp£¬Ðè×¢ÒâµÄÊÇ .bmp µÄµµ°¸´æÅÌʱ²»ÓÃѹËõ£¬·Ö±æÂÊÐèΪ 640 X 480 ÒÔÄÚ(º¬)£¬É«½×Ϊ 256 É«..
¶þ. ½«´Ëµµ°¸ copy µ½ /boot/ Õâ¸öĿ¼ÏÂ
Èý. É趨 /boot/loader.conf£¬¼ÓÈëÒÔÏÂ×ÊÁÏ
splash_bmp_load="YES" ->; Èç¹ûʹÓà .bmp ¸ñʽ£¬´ËÏîÐèÉèΪ YES
splash_pcx_load="YES" ->; ʹÓà .pcx£¬Ç뽫´ËÏîÉèΪ YES

±êÇ©£º

°æȨÉêÃ÷£º±¾Õ¾ÎÄÕ²¿·Ö×ÔÍøÂ磬ÈçÓÐÇÖȨ£¬ÇëÁªÏµ£ºwest999com@outlook.com
Ìرð×¢Ò⣺±¾Õ¾ËùÓÐתÔØÎÄÕÂÑÔÂÛ²»´ú±í±¾Õ¾¹Ûµã£¬±¾Õ¾ËùÌṩµÄÉãÓ°ÕÕƬ£¬²å»­£¬Éè¼Æ×÷Æ·£¬ÈçÐèʹÓã¬ÇëÓëÔ­×÷ÕßÁªÏµ£¬°æȨ¹éÔ­×÷ÕßËùÓÐ

ÉÏһƪ£º³õѧÕßµÄÒ»µÀ´ó²Í

ÏÂһƪ£º´ÏÃ÷Ò»µãµÄ DNS ¾ùºâ½âÎö