Having problems with sessions: GUI gets all messed up.
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.
Having problems with sessions: GUI gets all messed up.
I'm fairly new to Linux (using Red Hat 8.0), and recently I've begun having a problem. When I log in as a certain user, instead of showing the KDE desktop and all that, I get a string of error boxes with no writing, the toolbar has no icons and is at the top of the screen, and all the menu items are just little full stops. Everything is also very small. The only way for me to get out of there is to Ctrl-Alt-F4 (I can still use the mouse but I can't tell what I'm clicking), then I'm back to command line. If I login as root and type "startx" I get some error message about XServer already running, and that if it's crashed to delete some file.
Funny thing is, if at the login menu I click "Sessions" at the bottom of the screen, and manually select KDE from the list, everything works fine. It only goes bad when it automatically tries to load the last session, and it only happens for one particular user.
Hmm...Well firstly, "startx" wont work because you are already in runlevel 5 and the X server is already running. Pressing Ctrl+Alt+F4 will just take you to another terminal, but to completely shut down the X server, login in the terminal as root, and type "/sbin/init 3" Now the X server is shut down. Try "startx" from here.
As far as the problem is concerned, it is indeed a very weird problem. There is a directory called ".kde" in the home directory of each and every user. (You wont be able to see it. Type "ls -a" in the home directory in a terminal to see these files beginning with a period)
The directories beginning with a period (like .xmms or .xchat) store the local settings of the users in their home directory. For example, .xmms will store all the skins, the preferences chosen by the user and all such things. Deleting such a directory will make the settings of its respective program to the default.
Since it is happening with only a particular user, I'd recommend this:
1) Go to the home directory of that user
2) Rename the ".kde" directory. (to create a backup as well as to prevent KDE from accessing that folder) WARNING: dont copy that file in another user's home, or his own ".kde" will get replaced.
3) login as the user.
Unfortunately, the user may lose his/her preferences.
I'm not really sure on this, because I use Gnome. But I hope it helps.
Well, I gave it a shot, no dice. However, thanks to akudewan's advice I didn't need to restart the computer to get things working again .
I made progress though. When the strange desktop came up, I pressed Ctrl-Alt-F1 to get the command line terminal (thanks akudewan) and there was an error message there. I said something like:
Something about gconf error
Something about not being able to contact configuration server, might need to fix my TCP/IP settings, or NFS somethings.
*path to my home directory*/.gconfd/lock/ior not openned successfully or not located.
GConf, that's GNOME, right? I'm going to do some more testing. If anybody has any ideas, they are greatly appreciated .
Well, it's official: my GNOME settings are buggered. If I choose a GNOME session on the login window the same problem happens. I didn't think it would be a GNOME problem though, because I always use KDE and it's my default (I think, how do I check?).
Anyway, I'm going to go rename all the GNOME files and see what happens.
I renamed all the gnome crap, and go to log in without choosing a session. It works! No error messages, but for some reason I lost my settings. Oh well. Anyway, I log back out and select KDE as the session. It asks me if I want to make if default from now on, I said yes, then changed all my settings back. From now on when I log in, I get KDE and my settings, just how I want, without having to click anything. No error messages.