As Ben reported in my previous post I decided to write short how-to about getting your X server back to it’s feet.
Firstly it might be that only your session breaks at logon. So in bottom left corner choose logging to a Terminal Session, and then type your credentials. If you see only black, scary, screen with gray letters; don’t be afraid. Your system is working, it’s only your X server that doesn’t work. Easiest problem to solve is to edit your xorg.conf file.
Type:
cd /etc/X11
Note that, there is capital X.
Then:
ls -l | grep xorg
You sould see a list of your xorg.conf file with backups, and old versions. By looking at your list, mine looks like this:
-rw-r--r-- 1 root root 3980 2007-04-18 23:13 xorg.conf
-rw-r--r-- 1 root root 3910 2007-04-18 23:13 xorg.conf~
-rw-r--r-- 1 root root 4291 2007-01-12 17:20 xorg.conf.20070112172056
-rw-r--r-- 1 root root 4922 2007-01-12 18:28 xorg.conf.20070112182803
-rw-r--r-- 1 root root 4856 2007-01-12 17:58 xorg.conf.fglrx-0
-rw-r--r-- 1 root root 4922 2007-01-12 17:58 xorg.conf.fglrx-1
-rw-r--r-- 1 root root 4179 2007-01-13 01:09 xorg.conf.fglrx-2
-rw-r--r-- 1 root root 4747 2007-02-17 22:24 xorg.conf.fglrx-3
-rw-r--r-- 1 root root 4692 2007-02-18 14:53 xorg.conf.fglrx-4
-rw-r--r-- 1 root root 5179 2007-04-18 23:01 xorg.conf.fglrx-5
-rw-r--r-- 1 root root 4291 2007-01-12 17:20 xorg.conf.original-0
-rw-r--r-- 1 root root 4259 2007-02-17 22:17 xorg.conf.original-1
-rw-r--r-- 1 root root 4185 2007-02-18 14:49 xorg.conf.original-2
-rw-r--r-- 1 root root 4700 2007-04-18 22:55 xorg.conf.original-3
choose newest xorg.conf that you remember worked.
You can quickly look into every file by typing:
cat | more
Eg: cat xorg.conf | more
Scroll down with enter or spacebar, quit with q.
Now to replace broken xorg.conf:
sudo cp working.xorg.conf xorg.conf
This command will overwrite xorg.conf with working.xorg.conf. If you want to backup your broken conf (?):
cp xorg.conf xorg.conf.backup
Or any other filename you want (but don’t use existing ones).
Now you should be able to run you X session. Type:
startx
or
sudo shutdown now
When you know what you did wrong with your xorg.conf you can edit it in the terminal. I wouldn’t recommend Vi editor, but there are others. Eg: nano, mcedit etc. Depending on your system configuration, type:
nano xorg.conf
Edit, save. And good luck.
Recent Comments