Can't run Startx from User Login....Only from root on Dell Studio XPS laptop
SlackwareThis Forum is for the discussion of Slackware 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.
Can't run Startx from User Login....Only from root on Dell Studio XPS laptop
Hello Fellow Linux Enthusiasts,
I've had this problem for over a week that I've been trying to resolve. I read numerous articles including "The Perfect Desktop - Slackware 12" to no avail. I loaded Slackware Linux 12.2 to my laptop and thought that it was a success. I guess in reality STARTX works for me but only from the root. If I try to load it from my login name and password...all I get are (3) lines stating some type of Xauthority errors. I've tried and tried but just can't seem to resolve this. So, I'm out to the Slackware masters out there for step-step instructions what exactly to type in.
I admit I'm new to Linux and always willing to learn new things... I like the interface and the things that it can do--at least from the root, but the installation process truly needs to be simplified and more automated if it's to appeal to a wider client base. If it was up to me I would just work from the root...but I read that's a practice that's not safe and will eventually bite me.
Thanks, in advance to anyone with the magic bullet I need.
Last edited by Twilight_Bandit; 05-09-2009 at 06:22 AM.
Thanks, I tried your suggestion, but still no luck running "startx" from user login.
Just in case somebody wants to know this, I use xwmconfig to fix the issue about startx, just run xwmconfig and select your window manager again every time you can't startx, the only problem is that xwmconfig can not fix the issue when KDE is selected as your window manager. I'm still stuck on this.
I had the same issue on Slackware 13.37 but can't remember how I did solve it.
Anyhow I would try this (at run level 3, that is to say before starting X):
1) Remove everything in /tmp as root...
2) then go back to non root user and try 'startx' again
3) If that doesn't work, still at run level 3, as root create a new user with "adduser" command...
4) Then login as this new user and "startx" again
If that works, of course you will have to move user's files from /home/old_user to /home/new_user.
it should work. Such behaviour suggests permissions issue - a user has to weak permission. First try to ommit 'startx' script instead use 'xinit'. If 'xinit' will fail look at log file /var/log/Xorg.log.0 - it is huge - so be patient - look for warnings (WW) and errors (EE). Finally post here the output of 'id' command - this will list all groups your user is a member of - I suspect - a group is missing. Here my 'id'
Code:
bash-3.1$ id piotr
uid=500(piotr) gid=100(users) groups=1(bin),6(disk),7(lp),11(floppy),12(mail),13(news),15(man),17(audio),
18(video),19(cdrom),20(games),21(slocate),33(sshd),50(ftp),83(plugdev),90(pop),93(scanner),100(users),
500(dileo)
hope this will help (the general format is 'id USERNAME' - at any doubts - 'id --help' gives a short synopsis of the command)
PS. Don't quite understand all this about 'perfect desktop'. It is KDE 3.5.10 - it will be a very ironic when Xfce - will finally reach a complexity level of KDE 3.5.10 - and will become "most popular desktop". But as I know here are guys who are 'porting' KDE 3.5.10 to run on the higher versions Slackware. You may reconsider to install a new version of Slackware and use their binaries of KDE 3.5.10. I'm using 12.2 for so many years - and it fulfills all my needs. But if you are starting to create your new system - installing the new version gives you a freedom to install in the future something else - in the case you will find that KDE 3.5.10 is not what you really wanted - I'm thinking about KDE 4.x. Other advantages - higher versions - the better modern hardware support.
I would think that most newbies would be bitten by the fact that when logged in as root, and adding a user, they used useradd instead of adduser.
adduser will prompt for a bunch of things, including one important section where it asks for additional groups. It appears that there's blank space to type in additional groups, but if you hit the up arrow, it will populate with a bunch of extra groups, that give the regular user the needed permissions for doing most regular things.
I would think that most newbies would be bitten by the fact that when logged in as root, and adding a user, they used useradd instead of adduser.
adduser will prompt for a bunch of things, including one important section where it asks for additional groups. It appears that there's blank space to type in additional groups, but if you hit the up arrow, it will populate with a bunch of extra groups, that give the regular user the needed permissions for doing most regular things.
d
The first thing that I do after the first reboot is to log as root and adduser, and put all groups possible, First I write the Wheel, and after with an arrow up I enter the others, even works fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.