LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-18-2007, 10:14 PM   #1
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Rep: Reputation: 15
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.
 
Old 08-18-2007, 10:52 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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?
 
Old 08-18-2007, 11:15 PM   #3
TheStupid
Member
 
Registered: Aug 2007
Posts: 80

Original Poster
Rep: Reputation: 15
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

Last edited by TheStupid; 08-18-2007 at 11:24 PM.
 
Old 08-19-2007, 03:00 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can just run "system-config-display --reconfig" as root and it should create a new working xorg.conf for you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolve.conf gets modified after network restart Niceman2005 Linux - Networking 4 07-31-2006 10:39 PM
how to avoid resolv.conf been modified by dhcp-client septanla Linux - Networking 3 03-18-2006 05:25 PM
how to avoid resolv.conf been modified by dhcp-client septanla Linux - Networking 1 03-07-2006 07:40 AM
resolv.conf gets modified when dialing... jaitropfaim Linux - Networking 2 02-16-2003 02:26 PM
tirpwire says /etc/resolve.conf was modified (why?) saavik Linux - Security 3 06-10-2002 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration