LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-14-2005, 01:51 PM   #1
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Rep: Reputation: 15
Angry Can't startx or anything


Okay, I had a fully working Slackware-current distro with gware gnome on my new laptop. I've been using it for a few weeks. Today I wanted to try to install gnucash, so I was trying to ./configure that but it needed g-wrap, so I went and got that and was messing with it. There was no slackware package, so I initially tried compiling g-wrap, but it was giving me errors that I didn't really understand. I got the redhat version and tried rpm2tgz and alien to install it, and then removed it a few times using pkgtool (because the ./configure for gnucash was still telling me that g-wrap wasn't installed).

One of the times that I removed g-wrap, my amarok crashed, and a lot of gnome's icons turned to red Xs. So I thought I'd reboot. I quit out, and tried rebooting. Well, I can log in, but now it seems that the paths to everything are messed up. When I log in it can't find fortune to display the little MOTD. I can't startx, it says not found, and when I type the full path to it, it says xauth not found. I am pretty positive that I didn't remove any other package except g-wrap.

Let me know if there's anything I need to post here or tell you, I can still get around in the terminal but I can't get into X or use many commandline tools from a regular user. When I su I get the path to some things, but others it says it can't find. But they're all there, it just seems that somehow the path is messed up.

Any help greatly appreciated.
 
Old 07-14-2005, 02:26 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,340

Rep: Reputation: 73
When you login what is your output with :
Code:
echo $PATH
 
Old 07-14-2005, 02:33 PM   #3
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Original Poster
Rep: Reputation: 15
Code:
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/bin

Last edited by lydgate; 07-14-2005 at 02:34 PM.
 
Old 07-14-2005, 02:35 PM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,340

Rep: Reputation: 73
Now if you type startx, what is the exact error ?

Also what is the output with :
ls -l /usr/X11R6/bin/startx
 
Old 07-14-2005, 02:39 PM   #5
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Original Poster
Rep: Reputation: 15
Code:
-bash: startx: command not found
and
Code:
-rwxr-xr-x 1 root bin 3190 2005-02-13 22:07 /usr/X11R6/bin/startx
 
Old 07-14-2005, 02:42 PM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,340

Rep: Reputation: 73
is it the same behaviour if you type :
/usr/X11R6/bin/startx

Also what is the output with :
ls -l /usr/X11R6/bin/xterm
ls -l /usr/X11R6/bin/X
 
Old 07-14-2005, 02:49 PM   #7
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Original Poster
Rep: Reputation: 15
Code:
/usr/X11R6/bin/startx: line 132: xauth: command not found
/usr/X11R6/bin/startx: line 133: xauth: command not found
/usr/X11R6/bin/startx: line 132: xauth: command not found
/usr/X11R6/bin/startx: line 133: xauth: command not found
/usr/X11R6/bin/startx: line 141: xauth: command not found
/usr/X11R6/bin/startx: line 144: xauth: command not found
Code:
-rwxr-xr-x 1 root bin 261440 2005-02-13 22:14 /usr/X11R6/bin/xterm
Code:
lrwxrwxrwx 1 root root 4 2005-06-15 18:08 /usr/X11R6/bin/X -> Xorg
 
Old 07-14-2005, 02:57 PM   #8
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,340

Rep: Reputation: 73
Weird

Do you have xauth ?
ls -l /usr/X11R6/bin/xauth

Could you try :
Code:
bash --login
startx
You're simple user, not root, aren't you ?
if it fails, try :
Code:
exit
export PATH=/bin:/usr/bin:/usr/X11R6/bin
startx
 
Old 07-14-2005, 03:01 PM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Check the permissions starting at the root directory (/). It happened once to a friend of mine that directory permissions got corrupted and couldn't execute anything.
If you find a directory with wrong permissions (probably /usr) get inside it and check the permissions there, do that until you've no more directories to search.
 
Old 07-14-2005, 03:07 PM   #10
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,340

Rep: Reputation: 73
I didn't think of that (command not found)
You could check the permissions quickly with :
Code:
find / -type d -name '*bin' -maxdepth 3 -ls 2> /dev/null
 
Old 07-14-2005, 03:10 PM   #11
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Original Poster
Rep: Reputation: 15
Yes, xauth is there:
Code:
-rxwr-xr-x 1 root bin 32636 2005-02-13 22:14 /usr/X11R6/bin/xauth
If I do bash --login from regular user I get:
Code:
bash: id: command not found

bash: fortune: command not found

bash: id: command not found
If I do bash --login from su it shows the login stuff.

As simple user I tried the export line you gave me and it still can't find bash.

I'm not sure what permissions should look like (I'm really new) but I did ls -l / and I see that /usr comes up as
Code:
drwx------
I think that's wrong? Inside /usr the directories that look just like that are doc, lib, and share

Last edited by lydgate; 07-14-2005 at 03:19 PM.
 
Old 07-14-2005, 03:14 PM   #12
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Original Poster
Rep: Reputation: 15
Also, following the command keefaz gave, I get all
Code:
drwxr-xr-x
for those directories.
 
Old 07-14-2005, 03:20 PM   #13
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,340

Rep: Reputation: 73
So maybe try a chmod +rx /usr as root
(as gbonvehi pointed out)

Last edited by keefaz; 07-14-2005 at 03:22 PM.
 
Old 07-14-2005, 03:21 PM   #14
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Adding to what keefaz said, you should also set read permissions with: chmod +r /usr

After doing this get into /usr and check for "weird" permissions there.


drwx------
Explaining permissions, the first letter indicates stuff about that file, in this case, the 'd' because it's a directory. Then it comes in three groups of three letters the following permissions: read write execute
The first group is for owner, the second for group and the third for others.

You can find more about this here: http://slackbook.org/html/filesystem-structure.html (and the next page which talks specifically about permissions).

Last edited by gbonvehi; 07-14-2005 at 03:27 PM.
 
Old 07-14-2005, 03:37 PM   #15
lydgate
Member
 
Registered: Jun 2005
Location: Fullerton, CA
Distribution: Arch 0.7.1 (laptop) / Slack 10.2 (desktop)
Posts: 41

Original Poster
Rep: Reputation: 15
okay, chmod +xr on /usr /usr/lib /usr/share and /usr/doc seemed to do the trick, now I can startx and everything seems to be fine.

Anyone know how those permissions could have gotten messed up in the first place?
 
  


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
WHY should I type startx twice to startx? hiux Debian 6 09-09-2005 09:12 AM
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 07:41 PM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM
startx vs startx -- :2 (font dimension is different!!) moly82 Linux - General 7 09-15-2003 12:11 PM
Can not startx ol' digital Linux - Newbie 3 02-06-2003 04:47 PM


All times are GMT -5. The time now is 10:43 PM.

Main Menu
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