|
发表于 2011-1-30 18:02:07
|
显示全部楼层
如果是startx进去的话,要先emerge -av twm xterm,因为如果~/.xinitrc不存在的话,startx是调用/etc/X11/xinit/xinitrc文件的,而那个文件里面默认打开的是tmw窗口管理和xterm.xclock之类的程序。
或者你直接装gnome之类的桌面环境,然后在~/.xinitrc写入exec gnome-session,这样startx就直接进入gnome环境了。
这是我的xorg.conf文件,希望对你有帮助- Section "ServerLayout"
- Identifier "X.org Configured"
- Screen 0 "Screen0" 0 0
- InputDevice "Mouse0" "CorePointer"
- InputDevice "Keyboard0" "CoreKeyboard"
- EndSection
- Section "Files"
- ModulePath "/usr/lib/xorg/modules"
- ModulePath "/usr/lib/opengl/xorg-x11/extensions/"
- FontPath "/usr/share/fonts/misc/"
- FontPath "/usr/share/fonts/TTF/"
- FontPath "/usr/share/fonts/OTF/"
- FontPath "/usr/share/fonts/Type1/"
- FontPath "/usr/share/fonts/100dpi/"
- FontPath "/usr/share/fonts/75dpi/"
- EndSection
- Section "Module"
- Load "glx"
- Disable "dri2"
- Load "dbe"
- Load "extmod"
- Disable "dri"
- Load "record"
- EndSection
- Section "InputDevice"
- Identifier "Keyboard0"
- Driver "kbd"
- EndSection
- Section "InputDevice"
- Identifier "Mouse0"
- Driver "mouse"
- Option "Protocol" "auto"
- Option "Device" "/dev/input/mice"
- Option "ZAxisMapping" "4 5 6 7"
- EndSection
- Section "Monitor"
- Identifier "Monitor0"
- VendorName "Monitor Vendor"
- ModelName "Monitor Model"
- EndSection
- Section "Device"
- Identifier "Card0"
- Driver "nvidia"
- BusID "PCI:1:0:0"
- EndSection
- Section "Screen"
- Identifier "Screen0"
- Device "Card0"
- Monitor "Monitor0"
- SubSection "Display"
- Viewport 0 0
- Depth 1
- EndSubSection
- SubSection "Display"
- Viewport 0 0
- Depth 4
- EndSubSection
- SubSection "Display"
- Viewport 0 0
- Depth 8
- EndSubSection
- SubSection "Display"
- Viewport 0 0
- Depth 15
- EndSubSection
- SubSection "Display"
- Viewport 0 0
- Depth 16
- EndSubSection
- SubSection "Display"
- Viewport 0 0
- Depth 24
- EndSubSection
- EndSection
- Section "Extensions"
- Option "Composite" "Enable"
- EndSection
复制代码 |
|