Çë½Ìfreebsd6.0ÈçºÎ°²×°£¿
Çë½Ìfreebsd6.0ÈçºÎ°²×°£¿ÎÒ×°ºÃÁ˺ó£¬Ôõô½ø²»ÁËkde?ÎÒÊDzÌÄñ£¬´ó¼Ò°ï°ï棡ллÁË [url]http://www.freebsd.org.cn/snap/doc/zh_CN.GB2312/books/handbook/x-install.html[/url] ÎÒÁ¬×°¶¼²»»á°¡¡£°¥£¬ÄÄÀïÓн̳ÌÄØ£¿ °²×°Ñ¡Ôñ °üµÄʱºò£¬Ã»ÓÐÑ¡Ôñ °É¡£-- ¸öÈËÈÏΪ£¬°²×°Í¦¼òµ¥µÄ£¬Ôõô¾ÍÕâô¶àÈ˲»Ã÷°×ÄØ?¡¡
°²×°¼òµ¥£¬Ö÷ÒªÊÇÅäÖø´ÔÓµã¶øÒÑ¡£ # sysinstall
Ñ¡Ôñ[Configure]->[Distributions]->[X.Org]
½ÓÏÂÀ´»á³öÏÖÒ»¸ö²Ëµ¥ÈÃÄãÑ¡ÔñËùÐèÒª°²×°µÄX.OrgµÄ°ü,ÈçÏÂͼËùʾ,Çë½øÈëÿһ¸öÑ¡ÏîÀïѡȡALL.
½Ó×ÅÑ¡ÔñExit»Øµ½Ñ¡Ôñ°²×°À´Ô´£®Äú¿ÉÒÔÑ¡Ôñ£Ã£Ä£¯£Ä£Ö£ÄΪ°²×°±¾Ô´£¬·ÅÈëµÚÒ»Õţãļ´¿É¿ªÊ¼°²×°£®
°²×°£Ë£Ä£Å£º
# sysinstall
Ñ¡Ôñ[Configure]->[Packages]->[kde],Ñ¡Ôñkde-3.5.1
Ñ¡Ôñ£Ï£Ë£¬È»ºóInstall»áÓÐÌáʾҪÇóÄú·ÅµÚ¶þÕŹâÅÌ£®ÕâÀïÐèÒªµÈ±È½Ï³¤µÄʱ¼ä£®°²×°Íê¾ÍÍ˳ö£®
ÔËÐÐ
xorgcfg ?textmode
ÅäÖÃxorg
±¾»úÉÏËùÉú³ÉµÄ/etc/X11/xorg.confÎļþÄÚÈÝÈçÏÂ
leo# cat /etc/X11/xorg.conf
Section \"ServerLayout\"
Identifier \"Layout0\"
Screen 0 \"Screen0\" 0 0
InputDevice \"Keyboard0\" \"CoreKeyboard\"
InputDevice \"Mouse0\" \"CorePointer\"
EndSection
Section \"Files\"
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\"
EndSection
Section \"InputDevice\"
Identifier \"Keyboard0\"
Driver \"kbd\"
Option \"XkbModel\" \"pc101\"
Option \"XkbLayout\" \"us\"
EndSection
Section \"Monitor\"
### Comment all HorizSync and VertSync values to use DDC:
Identifier \"Monitor0\"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 90.0
EndSection
Section \"Device\"
Identifier \"Card0\"
Driver \"vmware\"
EndSection
Section \"Screen\"
Identifier \"Screen0\"
Device \"Card0\"
Monitor \"Monitor0\"
DefaultDepth 24
SubSection \"Display\"
Viewport 0 0
Depth 24
Modes \"1024x768\" \"800x600\"
EndSubSection
EndSection
ÔÚ /root Ŀ¼Ï ±à¼ .xinitrc Îļþ£º
¼ÓÈëÏÂÃæÐÐ
exec /usr/local/bin/startkde
È»ºóÖ´ÐÐ
startx
¼´¿É½øÈë£Ë£Ä£Å
½Ó×ÅÎÒÃÇÒª½«KDE ºº»¯£¬Èç¹ûÒªÔÚX-Window Öп´µ½ÖÐÎĵIJ˵¥£¬±ØÐëÏÈ×°ÖÐÎÄ×ÖÌåkcfont£¨¹úÇÇ×ÖÌ壩¼°arphicttf(Îͦ×ÖÌå)£¬ÒÔ¼°ÖÐÎÄÐÅÏ¢µµ(i18n)
# cd /usr/ports/chinese/kcfonts
# make install clean
# cd /usr/ports/chinese/arphicttf
# make install clean
# cd /usr/ports/chinese/kde3-i18n-zh_CN
# make install clean
# cd /usr/ports/chinese/koffice-i18n-zh_CN
# make install clean
½Ó×űà¼/etc/X11/xorg.conf
leo# vi /etc/X11/xorg.conf
ÔÚSection \"Files\"Ö®¼ä¼ÓÈëÏÂÃæÈýÐУ¬ÒÔʹX-WindowÄÜÕÒµ½ÕýÈ·µÄ×ÖÌå·¾¶,ÈçÏ£º
Section \"Files\"
FontPath \"/usr/X11R6/lib/X11/fonts/TrueType\"
FontPath \"/usr/X11R6/lib/X11/fonts/local\"
FontPath \"/usr/X11R6/lib/X11/fonts/misc\"
EndSection
¸ü¸Ä±£´æºó½øÈëKDE¡£
ÕÒµ½Setting->Desktop Setting Wizard½øÐÐÉèÖãº
°´NextÒ»Ö±µ½×îºó¼´¿É¡£
Èç¹ûÄúÏëÒªÓÐWindowsµÄ×ÖÌ壬¿ÉÒÔµ½½«WinÉÏÃæµÄ×ÖÌåCOPYµ½ÏÂÃæµÄĿ¼
#cd /usr/X11R6/lib/X11/fonts/TrueType
È»ºó´ò¿ª¡°¿ØÖÆÖÐÐÄ¡±->Íâ¹ÛºÍÖ÷Ìâ->×ÖÌ壬ÀïÃæÉèÖÃÄãËùÐèÒªµÄ×ÖÌåºÍ×ÖÌå´óС¡£ÎÒÊǰÑwindowsÏÂÃæµÄsimsun.ttcºÍtohoma.ttf¿½±´µ½ÁËFreeBSDÉÏÃæ£¬È»ºóÓ¦ÓÃwindowsµÄ×ÖÌ壬ÕâÑù¸Ð¾õ±È½ÏÊæ·þ£¬±Ï¾¹ÊÇÆ½Ê±¿´¹ßÁËwindowsµÄ×ÖÌåÁË¡£¿´ÆäËü×ÖÌå¸Ð¾õ¹Ö¹ÖµÄ¡£
-rw-r--r-- 1 root wheel 10507340 May 14 19:07 simsun.ttc
-rw-r--r-- 1 root wheel 379856 May 14 19:07 tahoma.ttf
ÖÐÎÄÊäÈë·¨°²×°:
cd /usr/ports/chinese/scim-tables/
make install
cat >> /etc/csh.cshrc << OK
setenv LANG zh_CN.eucCN
setenv LC_CTYPE zh_CN.eucCN
setenv XMODIFIERS @im=SCIM
setenv GTK_IM_MODULE scim
OK
ÁíÍâÔÚ½øÈëX֮ǰÐèÒªÖ´ÐÐ(ÔÚ~/.xinitrcÖмÓÈ룩
exec scim -d &
´ËÐÐÒ»¶¨Òª·ÅÔÚexec /usr/local/bin/startkde֮ǰ
leo# cat /root/.xinitrc
exec scim -d &
exec /usr/local/bin/startkde
ÖØÐÂÆô¶¯KDE¾Í¿ÉÒÔÊäÈëÖÐÎÄÁË¡£
ºÃÏñÎҵĵçÄÔ°´ÕÕÄãµÄ˵Ã÷È¥ÅäÖ㬻¹ÊDz»ÐÐ
ÎҵĵçÄÔ amd64, ¼¯³Ésis760, dell 1905 LCD°´ÕÕÄãµÄ×ö·¨£¬ÎÒ·¢ÏÖÈÔÈ»²»ÐУ¬ÏÔʾÈçÏ£º
warning: The directory "/usr/X11R6/lib/X11/fonts/CID/" does not exist
warning: couldn't open module speedo
error: No devices detected.(ÎÒµÄÏÔ¿¨ÊÇÖ÷°å¼¯³Ésis760£¬¿ÉÊÇÖ»ÄÜÓÃvmware»òÕßati´úÌæ£¬½á¹û¶¼²»ÐÐ)
fatal server error:
no screens found
²»ÖªµÀÄÇλÀÏÐÖÄܰïÎÒһϣ¬±¾ÈËÊÇÖ»²ËÄñ
ÁíÍâÎÒÓиöUSB-400µÄ USB ÎÞÏßÍø¿¨£¬²»ÖªµÀÔõôÄÜÅäÉÏ£¿Ð»Ð»¡£
[QUOTE=Rosly]# sysinstall
Ñ¡Ôñ[Configure]->[Distributions]->[X.Org]
½ÓÏÂÀ´»á³öÏÖÒ»¸ö²Ëµ¥ÈÃÄãÑ¡ÔñËùÐèÒª°²×°µÄX.OrgµÄ°ü,ÈçÏÂͼËùʾ,Çë½øÈëÿһ¸öÑ¡ÏîÀïѡȡALL.
½Ó×ÅÑ¡ÔñExit»Øµ½Ñ¡Ôñ°²×°À´Ô´£®Äú¿ÉÒÔÑ¡Ôñ£Ã£Ä£¯£Ä£Ö£ÄΪ°²×°±¾Ô´£¬·ÅÈëµÚÒ»Õţãļ´¿É¿ªÊ¼°²×°£®
°²×°£Ë£Ä£Å£º
# sysinstall
Ñ¡Ôñ[Configure]->[Packages]->[kde],Ñ¡Ôñkde-3.5.1
Ñ¡Ôñ£Ï£Ë£¬È»ºóInstall»áÓÐÌáʾҪÇóÄú·ÅµÚ¶þÕŹâÅÌ£®ÕâÀïÐèÒªµÈ±È½Ï³¤µÄʱ¼ä£®°²×°Íê¾ÍÍ˳ö£®
ÔËÐÐ
xorgcfg ?textmode
ÅäÖÃxorg
±¾»úÉÏËùÉú³ÉµÄ/etc/X11/xorg.confÎļþÄÚÈÝÈçÏÂ
leo# cat /etc/X11/xorg.conf
Section \"ServerLayout\"
Identifier \"Layout0\"
Screen 0 \"Screen0\" 0 0
InputDevice \"Keyboard0\" \"CoreKeyboard\"
InputDevice \"Mouse0\" \"CorePointer\"
EndSection
Section \"Files\"
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\"
EndSection
Section \"InputDevice\"
Identifier \"Keyboard0\"
Driver \"kbd\"
Option \"XkbModel\" \"pc101\"
Option \"XkbLayout\" \"us\"
EndSection
Section \"Monitor\"
### Comment all HorizSync and VertSync values to use DDC:
Identifier \"Monitor0\"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 90.0
EndSection
Section \"Device\"
Identifier \"Card0\"
Driver \"vmware\"
EndSection
Section \"Screen\"
Identifier \"Screen0\"
Device \"Card0\"
Monitor \"Monitor0\"
DefaultDepth 24
SubSection \"Display\"
Viewport 0 0
Depth 24
Modes \"1024x768\" \"800x600\"
EndSubSection
EndSection
ÔÚ /root Ŀ¼Ï ±à¼ .xinitrc Îļþ£º
¼ÓÈëÏÂÃæÐÐ
exec /usr/local/bin/startkde
È»ºóÖ´ÐÐ
startx
¼´¿É½øÈë£Ë£Ä£Å
½Ó×ÅÎÒÃÇÒª½«KDE ºº»¯£¬Èç¹ûÒªÔÚX-Window Öп´µ½ÖÐÎĵIJ˵¥£¬±ØÐëÏÈ×°ÖÐÎÄ×ÖÌåkcfont£¨¹úÇÇ×ÖÌ壩¼°arphicttf(Îͦ×ÖÌå)£¬ÒÔ¼°ÖÐÎÄÐÅÏ¢µµ(i18n)
# cd /usr/ports/chinese/kcfonts
# make install clean
# cd /usr/ports/chinese/arphicttf
# make install clean
# cd /usr/ports/chinese/kde3-i18n-zh_CN
# make install clean
# cd /usr/ports/chinese/koffice-i18n-zh_CN
# make install clean
½Ó×űà¼/etc/X11/xorg.conf
leo# vi /etc/X11/xorg.conf
ÔÚSection \"Files\"Ö®¼ä¼ÓÈëÏÂÃæÈýÐУ¬ÒÔʹX-WindowÄÜÕÒµ½ÕýÈ·µÄ×ÖÌå·¾¶,ÈçÏ£º
Section \"Files\"
FontPath \"/usr/X11R6/lib/X11/fonts/TrueType\"
FontPath \"/usr/X11R6/lib/X11/fonts/local\"
FontPath \"/usr/X11R6/lib/X11/fonts/misc\"
EndSection
¸ü¸Ä±£´æºó½øÈëKDE¡£
ÕÒµ½Setting->Desktop Setting Wizard½øÐÐÉèÖãº
°´NextÒ»Ö±µ½×îºó¼´¿É¡£
Èç¹ûÄúÏëÒªÓÐWindowsµÄ×ÖÌ壬¿ÉÒÔµ½½«WinÉÏÃæµÄ×ÖÌåCOPYµ½ÏÂÃæµÄĿ¼
#cd /usr/X11R6/lib/X11/fonts/TrueType
È»ºó´ò¿ª¡°¿ØÖÆÖÐÐÄ¡±->Íâ¹ÛºÍÖ÷Ìâ->×ÖÌ壬ÀïÃæÉèÖÃÄãËùÐèÒªµÄ×ÖÌåºÍ×ÖÌå´óС¡£ÎÒÊǰÑwindowsÏÂÃæµÄsimsun.ttcºÍtohoma.ttf¿½±´µ½ÁËFreeBSDÉÏÃæ£¬È»ºóÓ¦ÓÃwindowsµÄ×ÖÌ壬ÕâÑù¸Ð¾õ±È½ÏÊæ·þ£¬±Ï¾¹ÊÇÆ½Ê±¿´¹ßÁËwindowsµÄ×ÖÌåÁË¡£¿´ÆäËü×ÖÌå¸Ð¾õ¹Ö¹ÖµÄ¡£
-rw-r--r-- 1 root wheel 10507340 May 14 19:07 simsun.ttc
-rw-r--r-- 1 root wheel 379856 May 14 19:07 tahoma.ttf
ÖÐÎÄÊäÈë·¨°²×°:
cd /usr/ports/chinese/scim-tables/
make install
cat >> /etc/csh.cshrc << OK
setenv LANG zh_CN.eucCN
setenv LC_CTYPE zh_CN.eucCN
setenv XMODIFIERS @im=SCIM
setenv GTK_IM_MODULE scim
OK
ÁíÍâÔÚ½øÈëX֮ǰÐèÒªÖ´ÐÐ(ÔÚ~/.xinitrcÖмÓÈ룩
exec scim -d &
´ËÐÐÒ»¶¨Òª·ÅÔÚexec /usr/local/bin/startkde֮ǰ
leo# cat /root/.xinitrc
exec scim -d &
exec /usr/local/bin/startkde
ÖØÐÂÆô¶¯KDE¾Í¿ÉÒÔÊäÈëÖÐÎÄÁË¡£[/QUOTE]
Ò³:
[1]