LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-27-2007, 11:10 AM   #1
SVwander
Member
 
Registered: Mar 2006
Distribution: Kubuntu 7.04
Posts: 87

Rep: Reputation: 15
how do I reinstall xorg


Is there any way to reinstall xorg.conf? Well, I have used apt-get install --reinstall xserver-xorg but each time I reboot I get a blank screen after the login screen. After doing the reinstall mentioned above I get this message after the download:
Setting up xserver-xorg (7.1.1 ubuntu 6.2)...
xserver-xorg postinst warning: not updating /etc/X11/X; file has been customized.
I have been trying for a couple of weeks, on and off, to get this computer to work . . . I gave it up for awhile. Any idea?
tim
 
Old 06-27-2007, 11:49 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Can you login to a CLI either selecting the option in GDM or using Alt-F1? If so, then login and look at /var/log/Xorg.0.log to see what went wrong.

If you can get logged in to a CLI as root you can also create a new xorg-conf
Code:
cd ~ &&
Xorg -configure
Then test it
Code:
X -config ~/xorg.conf.new
You will only see a 'grey' background with black X cursor, but this indicates the X server is working. Exit with Control+Alt+Backspace. If the system does not work, take a look at /var/log/Xorg.0.log to see what went wrong. If all went well, as the root user, move the configuration file to /etc/X11.
 
Old 06-27-2007, 12:59 PM   #3
SVwander
Member
 
Registered: Mar 2006
Distribution: Kubuntu 7.04
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by weibullguy
Can you login to a CLI either selecting the option in GDM or using Alt-F1? If so, then login and look at /var/log/Xorg.0.log to see what went wrong.

If you can get logged in to a CLI as root you can also create a new xorg-conf
Code:
cd ~ &&
Xorg -configure
Then test it
Code:
X -config ~/xorg.conf.new
You will only see a 'grey' background with black X cursor, but this indicates the X server is working. Exit with Control+Alt+Backspace. If the system does not work, take a look at /var/log/Xorg.0.log to see what went wrong. If all went well, as the root user, move the configuration file to /etc/X11.
I am a bit confused by how to run a command line in root. Until now most of the time I have used sudo. I am gathering by what you said that I need to run as root to make these commands work so I guess I need to know how to do that. As I said my sign in screen comes in fine. I guess it is after that point that the system is turned over to xserver-xorg.

Also as a side note Alt-F1 does not get me a login screen. The only way I was able to get to write command lines was to hit ctrl-alt-F4. That might have something to do with it I don't know.

Tim
 
Old 06-27-2007, 01:11 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Yeah, sorry ctrl-alt-F1 (or F2, F3, F4, etc.) You can do it using sudo from the command line, just like you are using a terminal in your GUI environment. First, check that log file I mentioned. You can view it from the command line like this, use the up/down arrows to scroll and hit q when you're done
Code:
cat /var/log/Xorg.0.log | less
Look for lines that begin with (EE).
 
Old 06-27-2007, 02:10 PM   #5
SVwander
Member
 
Registered: Mar 2006
Distribution: Kubuntu 7.04
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by weibullguy
Yeah, sorry ctrl-alt-F1 (or F2, F3, F4, etc.) You can do it using sudo from the command line, just like you are using a terminal in your GUI environment. First, check that log file I mentioned. You can view it from the command line like this, use the up/down arrows to scroll and hit q when you're done
Code:
cat /var/log/Xorg.0.log | less
Look for lines that begin with (EE).
Okay that worked fine. That is one long log. I had these machines networked at one point where I could read the files on this machine but it isn't working today. One problem at a time! So I hand wrote the (EE) part of the file.

(EE) Failed to initialize GLX extentsion (Compatible NVIDIA X driver not found)
error opening security policy file /usr/lib/xserver/SecurityPolicy
(EE) xf86openSerial: cannot open device /dev/wascom
No such file or directory
Error opening /dev/wasom : success
(EE) xf86openSerial: cannot open device /dev/wascom
No such file or directory
Error opening /dev/wasom : success
(EE) xf86OpenSerial: cannot open device /dev/wascom
No such file or directory
Error opening /dev/wasom : success

those were the errors in the log file some were marked with (WW)
Can you make out what's wrong from this? My eyes were going crossed just copying it!
Tim
 
Old 06-27-2007, 04:02 PM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
This is likely the problem
Quote:
(EE) Failed to initialize GLX extentsion (Compatible NVIDIA X driver not found)
Open /etc/X11/xorg.conf and look for a line in the "Modules" section
Code:
Load "glx"
Comment it out by placing a hash (#) in front. You would need the proprietary nVidia driver for the glx extension to work (IIRC).

The wacom stuff is in the default *buntu corg.conf on the off chance that you have a tablet. It really should be reported as a warning (WW), but the Xorg folks are working on that. In any event, it shouldn't be causing you a problem. But there's no reason to have the wacom stuff in the config file if you don't have a tablet. Find the section that looks something like this and comment out all the whole section.
Code:
Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/wacom"
  Option        "Type"          "stylus"
EndSection
 
Old 06-27-2007, 06:22 PM   #7
SVwander
Member
 
Registered: Mar 2006
Distribution: Kubuntu 7.04
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by weibullguy
This is likely the problemOpen /etc/X11/xorg.conf and look for a line in the "Modules" section
Code:
Load "glx"
Comment it out by placing a hash (#) in front. You would need the proprietary nVidia driver for the glx extension to work (IIRC).
I might have screwed it up royally. I couldn't find a text editor. Well I used vi and ended up putting the hash mark in front of that line but in saving it I put a few dozen blank lines in the file. It didn't work.

Then I got the bright idea of using that hard drive as a slave and another with Ubuntu on it as a master. Well something in Grub had it boot off the slave or some how that xorg.conf got loaded. I disconnected the slave and it booted fine. I don't know enough about this! What I had planned to do is to mount that slave drive and use gedit to edit the file. Okay, I admit I don't know what I am doing but I am having fun and maybe learning a tiny bit.

tim
 
  


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
Removing custom built Xorg to install Etch's Xorg kushalkoolwal Debian 4 05-30-2007 02:50 AM
xorg screen res not being set properly with Xorg 6.9.0 sgnome Linux - Laptop and Netbook 2 06-12-2006 03:26 AM
recent dist-upgrade of xorg has killed my mouse (and thusly, xorg). Lokathor Debian 4 06-10-2006 05:52 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 11:50 AM
Xorg Hard Crashes and corrupts xorg.conf Advocator Linux - General 0 07-15-2004 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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