LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2004, 02:24 PM   #1
jmillet
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Problems with startx command


Hello all,

Just today, I started to have some problems with x that I have never had before. I use slack 9.1, and while booting I get the error

ERROR: Can't open display

After logging in, either as root or some other user, I try to do startx, but get the following error messages

/usr/X11R6/bin/startx: line 133: /usr/X11R6/bin/xauth: Permission denied
/usr/X11R6/bin/startx: line 134: /usr/X11R6/bin/xauth: Permission denied
/usr/X11R6/bin/startx: line 133: /usr/X11R6/bin/xauth: Permission denied
Error: Can't open display:
/usr/X11R6/bin/startx: line145: /usr/X11R6/bin/xauth: Permission denied

So I started to think something was wrong with the permissions on xauth. I cd into /usr/X11R6/bin, and changed the permissions to 777 just to make sure. Note, the permissions were that everyone could read before, but nothing else. In other words the permissions were 444. Now when I try to run startx I get the errors:

/usr/X11R6/bin/startx: line 133: /usr/X11R6/bin/xauth: Cannot execute binary file
/usr/X11R6/bin/startx: line 134: /usr/X11R6/bin/xauth: Cannot execute binary file
/usr/X11R6/bin/startx: line 133: /usr/X11R6/bin/xauth: Cannot execute binary file
/usr/X11R6/bin/startx: line 134: /usr/X11R6/bin/xauth: Cannot execute binary file
Error: Can't open display:
/usr/X11R6/bin/startx: line 145: /usr/X11R6/bin/xauth: Cannot execute binary file

Just yesterday, everything was working fine. I installed no new software during that time, nor did I remove any software. I did not change anything in the system, so I have no idea why this is happening.

Dmesg yields nothing useful.

Thanks in advance, any help would be appreciated
 
Old 03-18-2004, 05:47 PM   #2
Glock Shooter
Member
 
Registered: Jan 2002
Location: Riverside, CA
Distribution: Slackware Convert!!
Posts: 210

Rep: Reputation: 30
I think you need to add /usr/X11R6/bin/ to your path
 
Old 03-18-2004, 05:59 PM   #3
jmillet
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
nope, if that was the problem it wouldn't even recognize startx as a command
 
Old 03-18-2004, 07:06 PM   #4
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
well ... something must have changed, i'm thinking re install the XFree86 packages, and keep your config files.
 
Old 03-19-2004, 02:30 AM   #5
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
Does your user have a ~/.Xauthority file ? You might try renaming this file and see if X re-creates it for you when executing 'startx'. Probably should change back the permissions for /usr/X11R6/bin/xauth first.
 
  


Reply



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 command not found r2d2owns Slackware 5 11-24-2005 08:44 PM
startx command not found brian183 Debian 6 10-07-2004 06:37 PM
Problem after 'startx' command James McDowall Linux - Newbie 2 06-18-2004 08:55 PM
startx command not found desluscious Linux - Newbie 6 08-25-2003 06:57 PM
startx command cromagnon111 Linux - Software 3 03-23-2001 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:43 AM.

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
Open Source Consulting | Domain Registration