LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to reset xserver configurations? (https://www.linuxquestions.org/questions/slackware-14/how-to-reset-xserver-configurations-809121/)

flash619 05-20-2010 01:05 PM

How to reset xserver configurations?
 
Ok long story I will try my best.

I dont know much about linux, some basic console commands nuthing much, but I was setting up slackware for my server. The hardware was a bit old, so after making a new user and logging in, I tried my best to go into the theme settings, and change the current theme. Immedietly after hitting apply, It went back to console, and now startx tries to start xserver but crashes it. Is there a way I can reset the config? Possibly with the install cd?

I dony have anything to loose, so if i must reformat I will, but this would be something good to know for future mistakes either way. Thanks in advance!

-Travis

Timothy Miller 05-20-2010 01:21 PM

As root:

cd /etc/X11/
mv xorg.conf xorg.conf.old

Edit - Depending on your version of Xorg, you might be able to try starting X with no xorg.conf.

I'm ASSUMING this is current Slackware?

flash619 05-20-2010 06:51 PM

Yes it is slackware 13

jamesf 05-21-2010 12:28 AM

Quote:

Originally Posted by flash619 (Post 3975702)
Ok long story I will try my best.

... after making a new user and logging in, I tried my best to go into the theme settings, and change the current theme. Immedietly after hitting apply, It went back to console, and now startx tries to start xserver but crashes it. Is there a way I can reset the config? Possibly with the install cd?

I dony have anything to loose, so if i must reformat I will, but this would be something good to know for future mistakes either way. Thanks in advance!

-Travis

From what you said, you didn't edit xorg.conf or anything. The first thing that I would do is log in as root and create a second new user, say testuser or bob or something, then log in as testuser or bob or something and startx there.

Since testuser, bob, or something is a new user that user will be getting new copies of user themes and things.

If that new, second user can successfully startx and bring up a desktop then that tells you that what you corrupted is limited to a single user (your original user). If that new users startx crashes as well then that tells you that what you mis-configured is more system oriented.

If it is limited to a single user then the easiest thing to do would be to blow your normal log in user away and recreate it. If you decide to go that route then after you delete the user (as root) do a "ls /home" and make sure that the user with the corrupted X home directory is gone. If that user directory is not gone then (as root) just do an "rm -rf /home/[user name]" where [user name] is replaced with your user name with the corrupted X. Then, still as root, re-created that user and you should be good to go.

Hope this makes sense!

JokerBoy 05-21-2010 02:01 AM

hmm, do you used kde system settings to change your theme?

if true, rm -rf ~/.kde{,4} and try starting X again.


All times are GMT -5. The time now is 09:10 AM.