LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-08-2009, 09:33 PM   #1
Twilight_Bandit
LQ Newbie
 
Registered: May 2009
Posts: 7

Rep: Reputation: 0
Unhappy 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 07:22 AM.
 
Old 05-08-2009, 09:47 PM   #2
thunderheights
LQ Newbie
 
Registered: Jan 2008
Location: Kentucky
Posts: 22

Rep: Reputation: 0
See if this helps:

http://fixunix.com/slackware/125147-...rver-root.html
 
Old 05-09-2009, 08:21 AM   #3
Twilight_Bandit
LQ Newbie
 
Registered: May 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, I tried your suggestion, but still no luck running "startx" from user login.
 
Old 05-09-2009, 08:46 AM   #4
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
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)
 
Old 07-03-2012, 04:25 AM   #5
azenenc
LQ Newbie
 
Registered: Jul 2012
Location: Mexico
Distribution: Slackware 12.2
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Twilight_Bandit View Post
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.
 
Old 07-03-2012, 04:14 PM   #6
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 4,679

Rep: Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240
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.
 
Old 07-05-2012, 12:18 AM   #7
Alchemikos
Member
 
Registered: Jun 2012
Location: Porto Alegre-Brazil
Distribution: Slackware- 14, Debian Wheezy, Ubuntu Studio, Tails
Posts: 88

Rep: Reputation: 6
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
 
Old 07-05-2012, 01:37 AM   #8
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Rep: Reputation: 56
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.
 
Old 07-05-2012, 09:39 AM   #9
dfwrider
Member
 
Registered: Feb 2010
Location: San Antonio, Texas, USA
Distribution: slackware
Posts: 32

Rep: Reputation: 17
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
 
Old 07-05-2012, 11:11 AM   #10
Alchemikos
Member
 
Registered: Jun 2012
Location: Porto Alegre-Brazil
Distribution: Slackware- 14, Debian Wheezy, Ubuntu Studio, Tails
Posts: 88

Rep: Reputation: 6
Quote:
Originally Posted by dfwrider View Post
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.
 
  


Reply

Tags
kde, login, root, startx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux and Dell XPS Laptop plythgam Linux - Hardware 5 12-04-2011 09:06 PM
Can Slackware Linux 12.2 be loaded on a Dell Studio XPS Laptop? Twilight_Bandit Linux - Laptop and Netbook 7 05-30-2009 05:06 AM
startx is not working when i installed rhel5 in dell xps 1330 laptop popvij Linux - Newbie 4 05-11-2009 08:57 AM
Backtrack having problem in DELL XPS laptop shivanrathore Linux - Newbie 4 03-21-2009 09:38 AM
Dell XPS m170 laptop blueAlien Slackware 1 05-03-2006 03:12 PM


All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration