LinuxQuestions.org
Visit Jeremy's Blog.
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 12-06-2006, 12:29 AM   #1
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Rep: Reputation: 33
I need help restoring my /usr/bin X file, and a couple of others.


I was in the process of installing Beryl, and got down to the last part where in the wiki it explained how to get xgl to work. This is what they suggested:

root# rm /usr/bin/X
root# ln -s /usr/bin/Xgl /usr/bin/X

I did this and then when i booted out, X failed to start. No problem, they said to undo this by:

root# rm /usr/bin/X
root# ln -s /usr/bin/Xorg /usr/bin/X

Which i did. That didnt work. I then tried reistalling xorg, reistalling old xorg.conf file, and doing link . . . the message I get says it cant find ?usr/bin/X11/X which is a different file then the one I messed with. What do i do?
 
Old 12-06-2006, 04:17 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
ls -lad /usr/bin/X11
ls -lad /usr/bin/X11/X

Reinstall x11-common should do the trick. If it doesn't, try to get the archive and do it yourself:

You download x11-common, either by unpacking this:
http://ftp.debian.org/debian/pool/ma...7.1.0-7.tar.gz
or by apt-get source x11-common
then put back /usr/bin/X and then X11 is a link to . which is
cd /usr/bin
check that you have X binary:
ls -lad X
-rwsr-sr-x 1 root root 18416 2006-11-19 01:58 /usr/bin/X
and then recreate the link:
ln -s X11 .
check:
ls -lad X11
lrwxrwxrwx 1 root root 1 2006-11-20 17:56 X11 -> .

Should do it
 
Old 12-06-2006, 08:01 AM   #3
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Original Poster
Rep: Reputation: 33
I did what you showed me.

when i rebooted i got:

Creating new authority file /root/serverauth.2341
/etc/X11/xinit/xserverrc: line 5 /usr/bin/X11/X is a directory
/etc/X11/xinit/xserverrc: exec: /usr/bin/X11/X:cannot execute;success giving up
xinit: connection refused (errno111) unable to connect to xserver
xinit: no such process(errno3) server error.

Anyway, I can follow directions, but I am past my knowledge base (although I am learning rapidly)
I'm hoping you can help me with this. I don't mind doing whatever is necessary, but I definitely need help.
 
Old 12-06-2006, 08:30 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Well, it tells you the problem: X is a directory?!!
Have a look at these commands and post the results
Code:
ls -lad /usr/bin/X
ls -lad /usr/bin/X11
ls -lad /usr/bin/X11/X
 
Old 12-06-2006, 03:31 PM   #5
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Original Poster
Rep: Reputation: 33
ok what I got for these is:

drwxr-xrxx 2 root root 4096 2006-12-06 00:33 /usr/bin/X

lrwxrwxrwx 1 root root 1 2006-11-30 07:23 /usr/bin/X11 ->

drwxr-xr-x 2 root root 4096 2006-12-06 00:33 /usr/bin/X11/X

I'm really hoping your going to tell me its fixable er . . . whatever the problem is. . . .
 
Old 12-06-2006, 11:07 PM   #6
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Original Poster
Rep: Reputation: 33
Problem Solved!! And I am very proud of myself. I've learned a bunch by studying xorg the last couple of hours, and basically rebuilt xorg and the links from the ground up. These problems always seem to arise right when i am ready for them. I could not have done it without you nx5000. I had no clue that X wasnt supposed to be a directory. that was my starting point. Thanks for taking the time out for me. I still dont know how to get xgl enabled on my system . . . any clue?
 
Old 12-07-2006, 04:21 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by sleekmason
I could not have done it without you nx5000. I had no clue that X wasnt supposed to be a directory.
I could not have done it without the error message you gave me.
As a general rule, read carefully the error messages first.
Quote:
that was my starting point. Thanks for taking the time out for me. I still dont know how to get xgl enabled on my system . . . any clue?
For this I would advice you opening a new thread otherwise people who really know about xgl (like... not me eh.. sorry) won't come to help you.
You should include the model of your graphics card.

As you seem to be interested to know about xorg, have a look here:
http://principe.homelinux.net/
It's complex but.. its how it works.
 
Old 12-07-2006, 09:43 AM   #8
sleekmason
Member
 
Registered: Mar 2006
Distribution: Lilidog!
Posts: 337

Original Poster
Rep: Reputation: 33
Thanks for the site
 
  


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
file /usr/bin/mysqlbug from install of mysql-3.23.58-1.9 conflicts with file from pac commandline Linux - Software 2 09-28-2006 05:55 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM
/usr/bin file permissions enlight1 Linux - Newbie 2 07-31-2003 08:16 PM

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

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