ºìÁªLinuxÃÅ»§
Linux°ïÖú

FreeBSDϵͳÖе÷Õû¿ØÖÆ̨ÉèÖÃ

·¢²¼Ê±¼ä:2006-05-01 19:05:21À´Ô´:ºìÁª×÷Õß:Myiozzdoc
µ÷Õû¿ØÖÆ̨ÉèÖÃ
¡¡¡¡¿ØÖÆ̨ÊǸöÈËÓÃFreeBSDϵͳʹÓÃÕß×î³£½øÐвÙ×÷µÄλÖã¬Òò´ËÓ¦¸Ãµ÷Õû¿ØÖÆ̨ÉèÖã¬Ê¹Æä×îÊʺÏʹÓÃÕßµÄÏ°¹ß¡£¿ÉÒÔÔÚ¿ØÖÆ̨Éϵ÷ÕûÏÔʾʹÓõÄ×ÖÌå¡¢¼üÅÌÓ³Éä¡¢ÆÁÄ»±£»¤¡¢ÐéÄâÖն˵ÈÉèÖá£ÆäÖÐһЩÉèÖÿÉÒÔͨ¹ý°²×°³ÌÐòsysinstall À´½øÐУ¬È»¶øÓеÄÉèÖñØÐëͨ¹ýÃüÁʽ»ò¸ü¸ÄÅäÖÃÎļþÀ´Íê³É£¬¶øÇÒÃüÁîÐз½Ê½¾ßÓиü´óµÄÁé»îÐÔ¡£
ÐéÄâÖÕ¶ËÓëttysÉèÖÃ
¡¡¡¡FreeBSDµÄ¿ØÖÆ̨ÉÏÓжà¸öÐéÄâÖնˣ¬¿ÉÒÔÔÚϵͳÆô¶¯Ö®ºóʹÓÃAlt¼ü¼ÓÉϹ¦ÄܼüÀ´Çл»ÐéÄâÖնˡ£ÏµÍ³È±Ê¡Ö»¼¤»îËĸöÐéÄâÖնˣ¬ÕâÒѾ­Âú×ã¾ø´ó¶àÊýµÄÐèÒª¡£ÆäÖеÚËĸöÐéÄâÖÕ¶ËÔÚȱʡÇé¿öÏÂûÓÐÔËÐеǼ³ÌÐò£¬ÕâÊÇÒòΪX Server ÔËÐÐʱҲÐèÒªÒ»¸öÐéÄâÖնˣ¬Òò´Ë±ØÐ뽫һ¸öûÓнø³ÌÕ¼¾ÝµÄ¿ØÖÆ̨ÖÕ¶ËÁô¸øX WindowʹÓá£
¡¡¡¡¶øͨ¹ý¸ü¸ÄÄں˵ÄÉèÖã¬FreeBSD¿ÉÒÔÖ§³Ö16¸öÐéÄâÖÕ¶ËÉ豸£¬ÓÉÓÚͨ³£¸öÈ˼ÆËã»úÖ»ÓÐF1-F12¹²12 ¸ö¹¦Äܼü£¬ÊÂʵÉÏÖ»ÄÜʹÓÃ12¸öÐéÄâÖնˡ£ÆäÉ豸Îļþ´Óttyv0µ½ttyv15£¬¿ÉÒÔʹÓÃMAKEDEVÀ´´´½¨ÕâЩÉ豸Îļþ¡£ÎªÁËÔö¼ÓÐéÄâÖն˵ÄÊýÁ¿£¬³ýÁ˸ü¸ÄÄÚºËÉèÖᢴ´½¨É豸ÎļþÖ®Í⣬»¹ÐèÒª±à¼­ÏµÍ³Îļþ/etc/ttys¡£Õâ¸öÎļþÖÐÓÐÏÂÃæµÄÄÚÈÝÊÇÓë´ËÏà¹ØµÄ£º
# name getty type status comments
#
# This entry needed for asking password when init goes to single-user mode
# If you want to be asked for password, change "secure" to "insecure" here
console none unknown off secure
#
ttyv0 "/usr/libexec/getty Pc" cons25 on secure
ttyv1 "/usr/libexec/getty Pc" cons25 on secure
ttyv2 "/usr/libexec/getty Pc" cons25 on secure
ttyv3 "/usr/libexec/getty Pc" cons25 off secure
¡¡¡¡ttyv3¶ÔÓ¦µÄÐеĵÚËÄÁÐΪ ¡°off¡± £¬Õâ˵Ã÷Õâ¸öÖն˲¢Ã»ÓÐÔËÐÐgetty³ÌÐò£¬²»»á³öÏֵǼÌáʾ¡£Ôö¼ÓÐéÄâÖն˾ÍÒâζ×ÅÔÚÕâ¸öÎļþÖÐÔö¼ÓÏàÓ¦µÄÉèÖÃÐУ¬ÀýÈçÒªÔö¼ÓÒ»¸öÐéÄâÖնˣ¬¾ÍÓ¦¸ÃÐÞ¸ÄÕâ¸öÎļþÖеÄÏàÓ¦ÏîΪ£º
ttyv3 "/usr/libexec/getty Pc" cons25 on secure
ttyv4 "/usr/libexec/getty Pc" cons25 off secure
¡¡¡¡ÐÞ¸ÄÍêÕâ¸öÎļþÖ®ºóÐèÒªÖØÆðϵͳ£¬ÔÚÄÚºËÖ§³ÖµÄÌõ¼þÏ£¬ÏµÍ³½«Ôö¼ÓÒ»¸öÐéÄâÖնˡ£
¡¡¡¡Èç¹ûÓû§ÔÚ¿ØÖÆ̨ÉÏÔËÐÐÁËX Window£¬ÓÉÓÚX ServerÒ²ÐèÒª¿ØÖÆAlt¼Ó¹¦ÄܼüÕâÑùµÄ×éºÏ¼ü£¬Òò´Ë¿ØÖÆ̨½«ÕâÀà×éºÏ¼üÁô¸øX Window£¬²»ÔÙʹÓÃËüÃÇÀ´Çл»µ½ÆäËûÐéÄâÖնˡ£´ËʱÇл»µ½ÆäËûÐéÄâÖն˵ÄÈȼüΪCtrl ¼ÓAltÔÙ¼ÓÉÏÏàÓ¦¹¦Äܼü£¬¶ø´ÓÆäËûÐéÄâÖÕ¶ËÇл»»ØX WindowÈÔȻΪAlt+¹¦ÄܼüF4¡£ÕâÑùµÄ·½Ê½ÉõÖÁ²»ÏÞÓÚX Server£¬Ò²ÊÊÓÃÓÚÆäËûÖ±½ÓʹÓÿØÖÆ̨¡¢½ØÁô¼üÅ̵ijÌÐò¡£
¡¡¡¡ÔÚ/etc/ttysÎļþÖУ¬¿ÉÒÔ¿´µ½Ã¿¸öÐéÄâÖÕ¶Ë×îºóÒ»¸ö²ÎÊýΪ ¡°secure¡± £¬Õâ±íʾÕâ¸öÖÕ¶ËλÓÚ°²È«¿ÉÐÅÀµµÄÎïÀíλÖÃÉÏ£¬Òò´ËÔÚÕâ¸öÖÕ¶ËÉÏ¿ÉÒÔÔÊÐíÖ±½ÓʹÓÃrootÕʺŵǼ£¬Èç¹û½«Æä¸ÄΪ ¡°insecure¡± £¬ÄÇôrootÓû§½«²»ÄÜÔÚÕâ¸öÖÕ¶ËÉÏÖ±½ÓµÇ¼¡£ÓÉÓÚ¿ØÖÆ̨Ϊϵͳ×î»ù±¾µÄÖÕ¶ËÉ豸£¬Ò»°ãÖ»ÓйÜÀíÔ±»òÆäËû¿ÉÐÅÀµµÄÓû§²ÅÄÜʹÓã¬Òò´Ë¶ÔÓ¦ÓÚÕâЩÐéÄâÖնˣ¬ÉèÖö¼Îª ¡°secure¡± ¡£
¡¡¡¡ÕâÑùÒ»µ©¿ØÖÆ̨µÄÎïÀí°²È«Êܵ½Î£º¦£¬ÏµÍ³°²È«¾ÍÊܵ½ÑÏÖصÄÓ°Ïì¡£ÕýÓÉÓÚϵͳÐÅÀµ¿ØÖÆ̨£¬µ±ÏµÍ³Ê¹Óõ¥Óû§Ä£Ê½Æô¶¯Ê±£¬²»»áѯÎÊrootµÄ¿ÚÁÕâ¸öÉèÖÃÊÇÓÉttysÎļþÖеÄconsoleÏîÀ´½øÐпØÖƵģ¬¿ÉÒÔ½«ttysÎļþÖеÄconsoleÏîÖжÔÓ¦µÄ ¡°secure¡± ¸ÄΪ ¡°insecure¡± £¬¾Í±íʾ¿ØÖÆ̨ÊDz»ÄÜÐÅÀµµÄ£¬ÄÇôϵͳÔÚ½øÈëµ¥Óû§×´Ì¬Ê±£¬½«ÑéÖ¤rootµÄ¿ÚÁî¡£ÔÚ¿ØÖÆ̨µÄÎïÀí·ÃÎÊ¿ØÖƲ»Äܱ£Ö¤µÄÇé¿öÏ£¬Õâ¸öÉèÖÃËäÈ»²»ÄÜÍêÈ«±£Ö¤·Ç·¨Ê¹ÓÃÕß²»ÄܽøÈëµ¥Óû§×´Ì¬²¢»ñµÃϵͳµÄ¿ØÖÆȨ£¬µ«ÌṩÁËÏ൱ÖØÒªµÄ±£»¤ÄÜÁ¦¡£
¡¡¡¡ttysÎļþÖУ¬³ýÁËÕë¶ÔÐéÄâÖն˵ÄÉèÖÃÖ®Í⣬»¹¶Ô´®ÐÐÖÕ¶Ëttys0µÈ£¬ÓÃÓÚÍøÂçÁ¬½ÓµÄαÖÕ¶Ëttyp0µÈ£¬ÌṩÁËÉèÖá£ÒªÔö¼ÓÏàÓ¦Öնˣ¬Óë¿ØÖÆ̨ÐéÄâÖÕ¶ËÀàËÆ£¬³ýÁ˸ü¸ÄϵͳÄںˡ¢É豸ÎļþÖ®Í⣬»¹ÐèÒªÔÚttysÎļþΪÏàÓ¦É豸ÌṩÈë¿Ú¡£
¿ØÖÆ̨¼üÅÌÉèÖÃ
¡¡¡¡kbdcontrolÃüÁî¾ÍÓÃÓÚ¸ü¸Ä¼üÅÌÉèÖ㬰üÀ¨¼üÅ̵ÄÓ³É䷽ʽ¡¢»÷¼üµÄÖظ´Âʵȣ¬¼üÅ̵ÄÓ³ÉäÎļþ±£´æÔÚ /usr/share/syscons/keymaps/Ŀ¼Ï£¬Í¨³£µÄ±ê×¼101/102¼üÅÌ¿ÉÒÔʹÓÃus.iso.kbdÎļþ¡£ÒÔÏÂÀý×ÓÖÐʹÓà ¡°-l¡± ²ÎÊýÖ¸¶¨¼üÅÌÓ³ÉäÎļþ£¬Ê¹Óà ¡°-r¡± ²ÎÊýÖ¸¶¨¼üÅÌËٶȡ£
# kbdcontrol -l /usr/share/syscons/keymaps/us.iso.kbd
# kbdcontrol -r fast
¡¡¡¡³ýÁË¿ÉÒÔÓÃfastÀ´±íʾ¼üÅÌËÙ¶ÈÖ®Í⣬»¹¿ÉÒÔ¾«È·Ö¸¶¨¼üÅÌ»÷¼üµÄ¼ä¸ôºÍÖظ´Ê±¼ä£¬ÀýÈçfastģʽ¾ÍµÈͬÓÚ 250.34£¬±íʾ»÷¼ü¼ä¸ôΪ250ms£¬Öظ´Ê±¼äΪ34ms£¬normalģʽ¶ÔÓ¦ÓÚ500.126£¬slow¶ÔÓ¦ÓÚ1000.504¡£
¡¡¡¡Ö¸¶¨¼üÅÌÓ³ÉäÎļþµÄºÃ´¦ÊÇ¿ÉÒÔ×Ô¼º¶¨Òå¼üÅ̵ÄÓ³É䷽ʽ£¬ÀýÈç¿ÉÒÔʹÓøü¸Ä¼üÅÌÅäÖÃÎļþµÄ·½·¨À´ÆÁ±ÎCtrl-Alt-Del Èȼü£¬¾Í¿ÉÒÔʹÓñ༭Æ÷´ò¿ªus.iso.kbdÎļþ£¬½«Ctrl-Alt-Del¶ÔÓ¦µÄ¹¦ÄÜÓÉboo t¸ÄΪnop£¬±íʾÊäÈëÕâ¸ö»÷¼üÐòÁÐʱ²»½øÐÐÈκβÙ×÷¡£»òÕß¿ÉÒÔΪboot¹¦Äܶ¨ÒåÆäËû×éºÏ¼ü¡£
¿ØÖÆ̨ÏÔʾÉèÖÃ
¡¡¡¡¿ØÖÆ̨µÄ×ÖÌåÎļþ¾ù±£´æÔÚ/usr/share/syscons/fontsĿ¼Ï£¬Í¨³£Ê¹ÓõÄ×ÖÌåÓÐ8x8´óС¡¢8x14´óСºÍ8x16´óС£¬¿ÉÒÔÖ¸¶¨Ê¹ÓÃÄÇЩ×ÖÌåÎļþ×÷ΪϵͳʹÓõÄÕâЩ´óСµÄ×ÖÌå¡£½«ÕâЩ×ÖÌåÎļþÔØÈëÐèҪʹÓÃvidcontrolÃüÁ
# vidcontrol -f 8x8 /usr/share/syscons/fonts/cp437-8x8.fnt
ÆäÖÐcp437Ö¸µÄÊÇ×ÖÌå´úÂëҳΪ437£¬ÕâÊÇÓ¢ÎıàÂ룬ÖÐÎıàÂëΪCode Page 936£¨GB£©¡£ÓÉÓÚÖÐÎÄΪ˫×Ö½ÚÎÄ×Ö£¬¿ØÖÆ̨Çý¶¯³ÌÐò´¦ÀíÆðÀ´±È½ÏÀ§ÄÑ£¬»¹Ã»ÓжÔÓ¦ÖÐÎıàÂëµÄ¿ØÖÆ̨×ÖÌåÎļþ¡£
vidcontrol²»½öÓÃÓÚÔØÈë×ÖÌåÎļþ£¬»¹¿ÉÒԸıäÆÁÄ»µÄģʽ£¬ÀýÈç¿ÉÒÔ½«ÆÁÄ»¸ü¸ÄΪ80x50´óС£º
# vidcontrol 80x50
¡¡¡¡ÓÉÓÚ80x50ģʽÐèҪʹÓÃ8x8×ÖÌ壬Òò´ËÕâÐèÒªÊ×ÏÈÔØÈë8x8×ÖÌå¡£Èç¹ûÄں˱àÒëʱѡÔñÁËVESAÖ§³ÖÑ¡Ï²¢ÇÒʹÓõÄÏÔʾ¿¨Ò²¼æÈÝVESAÏÔʾģʽ£¬»¹¿ÉÒÔ½«ÆÁĻģʽÉèÖÃΪ132x60´óС£¬³ä·ÖÀûÓüÆËã»úϵͳ´óÆÁÄ»ÏÔʾÆ÷µÄÓÅÊÆ¡£¿ÉÒÔʹÓÃvidcontrol -i modeÀ´²é¿´µ±Ç°Ó²¼þÖ§³ÖµÄÏÔʾģʽ¡£ÓÉÓÚ²»Í¬µÄÏÔʾģʽʹÓõIJ»Í¬´óСµÄ×ÖÌ壬±ØÐëÔØÈë±ØÒª´óСµÄ×ÖÌå²ÅÄܸĻ»µ½ÏàӦģʽÏ¡£
¡¡¡¡vidcontrol»¹¿ÉÒÔÓÃÓÚÉèÖÿØÖÆ̨ϼ¤»îÆÁÄ»±£»¤µÄʱ¼ä¼ä¸ô£¬Ê¹Óà ¡°-t¡± ²ÎÊýÖ¸¶¨¼¤»îʱ¼ä¡£
¡¡¡¡¶ø¿ØÖÆ̨ÆÁÄ»±£»¤ÔòÊÇͨ¹ýÒ»¸öÔØÈë¿É¼ÓÔØÄ£¿éµÄ·½Ê½ÉèÖõģ¬ÔÚ/modulesĿ¼ÖÐÒѾ­°²×°Á˼¸¸ö²»Í¬µÄÆÁÄ»±£»¤Ä£¿é£¬Èçblack_saver_mod.ko¡¢green_saver_mod.ko¡¢daemon_saver_mod.ko¡¢logo_saver_mod.koµÈ£¬ÕâЩģ¿é¿ÉÒÔʹÓÃkldloadÃüÁîÔØÈëÄڴ棬kldstat²é¿´¸÷¸öÄÚºËÄ£¿éµÄ״̬£¬»òÕßkldunloadÃüÁÆäжÔØ¡£ÔØÈ벻ͬµÄÆÁÄ»±£»¤Ä£¿é£¬¾Í½«¼¤»î²»Í¬µÄÆÁÄ»±£»¤¡£ÔÚϵͳÆô¶¯Ê±Boot LoaderµÄÌáʾÏ£¬¿ÉÒÔʹÓÃloadÃüÁîÔØÈëÄ£¿é£¬Ò²¿ÉÒÔͨ¹ýBoot Loader µÄ×ÊÔ´Îļþ/boot/loader.rc£¬ÓÃÓÚÖ¸¶¨ÔÚÆô¶¯Ê±Ó¦¸Ã×Ô¶¯Ö´ÐÐÄÇЩ²Ù×÷¡£
¡¡¡¡Í¨³££¬¿ÉÒÔʹÓÃlogo_saver_mod×÷ÆÁÄ»±£»¤£¬ÕâÊÇÒ»¸öFreeBSD¼ªÏéÎïµÄͼ±ê¡£
¡¡¡¡ÔÚFreeBSD 3.0-Release֮ǰ£¬FreeBSDʹÓÃ/lkmĿ¼Ï£¬ºó׺Ϊ.oµÄ¿É¼ÓÔØÄ£¿é £¬¶ø¹ÜÀíÄ£¿éµÄÃüÁîÏàӦΪmodload¡¢modstatºÍmodunload¡£ÕâЩģ¿éΪa.out¸ñʽÄÚºËʹÓõĿɼÓÔØÄ£¿é£¬¶ø.koΪELFÄÚºËʹÓõÄÄ£¿é¡£Ê¹ÓÃÄÇÖÖ¸ñʽµÄÄںˣ¬¾ÍÓ¦¸ÃÔØÈëÄÇÖÖ¸ñʽµÄ¿É¼ÓÔØÄ£¿é£¬3.1Ö®ºóÈç¹ûÈÔȻʹÓÃa.out¸ñʽµÄÄںˣ¬Ò²¿ÉÒÔÈÔȻʹÓÃÕâЩģ¿é¡£
¡¡¡¡ÔÚ3.1-ReleaseÖ®ºó£¬FreeBSDÒýÈëÁËϵͳÆô¶¯Ê±ÏÔʾÆô¶¯Í¼±êµÄÄÜÁ¦£¬ÈçͬWindowsϵͳÔÚÆô¶¯Ê±ÏÔʾÀ¶Ìì°×ÔÆͼ°¸Ò»Ñù£¬FreeBSDϵͳҲÄܹ»ÔÚÆô¶¯Ê±ÏÔʾһ¸öÔ¤ÉèµÄͼÏñÎļþ£¬¶øÆô¶¯Ê±²úÉúµÄ¼ì²âÐÅÏ¢Òþ²ØÔÚͼÏóºóÃ棬Õâ¸ö¹¦ÄܳÆΪsplash¡£Õâ¸öϵͳÆô¶¯±êÖ¾ÊǺÍа汾µÄ¿ØÖÆ̨ÆÁÄ»±£»¤ÄÜÁ¦ÊǽôÃÜÏà½áºÏµÄ£¬µ±ÔØÈëÕâ¸ösplashÄ£¿é¶øʹµÃÆô¶¯ÏÔʾÏàÓ¦µÄͼ±êÖ®ºó£¬Ã¿µ±¿ÕÏÐʱ¼äµ½´ï¶øÆÁÄ»±£»¤±»¼¤»îʱ£¬¾Í»áÏÔʾÕâ¸öͼÏñ×÷ΪÆÁÄ»±£»¤¡£
¡¡¡¡ÎªÁËÉèÖÃÆô¶¯±êÖ¾¼°ÆäÆÁÄ»±£»¤£¬Ê×ÏÈÒªÄÚºËÖ§³ÖsplashαÉ豸£¨ÐèÒªpseudo-device splashÅäÖÃÐУ©£¬ÔÙÉú³ÉÒ»¸öСÓÚ640x480£¬256É«µÄ·ÇѹËõµÄbmpͼÏóÎļþ£¬È»ºó½«Æ临ÖƵ½/bootĿ¼Ï£¬¸ü¸Ä/bootĿ¼ÏµÄloader.rcÎļþ£¬ÉèÖÃboot loaderÔØÈë´¦ÀíͼÏóÎļþµÄÄ£¿ésplash_bmp¡£
# cp logo.bmp /boot
# cat /boot/loader.rc
load kernel
load -t splash_image_data logo.bmp
load splash_bmp
ÕâÒ²ÊÇʹÓÃboot loaderµÄ×ÊÔ´Îļþloader.rcµÄÒ»¸öÀý×Ó£¬¿ÉÒÔ¶¨ÖÆÕâ¸ö×ÊÔ´Îļþ£¬Ö¸¶¨boot loader×Ô¶¯ÔØÈëÏà¹ØÄ£¿é£¬ÒÔ¼°Ö´ÐÐÆäËûboot loaderµÄÃüÁî¡£
¿ØÖÆ̨Êó±êÉèÖÃ
¡¡¡¡FreeBSDʹÓÃÒ»¸öÊØ»¤½ø³ÌmousedÀ´½Ó¹Ü¶ÔÊó±êµÄ¿ØÖÆ£¬Ëü¿ÉÒÔͨ¹ýsysinstallºÜ·½±ãµÄ½øÐÐÉèÖá£moused¾ÍÄܽ«Êó±êµÄÊäÈë´«µÝ¸ø¿ØÖÆ̨Çý¶¯³ÌÐò£¬ÕâÑù¾Í¿ÉÒÔÔÚÎı¾×´Ì¬ÏÂʹÓÃÊó±ê½øÐвÙ×÷£¬ÀýÈçÔÚÆÕͨÇé¿öÏ¿ÉÒÔ½øÐÐÕ³Ìù²Ù×÷£¬ÔÚÓ¦ÓóÌÐòÖ§³ÖµÄÌõ¼þÏ£¬»¹ÄܺÍÓ¦ÓóÌÐò½øÐн»»¥¡£È±Ê¡Ìõ¼þϽöÓеÚÒ»¸öÐéÄâ¿ØÖÆ̨֧³ÖÕâÖÖÊó±ê²Ù×÷£¬ÔÚÕâ¸ö¿ØÖÆ̨ÉÏʹÓà ¡°vidcontrol -m off¡± ¾ÍÄܹرÕÊó±êÖ¸Õ룬½ûÖ¹ÕâÖÖ²Ù×÷£¬ÒÔºóÈÔÈ»¿ÉÒÔʹÓà ¡°vidcontrol -m on¡± Ðí¿ÉÊó±êµÄ²Ù×÷ÄÜÁ¦¡£
¡¡¡¡ÏµÍ³È±Ê¡Ö»ÔÚµÚÒ»¸ö¿ØÖÆ̨ÐéÄâÖÕ¶ËÉ豸ÉÏ´ò¿ªÊó±êÖ¸Õ룬Òò´ËΪÁËÔÚÆäËûÐéÄâÖÕ¶ËÉÏʹÓÃÊó±ê£¬±ØÐëÔÚÏàÓ¦µÄ¿ØÖÆ̨ÉÏʹÓÃvidcontrol -m onÃüÁî¡£
¡¡¡¡Ö´ÐÐmoused£¬±ØÐëÒªÖ¸¶¨Êó±êÁ¬½ÓµÄ¶Ë¿ÚºÍÀàÐÍ£¬ÕâÑùmoused²ÅÄܺÍÊó±êͨÐÅ¡£³£ÓõÄÊó±êÓÐÁ¬½Óµ½´®¿ÚµÄÊó±ê£¬ËüʹÓõÄÉ豸Ϊ´®¿ÚÉ豸/dev/cuaa0£¨´®¿Ú1£©»ò/dev/cuaa1£¨´®¿Ú2£©£¬Èç¹ûʹÓÃps/2½Ó¿ÚµÄÊó±ê£¬Ê¹ÓõÄÉ豸Ϊ/dev/psm0£¬Èç¹ûʹÓÃ×ÜÏßÀàÐͽӿڵÄÊó±ê£¬Ê¹ÓõÄÉ豸Ϊ/dev/mse0¡£ÎªÁËʹÓÃÏàÓ¦µÄ¶Ë¿Ú£¬Ê×ÏÈÒª±£Ö¤ÏàÓ¦µÄÉ豸±»ÄÚºËÕýȷ̽²â£¬Õâ¿ÉÒÔʹÓÃdmesgÀ´²é¿´ÏµÍ³µÄÓ²¼þ¼ì²âÐÅÏ¢£¬¼ì²éÉ豸Çý¶¯ sio0,sio1£¨´®¿ÚÉ豸£©£¬psm0,»òÕßmse0µÈÊÇ·ñ±»Äں˼ì²âµ½¡£È»ºó¾ÍÄÜÆô¶¯mousedÁË£º
# vidcontrol -m on
# moused -p /dev/cuaa0 -t auto
¡¡¡¡Ê¹ÓÃauto×÷ΪÊó±êÀàÐ͵IJÎÊý£¬ÈÃmousedÀ´¾ö¶¨Êó±êʹÓõÄЭÒ飬һ°ãÇé¿öÏÂmousedÄܹ»Õì²â³öÕýÈ·µÄЭÒé¡£Ò»°ãps/2Êó±êʹÓÃps/2ЭÒ飬ÆÕͨ×ÜÏßÊó±êʹÓÃbusmouseЭÒ飬´®¿ÚÊó±êʹÓõÄЭÒéÀàÐͽ϶࣬ͨ³£±ê¼ÇΪMS-2keyÁ½¼üµÄÊó±êʹÓÃmicrosoftЭÒ飬PC-3keyÈý¼üÊó±êʹÓÃmouse syste mЭÒ飬´ËÍ⻹ÓÐintellimouseµÈ²»Í¬µÄЭÒé¡£
¡¡¡¡ÓÉÓÚUnixÏÂÏ°¹ßʹÓÃÈý¼üÊó±ê½øÐвÙ×÷£¬Òò´Ë¸öÈ˼ÆËã»úÉϳ£ÓõÄÁ½¼üÊó±ê¾ÍÓÐЩ²»ºÏÊÊ£¬´Ëʱ¿ÉÒÔʹÓÃͬʱ°´ÏÂ×óÓÒÁ½¼üÀ´Ä£ÄâµÚÈý¸ö¼ü£¬¶ÔÓÚmoused£¬ÕâÐèҪʹÓòÎÊý ¡°-3¡± Ö§³Ö£¬ÕâÊÇÈ«ÆÁÄ»µÄmousedÉèÖóÌÐò²»ÄܽøÐÐÉèÖõġ£moused»¹Äܸü¸ÄÊó±êµÄÁíһЩÊôÐÔ£¬ÀýÈç¹ö¶¯Ëٶȡ¢µã°´Ëٶȵȡ£
¡¡¡¡´ËÍâÔÚʹÓÃÁËmousedÖ®ºó£¬moused½«Î¬»¤Ò»¸öαÉ豸Îļþ/dev/sysmouse£¬Õâ¸öÉ豸ÎļþÐÐΪ¾ÍÈçͬһ¸öÊó±ê¶Ë¿ÚÉ豸£¬Äܱ»ÆäËûҪʹÓÃÊó±êµÄ³ÌÐò£¬ÈçX ServerËùʹÓ㬼ò»¯ÁËÕâЩ³ÌÐòµÄÉèÖÃÈÎÎñ¡£
¡¡¡¡Ò»Ð©Linux¶þ½øÖƸñʽµÄ³ÌÐòÓëÕâ¸öÉ豸Îļþ²»¼æÈÝ£¬Èç¹ûÐèҪʹÓÃLinuxµÄ·ÃÎÊÊó±êµÄÓ¦ÓóÌÐò£¬ÈçX Server£¬¾Í²»ÄÜʹÓÃmoused£¬¶øÒªÈÃLinux³ÌÐòÖ±½Ó·ÃÎÊÎïÀíÊó±êÉ豸Îļþ¡£
keymap="NO" # keymap in /usr/share/syscons/keymaps/* (or NO).
keyrate="NO" # keyboard rate to: slow, normal, fast (or NO).
keybell="NO" # bell to duration.pitch or normal or visual (or NO).
keychange="NO" # function keys default values (or NO).
cursor="NO" # cursor type {normal|blink|destructive} (or NO).
scrnmap="NO" # screen map in /usr/share/syscons/scrnmaps/* (or NO).
font8x16="NO" # font 8x16 from /usr/share/syscons/fonts/* (or NO).
font8x14="NO" # font 8x14 from /usr/share/syscons/fonts/* (or NO).
font8x8="NO" # font 8x8 from /usr/share/syscons/fonts/* (or NO).
blanktime="NO" # blank time (in seconds) or "NO" to turn it off.
saver="NO" # screen saver: blank/daemon/green/snake/star/logo/NO.
moused_enable="NO" # Run the mouse daemon.
moused_port="/dev/cuaa0" # Set to your mouse port.
moused_flags="-3" # Any additional flags to moused.
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ