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.