LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-21-2005, 02:55 PM   #1
Kaamoss
LQ Newbie
 
Registered: Jun 2002
Location: Ca
Distribution: Slackware 10.2
Posts: 21

Rep: Reputation: 15
startx not working


So I'm working off of a clean slackware 10.2 install now. Terminal works perfectly, and I can still be productive without any sort of window manager, but having one would be nice. The X11 and window manager packages where installed upon setting up the system, however, when I type startx or xorgconfig I get a command not found error. What might this be from and how do I fix it? I've confirmed that the xorg.conf file exists and makes sense (/etc/X11/xorg.conf) but still the command is not found. First time I've encountered this. Thanks.
 
Old 09-21-2005, 02:59 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Did you by any chances tried to run that when suing into root? If you did, try using su - that will load PATH correctly. PATH contains all the directories where binaries should be searched.

If you didn't su, then try to see if the file exists, ls -l /usr/X11R6/bin/startx
If not, get the x11 packages and install them again.
 
Old 09-21-2005, 03:07 PM   #3
Kaamoss
LQ Newbie
 
Registered: Jun 2002
Location: Ca
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
wow thanks, the ls command showed that startx exists and upon running it by absolut path it can't find more commands, such as xauth and so on. When I booted, I logged into root, created a new user, and then su'd back to root. is the suing what caused the problem? Also, should the new user I created be able to run startx upon logon in the terminal? Sorry for my relative ignorance on the details of linux.
 
Old 09-21-2005, 03:15 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Probably it's related to using su command, check with the user, you should be able to run X from it too.
 
Old 09-21-2005, 04:11 PM   #5
Kaamoss
LQ Newbie
 
Registered: Jun 2002
Location: Ca
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks, apparently the su was the problem. When I log on initially as either root or my user I now can exicute startx. Thanks. As an aside, could some one breifly explaine why switching the user causes this to happen? Thanks.
 
Old 09-21-2005, 04:18 PM   #6
DyeKid
Member
 
Registered: Apr 2003
Distribution: Slackware 10.2 (AMD64 Desktop, HP ZV5120US & IBM T20 Laptops) Suse 10.1 (IBM T23 Laptop)
Posts: 58

Rep: Reputation: 15
You are not allowed to su into root and startx in slackware.
I suspect for security reasons, so you don't forget and go surfing out on the web as root.

Someone else here may have a better reason or know exactly why it's not allowed.
 
Old 09-21-2005, 04:54 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Kaamoss, take a look at su's man page by issuing the command: man su

You'll see that if you execute su <user> (if you ommit user it will default to root) it will change to it, but won't load the enviroment values. To do that, you need to add a - to the command, like su - <user> .

The default search directories for executable files when you don't specify a full path is given by a enviroment value called PATH (you can see this by typing echo $PATH). If you don't use the - in su, it won't load the default profile which sets this variable (/etc/profile). So, if you don't use the -, the user you switched too won't "know" where startx or other files are.

Last edited by gbonvehi; 09-21-2005 at 04:57 PM.
 
Old 09-21-2005, 05:25 PM   #8
Kaamoss
LQ Newbie
 
Registered: Jun 2002
Location: Ca
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Awesome. Thank you for the explaination, I appreciate it. I finally made the full linux leap on my main machine and have no windows partition so I'm sure I'll be reading many more man pages and making more posts on here.
 
  


Reply


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
startx not working Anden008 Linux - Hardware 4 11-22-2005 01:37 PM
startx not working cruisnhard Linux - Newbie 4 05-13-2005 12:47 PM
startx not working. tushar123 Linux - Newbie 4 09-11-2004 06:21 PM
startX not working sathish Linux - Hardware 3 02-07-2003 07:14 AM
startx not working travid Linux - Newbie 6 10-09-2001 12:51 AM


All times are GMT -5. The time now is 11:06 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