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.
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.
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.
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.
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.
Distribution: Slackware 10.2 (AMD64 Desktop, HP ZV5120US & IBM T20 Laptops) Suse 10.1 (IBM T23 Laptop)
Posts: 58
Rep:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.