LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't run Startx from User Login....Only from root on Dell Studio XPS laptop (http://www.linuxquestions.org/questions/slackware-14/cant-run-startx-from-user-login-only-from-root-on-dell-studio-xps-laptop-724779/)

Twilight_Bandit 05-08-2009 09:33 PM

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.

thunderheights 05-08-2009 09:47 PM

See if this helps:

http://fixunix.com/slackware/125147-...rver-root.html

Twilight_Bandit 05-09-2009 08:21 AM

Thanks, I tried your suggestion, but still no luck running "startx" from user login.

mRgOBLIN 05-09-2009 08:46 AM

Is there an xorg.conf file sitting in your /root/ directory? or in your /home/user/ directory? (if so rename them to something else)

X will look in your current directory for an xorg.conf file and use it if one is present.

Also check your logs /var/log/Xorg.0.log maybe a clue there. Maybe even something in /home/user/.xsession-errors.

Make sure you have rwx permissions on your home directory and that your user is the owner

as root
Code:

chown -R your_user:users /home/your_user
chmod 711 /home/your_user
gpasswd -a your_user video

How did you create your xorg.conf file?


There is a remote possibility that a stale /tmp/.X0-lock file exists (shouldn't be there if X isn't running)

azenenc 07-03-2012 04:25 AM

Quote:

Originally Posted by Twilight_Bandit (Post 3535393)
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.

Didier Spaier 07-03-2012 04:14 PM

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.

Alchemikos 07-05-2012 12:18 AM

Really 'adduser' is the best option to experience, at last that user never had logged, no files, so try adding a new from root log.

Here the way to do:

http://www.slackbook.org/html/essential-sysadmin.html

Cheers

Alchemikos

igadoter 07-05-2012 01:37 AM

Hi,

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.

dfwrider 07-05-2012 09:39 AM

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

Alchemikos 07-05-2012 11:11 AM

Quote:

Originally Posted by dfwrider (Post 4719900)
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. :)


All times are GMT -5. The time now is 03:20 AM.