LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-12-2011, 01:40 PM   #1
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Rep: Reputation: 2
When I try to start up X on lmde I get an error, also I nuked my /etc/X11 . . .


When I try to start up X on lmde I get an error, also I nuked my /etc/X11 directory with rm * by mistake. (I thought I was in my home directory and I was deleting a nvidia driver.) On my laptop I transfered over the files from my /etc/X11 directory and had a boken symbolic link. I am unsure how to fix it but I have tried. the symbolic link being X. I removed it and replaced with "ln -s /usr/bin/X /etc/X11/X".

I am trying to install the proprietary nvidia drivers from nvidias' site, only do to the fact that lmde does not have a nvidia driver for the latest kernel version. I was told that they have to match up or it will not work, which it didn't. Then I was also told that to get it off the site. That seemed easy enough it installed but I did forget I was in the /etc/X11 directory, because I was taking a look at the X configuration file. I tried to delete the NVIDIA-Linux-x86-280.13.run file with rm * and I removed every non directory file in "/etc/X11/".

After all of that chaos I tried to startx, and I got these results.

X: /etc/X11/X points back to a X wrapper executable, aborting.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Tell me if you need more information.
 
Old 08-12-2011, 04:31 PM   #2
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbang
Posts: 620
Blog Entries: 1

Rep: Reputation: 140Reputation: 140
At this point I'd re-install as that will probably be easier than re-building /etc/X11
 
Old 08-12-2011, 05:59 PM   #3
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Original Poster
Rep: Reputation: 2
That was not the answer I was hoping for.
 
Old 08-12-2011, 06:10 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,783

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Are you able to boot into runleve 3? If so, you could boot a liveCD and download the xorg packages to your hard drive, then boot to runlevel 3 and try to install them via dpkg or apt. You would have to edit /etc/apt/sources.list to add the path to the files at the top of the sources.list. I'm not sure how to do it using dpkg.

Quote:
I am unsure how to fix it but I have tried. the symbolic link being X. I removed it and replaced with "ln -s /usr/bin/X /etc/X11/X".
This isn't likely to work in any event. /usr/bin holds executables; /etc/* holds config files.
Quote:
I nuked my /etc/X11 directory with rm * by mistake. (I thought I was in my home directory and I was deleting a nvidia driver.)
I'd suggest you modify the PS1 prompt lines in both your user and root .bashrc files to:
a) change the color of your prompt when switching from user to root as a warning that great damage may happen from one careless keypress
b) add the pwd (present working directory) to your bash prompt so that you will always know where in the directory tree you are when working from the command line. If that makes the prompt longer than you like for issuing commands, add a \n (newline) at the end of the PS1 to show the prompt with pwd, then move the cursor to the line below the prompt.
c) make it a habit when using dangerous commands like rm to always give the path to the file (or directory of files) that you want to rm.

One learns to do simple things like in the School of Hard Knocks. But it can save you from yourself.

Last edited by bigrigdriver; 08-12-2011 at 06:22 PM.
 
Old 08-13-2011, 01:04 AM   #5
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Original Poster
Rep: Reputation: 2
I learned my lesson. Make a back up, back up the backup, and make another one.
 
  


Reply

Tags
nvidia, startx, x11, xorg, xserver


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
Start apps when X11 starts. almost000 Linux - Newbie 5 09-20-2007 05:57 PM
X11 fails to start, IO error 104 jdwilder Fedora 4 08-07-2006 12:55 PM
Swaret broke X11, not getting 'Could Not Start kdeinit' error JockVSJock Slackware 4 07-31-2006 09:10 PM
X doesnt start anymore; error message: "/etc/X11/ X is not an executable" lixy Linux - General 5 01-14-2006 09:12 AM
X11 refusing to start HELP !! corelover Slackware 7 05-09-2005 05:17 PM


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