accidentally modified xorg.conf
I accidentally modified the xorg.conf file. Can I just delete it or I am toasted?
I don't have a copy - blaming on the vi. I was just trying to look at it. |
What distro? You might be able to use the package manager to reinstall a base xorg.conf or do a full reconfigure.
How extensively was it modified? |
CentOS 5.0
It's screwed up totally. How do I do a reconfigure? I haven't shut down the system yet. Looks like this: ************************************ # org configuration created by pyxf86config rg configuration created by pyxf86config Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "Device" Identifier "Videocard0" Driver "savage" EndSection Section "Screen" Identifier "Screen0" "xorg.conf" 118L, 2868C # Xorg configuration created by pyxf86config Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "Device" Identifier "Videocard0" Driver "savage" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" "xorg.conf" 30L, 568C Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "Device" Identifier "Videocard0" Driver "savage" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" "xorg.conf" 30L, 568C Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "Device" Identifier "Videocard0" Driver "savage" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection gin as: root root@192.168.3.237's password: [root@IP-Linux ~]# ls anaconda-ks.cfg firefox install.log.syslog rdesktop.tar.gz vmware Desktop install.log InstallShield software [root@IP-Linux ~]# cd /etc/X11 [root@IP-Linux X11]# ls applnk prefdm sysconfig xinit xorg.conf fs serverconfig twm Xmodmap Xresources [root@IP-Linux X11]# gedit xorg.conf cannot open display: Run 'gedit --help' to see a full list of available command line options. [root@IP-Linux X11]# vi xorg.conf [root@IP-Linux X11]# vi xorg.conf [root@IP-Linux X11]# vi xorg.conf # org configuration created by pyxf86config rg configuration created by pyxf86config Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "Device" Identifier "Videocard0" Driver "savage" EndSection Section "Screen" Identifier "Screen0" "xorg.conf" 77L, 1696C :x |
You can just run "system-config-display --reconfig" as root and it should create a new working xorg.conf for you.
|
All times are GMT -5. The time now is 11:14 AM. |