|
发表于 2009-7-26 03:40:26
|
显示全部楼层
Multihead 是个标识名(Identifier),用户自己随便定什么名都行,你的配置文件写的叫“Layout0”。
在真实机配置文件的基础上,你起码需要加3个段,一个ServerLayout段、一个Screen段、一个Device段。Section "Device"
Identifier "vm1"
Driver "vmware" #假定你是用vmware虚拟机
......
EndSection
Section "Screen"
Identifier "Screen_vm"
Device "vm1"
Monitor "Monitor0" #需要改成你的Monitor段
......
EndSection
Section "ServerLayout"
Identifier "Layout_vm"
Screen o "Screen_vm"
IntutDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
上面的用的省略号只是懒写太多,你参照真实机的形式来写。
加了这3段,就可以在虚拟机用 “startx -- -layout Layout_vm” 。
如何知道是否在虚拟机里,如何不加参数也能自动调用正确的layout,则需要用sh脚本,以后再研究吧。 |
|