MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
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.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
startx doesn't startx for user
Hi all,
Just upgraded to MDK10.1 to see if it is any improvement and it will just not go graphical unless I am root.
Issuing startx as a user shows the NVIDIA splash screen, swiftly followed by the usual background you would normally get as the login manager gets set to do its stuff. Then it just drops back to a console prompt, almost as if I had issued ctrl+alt+backspace. As root, no problems, logs in runs normally. The xorg log file shows no errors, a couple of warnings about missing fonts, but other than that no clues.
Any one any suggestions what this might be?
As I recall, the same thing happened to me when I was (futilely) trying out Mdk 10.1 Community recently.
I'm almost certain it was because the system had shut down abnormally the last time, and there was a lock file that was locking me as normal user out of starting X, because the system was told I was already running X. As root I located the lock file and deleted it and then I was able to start X as normal user.
I wish I remembered the details, but at least this is a clue for you that might help.
(Edit: I have just searched and haven't located any such file. So... ? I'm virtually certain this is in essence what happened, but I have no idea what file I was able to delete in order to fix it.)
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
Hi,
The lock file you refer to is /tmp/X0-lock which doesn't appear to be the cause of this problem as it isn't present prior to me issueing the startx command, and when that fails, the lock file is automatically removed. Have you any more ideas?
Really out of ideas, but I'm grateful for your reassurance I wasn't losing my mind--that there is such a file.
What I'm virtually certain of, is that it was an authority problem. Root could start X but normal user could not because authority was lacking. I wish I could remember what I did to fix it! I remember feeling very clever about it, because I was unable to get online to seek help, and I solved the problem all by myself (a rare event). Now I feel lacking in cleverness.
Please post what you find out if you do solve this problem.
That kinda rings a bell, too. I think maybe I had to basically change some permissions and ownerships that got screwed up somehow. Which is similar to taking a lock off the files!
OK, by chance I experienced the same problem I referred to above, again today.
I was playing around with other distributions and when I came back to Mandrake root could start X but as a normal user I couldn't, and got a timeout on the Xauthority file.
The solution: as root, change owner of jon's home directory to jon; and then give u+rxw permissions to the directory.
That fixed it. I could startx again as jon.
This may not be a problem identical to the one starting this thread, but it is what happened a few weeks ago, and same immediate easy solution.
The question is how the permissions and ownership ever got changed in the first place. I may never know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.