linux生成xorg,生成xorg.conf文件

本文介绍了如何在Linux中生成xorg.conf文件,包括停止gdm3服务,使用Xorg -configure生成空白配置文件,然后移动并修改文件以设置所需分辨率。此外,还展示了xorg.conf文件的内容,包括ServerLayout、Files、Module、InputDevice、Monitor、Device和Screen等部分的详细配置。
摘要由CSDN通过智能技术生成

1、生成xorg.conf文件

#如果有必要,停止gdm3

service gdm3 stop

#生成空白文件

Xorg -configure

#移动文件

mv ~/xorg.conf.new /etc/X11/xorg.conf

#修改文件,增加需要的分辨率

#如果有必要,开启gdm3

service gdm3 start

2、xorg.conf.new文件

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"

FontPath "/usr/share/fonts/X11/misc"

FontPath "/usr/share/fonts/X11/cyrillic"

FontPath "/usr/share/fonts/X11/100dpi/:unscaled"

FontPath "/usr/share/fonts/X11/75dpi/:unscaled"

FontPath "/usr/share/fonts/X11/Type1"

FontPath "/usr/share/fonts/X11/100dpi"

FontPath "/usr/share/fonts/X11/75dpi"

FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

FontPath "built-ins"

EndSection

Section "Module"

Load "record"

Load "glx"

Load "extmod"

L

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值