黑洞筆記:在VMWARE中安裝X-WINDOW(不用安裝VMTOOL)(轉)

post0發表於2007-08-11
黑洞筆記:在VMWARE中安裝X-WINDOW(不用安裝VMTOOL)(轉)[@more@]

黑洞筆記:在VMWARE中安裝X-WINDOW(不用安裝VMTOOL)

在VMWARE中安裝X-WINDOW(不用安裝VMTOOL)

感謝suntiny, joyozuo

當前環境:作業系統WIN2000 SERVER

P4 1.8A,

845G主機板

整合顯示卡

FREEBSD 5.0

我安裝BSD的時候,是MINIMAL安裝

一. 安裝XFREE86

我透過sysinstall來進行安裝的(覺得速度好慢),也可以直接安裝

現在講透過sysinstal安裝:

①進入SYSINSTALL

②選擇CONFIGURE

③選擇PACKAGES

④選擇安裝介質,我是光碟

⑤選擇你想安裝的包,最底下有很多X11的選項,這就自己看著辦選吧

二.簡單配置一下

①進入SYSINSTALL

②選擇CONFIGURE

③選擇XFREE86

④接著就可以看到四個選項

XF86CFG:這是圖形介面的配置工具

XF86CONFIG:這是基於指令碼的,有點煩

XF86CFG—TEXTMODE:這個也是基於圖形的,我用這個配置的

⑤接著就是一大堆的選項,你就安裝自己的喜好和實際情況選吧,我選擇的桌面是KDE

三.這時/ROOT下會有一個檔案XF86Config.new,把它改為XF86Config並copy到/etc/X11(或/usr/X11R6/lib/X11/)下,再執行startx,嘿嘿,這時就可以看到圖形介面了,但效果不是很好,再接再歷

CP XF86CONFIG.NEW /ETC/X11/XF86CONFIG

四.注意配置中那兩個“VMWARE”

直接用ee 編譯 /usr/ X11/XF86Config

如下:

##file: /usr/ X11/XF86Config

Section "ServerLayout"

Identifier "XFree86 Configured"

Screen 0 "Screen0" 0 0

InputDevice "Mouse0" "CorePointer"

InputDevice "Keyboard0" "CoreKeyboard"

EndSection

Section "Files"

RgbPath "/usr/X11R6/lib/X11/rgb"

ModulePath "/usr/X11R6/lib/modules"

FontPath "/usr/X11R6/lib/X11/fonts/myfonts"

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/"

EndSection

Section "Module"

Load "xtt"

Load "dbe"

Load "dri"

Load "extmod"

Load "glx"

Load "record"

Load "xtrap"

Load "speedo"

Load "type1"

EndSection

Section "InputDevice"

Identifier "Keyboard0"

Driver "keyboard"

EndSection

Section "InputDevice"

Identifier "Mouse0"

Driver "mouse"

Option "Protocol" "auto"

Option "Device" "/dev/sysmouse"

EndSection

Section "Monitor"

Identifier "Monitor0"

VendorName "Monitor Vendor"

ModelName "Monitor Model"

Horizsync 31.5 -48.5

VertRefresh 50 - 70

EndSection

Section "Device"

### Available Driver options are:-

### Values: : integer, : float, : "True"/"False"

### : "String", : " Hz/kHz/MHz"

### [arg]: arg optional

#Option "HWcursor" # []

#Option "NoAccel" # []

Identifier "Card0"

Driver "vmware"

#VendorName "VMWare Inc"

#BoardName "Unknown Board"

#BusID "PCI:0:15:0"

EndSection

Section "Screen"

Identifier "Screen0"

Device "Card0"

Monitor "Monitor0"

DefaultColorDepth 16

SubSection "Display"

Depth 1

EndSubSection

SubSection "Display"

Depth 4

EndSubSection

SubSection "Display"

Depth 8

EndSubSection

SubSection "Display"

Depth 15

EndSubSection

SubSection "Display"

Depth 16

Modes "1024x768"

EndSubSection

SubSection "Display"

Depth 24

Modes "1024x768"

EndSubSection

EndSection

##注意,vmware不能用24位色,否則會不動啟動!

然後在~/ 建.xinitrc檔案內容如下:

當你用startx來啟動的時候就自動進入kde了

##注意:要在 Section "Device" 中只保留

Identifier "Card0"

Driver "vmware"

這兩項就行了,其他的注掉,不要用,同樣,真實的環境配X如果不能啟動可以同樣把其他的選項注掉,就可以了

5.嘿嘿,接著就STARTX吧,好漂亮啊,看看左下角,我可真沒有裝VMTOOL啊

[myimg]upload/Snap1.png[/myimg]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8225414/viewspace-944497/,如需轉載,請註明出處,否則將追究法律責任。

相關文章