配置文件
优质
小牛编辑
146浏览
2023-12-01
X服务器
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
|
默认分辨率为默认色深下的第一个分辨率 |
配置文件内部结构
/ ├/ "ServerLayout" 布局 │├ "InputDevice" keyboard 键盘 │├ "InputDevice" mouse鼠标 ││ │└/ "Screen"显示子系统 │ ├ "Monitor" 显示器 │ ├ "Device" videocard 显卡 │ │ ├ "Files" 字体 └ "Module" 模块
X客户端
在 /etc/X11/Xsession
文件中可以发现下列内容
OPTIONFILE=/etc/X11/Xsession.options![]()
SYSRESOURCES=/etc/X11/Xresources USRRESOURCES=$HOME/.Xresources
SYSSESSIONDIR=/etc/X11/Xsession.d USERXSESSION=$HOME/.xsession ALTUSERXSESSION=$HOME/.Xsession ERRFILE=$HOME/.xsession-errors
|
设定X进程的启动参数。例如允许用户进程 allow-user-xsession |
|
X资源文件。许多程序保留了X接口,允许X服务器管理一些视觉选项,例如窗口内的字体,配色等 |
|
X进程。可以设置一些启动时自动运行的程序,也可以用来设定自己的窗口管理器(窗口管理器和桌面环境或者登录管理器是无关的) |