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.
Well, I (stupidly, apparently) deleted the /tmp folder, thinking there was probably just junk temp files in there, and at my next login attempt, couldn't get any graphical display, only command prompt. So I logged in as user and tried "startx". Didn't work. So I tried as root. Still didn't work. So I urpmi'd all the X11 packages. Tried "startx" as root, and got a KDE session. Now my graphical login screen comes up at bootup, but I can only log into a KDE session with "root". If I try to login as user, I get a black screen for a second before being returned to the login screen again. I've tried booting in "failsafe" and trying "startx", but I get:
"command not found"
So I tried "/usr/X11R6/bin/startx" and got:
/usr/X11R6/bin/startx: line 123: xauth: command not found
/usr/X11R6/bin/startx: line 124: xauth: command not found
/usr/X11R6/bin/startx: line 123: xauth: command not found
/usr/X11R6/bin/startx: line 124: xauth: command not found
/usr/X11R6/bin/startx: line 162: xinit: command not found
/usr/X11R6/bin/startx: line 1: xauth: command not found
So I tried "/usr/X11R6/bin/Xorg" and I get a black "x" cursor on a blue background (like it's about to load KDE), but it just hangs there.
So I'd appreciate any help to get my back to logging in as a normal user without reinstalling or anything. This has to be just some stupid little thing, I would think, since I can log in just fine with root.
Okay, so I forgot that when booting "failsafe" I never logged on as me. So I booted "failsafe" to the command prompt, and went:
login:
pat
password: *******
then "startx"
And now I get
/usr/X11R6/bin/startx: line 124: cannot create temp file for here document: Permission denied
/usr/X11R6/bin/startx: line 124: cannot create temp file for here document: Permission denied
Authentication failed - cannot start X server.
Perhaps you do not have console ownership?xinit: Servor error.
Okay, so from the same prompt as above I tried "/usr/X11R6/bin/Xorg" and got:
Fatal server error:
Could not create lock file in /tmp/.tx0-lock
Please consult the The X.Org Foundation support at http://wiki.X.Org for help.
Sorry for the extra posts, I'm just trying things as the occur to me, and I thought the info could be helpful for anybody who may be interested in helping me
Turns out that under permissions for the /tmp folder I checked users can "write entries", but I didn't check "enter" as well. Once I checked that, everything was just dandy. So incase anybody else has a problem such as this, here's your 2 part solution:
A) Don't be an ass and delete your /tmp folder in the first place, and
B) Make sure the permissions are all set correctly so your desktop environment can write to the /tmp folder
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.