Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I would like to know how to go back to an old xorg.conf file. I made a few changes to the file and i have had a few minor problems since then so i would like to go back to the old one if possible. I have the old file (xord.conf.old) in the same directory as the one that is currently in use. Also i have notice that if i restart my background screen will change to a default blue screen, but im not sure if thats related to the xorg.conf problem. I hope that made sense to you guys. Thanks again for all your help.
If you have a backup copy, then it's a trivial process.[list=1][*]Log out of Gnome/KDE/whatever GUI you use[*]Hit Ctrl-F1 to get a text-based terminal (You may need to use Ctrl-Alt-F1)[*]Log in as root[*]Issue init 3 on the command line (this kills the GUI)[*]cd to the directory containing your xorg.conf files[*]Make a copy of your current config: mv xorg.conf xorg.conf.bad[*]Restore the backup: mv xorg.conf.old xorg.conf[*]Issue init 5 (this starts the GUI again - it will read the old xorg.conf since you switched it)[*]Logout of root[*]Hit Ctrl-F7 to get the GUI login screen[*]Log into the GUI as your normal user.[/list=1]
ok i followed the steps that you gave above everything worked just fine until i tried to issue init 5. this is what i got.
[root@localhost bryan]# init 5
INIT: Switching to runlevel: 5
Starting display manager:
Assigning raw devices: Cannot open master raw device '/dev/rawctl' (no such file or directory)
Cannot open master raw device '/dev/rawctl' (no such file or directory)
Postmaster is already running grunnerSite listis missing: mailman
I don't honestly know what those errors are about. I would check to make sure they aren't related to something else. I'm guessing they're related to servers/services you have running on the machine, but I can't say that with certainty. And unfortunately, I know next-to-nothing about raw devices. The last line you quoted would (this is a complete guess) relate to your MTA (mail transfer agent).
The init commands given previously transition your machine between running states (called runlevels). When transitioning to runlevel 3, the X server is shut down (the GUI) along with a number of other services. When the command to transition to runlevel 5 was given, all of those old services get started up again. If some of them were not shut down and try to get restarted, then that could be the cause for the errors.
Regardless, the messages you quoted don't indicate the X server failed to start. I would expect to see an "Unable to open display" message if the GUI had not started properly. So you can try switching to the GUI with Ctrl-F7 (or, again, Ctrl-Alt-F7). Also, sometimes the GUI is on other virtual terminals. So if you don't get the GUI with F7, try F2-F12.
Lastly, the init command sequence was to avoid a reboot. I don't know if you machine needs to stay on, but if not, then a reboot will definitely force the X server to reread the xorg.conf file.
If the GUI started up properly, then you get back to it by pressing Ctrl-F?? where the ?'s can be anything from 2 through 12. Typically, the GUI is set to F5 or F7. I can't say exactly which, because it can vary from one distribution to the next. When you try each combination, wait a few seconds; don't hit them all in rapid succession. You'll be able to tell when you try the right combination... trust me. If none of those work, then try Ctrl-Alt-F??.
If after all of that, you still can't get back to the GUI, then just reboot. After the reboot, the system should start normally.
If you're not sure how to reboot from the command line, then issue (as root): shutdown -r now