我的配置是在macbook上的virtualbox, 装的Nvidia的驱动.
https://gist.github.com/Akagi201/7b0f51189b411a0433bc
$ cat /etc/X11/xorg.conf # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 349.16 (buildmeister@swio-display-x86-rhel47-06) Wed Apr 8 00:52:19 PDT 2015 Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" EndSection Section "InputDevice" # generated from data in "/etc/conf.d/gpm" Identifier "Mouse0" Driver "mouse" Option "Protocol" Option "Device" "/dev/input/mice" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from default
可能是权限问题
xhost +
可能是没安装桌面系统
可以重装一下xorg3
配置文件没弄好. 相关配置文件应该在 ./.xinxitrc 或者下./.xprofile 里面配置