X服务器的主要配置文件为 /etc/X11/xorg.conf
Section "ServerLayout" #布局
Identifier "Xorg Configured" #布局标识
Screen 0 "Default Screen" 0 0 #屏幕标识
InputDevice "Generic Keyboard" #键盘标识
InputDevice "Configured Mouse" #鼠标标识
EndSection
Section "Module" #模块
Load "ddc"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "bitmap"
Load "type1"
Load "freetype"
Load "record"
EndSection
Section "Files" #X核心字体路径
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/fonts/Chinese/wqy-bitmapfont"
EndSection
Section "Screen" #屏幕
Identifier "Default Screen"
Device "Card0" #指定显卡
Monitor "Monitor0" #指定显示器
DefaultDepth 24 #默认色深为24
SubSection "Display" #可用分辨率
Depth 24 #24位色深下可用分辨率
Modes "1280x1024"
"1152x864" "1024x768" "800x600" "720x400" "640x480"
………………
EndSubSection
EndSection
Section "Device" #显卡
Identifier "Card0"
Driver "vesa" #驱动
VendorName "All"
BoardName "All"
EndSection