Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-09-2006, 12:18 PM
|
#1
|
LQ Newbie
Registered: Feb 2006
Posts: 5
Rep:
|
XORG.CONF file messed up, how do I edit on boot?
Hi im a newbie to this and find this forum really helpful...
Recently I've tried to make my Fedore Core 4 look like a Mac OS by reading a tutorial online. It told me to edit the xorg.conf file, so i did and restarted and now it will not boot into a GUI/KDE (GNU?)..just a DOS/Terminal lookalike screen where I can still login etc and seem to have the commands there. I dont really want to reinstall fedora again as I've done alot to it (i.e drivers etc)
I just want to know how I can make the xorg.conf file how it was.. I do remember the scripts I put in so can always re-edit it (if i know the commands and someway of deleting them and resaving the xorg.conf)
Cheers 
|
|
|
03-09-2006, 12:31 PM
|
#2
|
Member
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345
Rep:
|
A lesson for the future... always backup your xorg.conf file before you make any changes to it.
Your computer is still fully functional, it's just missing the graphical X server.
Login as root, then type
"pico /etc/X11/xorg.conf" to open xorg.conf in a simple editing program.
Now comes the hard part... figure out what you changed before and change it back to the way it was, then save the file and quit pico.
Once you've done that, type startx to see boot up the X server again.
If this works, then next time you reboot it should go directly into X again.
|
|
|
03-09-2006, 12:34 PM
|
#3
|
Member
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
Rep:
|
As I recall, Fedora boots to GUI by default, so you have to get yourself into text mode. Since you asked how to edit "on boot" :
When you get to the Grub screen, select Fedora and press "e" that will allow you to edit a line in your Fedora Entry.
select the line with "kernel" in it and press "e" again. add "3" to the end of that line.
Press enter, then "b" to boot that configuration.
That should boot you directly to text mode where you can (as root) edit your /etc/X11/xorg.conf back to a workable state.
*edit changed the word "will" into "should"
Last edited by truthfatal; 03-09-2006 at 12:39 PM.
|
|
|
03-09-2006, 12:36 PM
|
#4
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
If you have a command line, you should be able to do this.
1) Login
2) change directories cd /etc/X11
3) list the contents ls
4) change to root su, enter the root password
5) you should see "xorg.conf" listed, maybe there's a backup file "xorg.conf.bak" or something like that
6) If there is a backup, first cp xorg.conf xorg.conf.bak2 then cp xorg.conf.bak xorg.conf
6b) If there is no backup, edit the file nano xorg.conf and put a "#" in front of each line you want to comment out
7) Save the file Ctrl-X say yes to save the file
8) Restart the xserver Ctrl-Alt-Backspace
|
|
|
03-09-2006, 01:02 PM
|
#5
|
Member
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252
Rep:
|
If this computer is on a network with other computers, it may be easier to just let it boot then ssh into from another box and then edit the file. Either way, you need to get to the command line and edit the file.
|
|
|
03-09-2006, 07:33 PM
|
#6
|
Senior Member
Registered: Sep 2003
Posts: 3,171
Rep: 
|
Depending on the editor that was used, the old xorg.conf could have been automatically backed up already, with the name xorg.conf~. Look for that first, and if it is there just use it.
|
|
|
03-10-2006, 10:25 AM
|
#7
|
LQ Newbie
Registered: Feb 2006
Posts: 5
Original Poster
Rep:
|
Thanks everyone, back in linux now and sorted :-)
|
|
|
All times are GMT -5. The time now is 11:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|