PDA

View Full Version : [ubuntu] White screens and root access



d_swordfish
June 5th, 2008, 10:14 PM
I've been running Ubuntu and dual booting for a couple of months now, and recently updated to version 8.

After noticing updates were not downloading, I browsed these forums and found out that I in fact had no root access and upon trying any sudo command I got a message about unable to resolve host. The forum told me I should try using the recovery console to regain root access. So I restarted, selected recovery mode from grub and attempted running various commands, these did not work so I went back to the recovery menu. Stupidly I managed to run the "Fix xServer" option. Now upon login I get a blank white screen and nothing happens.

I've tried searching around but have not yet found a solution. Can anyone help?

phidia
June 5th, 2008, 10:22 PM
Try pressing the Alt+Ctrl+F1 (other function keys up to F7 should work too)
from the CLI that comes up you can hopefully login and then type
startxand press enter. If that doesn't bring you a desktop it should at least give you some error output you can search and/or post here.

Baelus
June 5th, 2008, 10:31 PM
See if you have sudo rights.

If you do then try this:


sudo X -configure

That will generate a new xorg.conf file. Your current xorg.conf file is still untouched. This just puts a new one together. Then use this:


sudo X -config xorg.conf.new

At least that may get you a gui to work with.

- B

d_swordfish
June 5th, 2008, 11:09 PM
Ok, tried both of these. I still do not have root access and simply receive the message

Unable to resolve host: KAYE-OS-2

Using the startx command after logging in gives me this:

hostname: Unknown host
xauth: (argv):1: bad display name "KAYE-OS-2:0" in "list" command
xauth: (stdin):1: bad display name "KAYE-OS-2:0" in "add" command

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again

xauth: (argv):1: bad display name "KAYE-OS-2:0" in "remove" command


I had to copy that by hand and type, so there may be some errors.

Baelus
June 5th, 2008, 11:41 PM
Ah. Looks like a known bug in Hardy:

http://ubuntuforums.org/showthread.php?t=773851

The sudo problem is at the top of the list. It also looks like there's a workaround and a fix.

Hope it's something you can use. And let's hope X figures itself out after that. :)

- B

d_swordfish
June 7th, 2008, 12:52 PM
Alright, we're getting somewhere. I'd already found the thread about the root access problem, that's why I was messing around in the recovery console to begin with. I obviously didn't read it well enough however, as this time I was able to get back my root access. Which of course allowed me to do the x config thing. However this has not really worked yet, as I am simply led to a flickering grey screen with a mouse cursor and nothing else.

Thanks for the help so far.

Baelus
June 7th, 2008, 07:42 PM
I admit I broke a rule of troubleshooting. I charged head first into the more complex stuff. Start simple and work from there. :oops:

Did you try phidia's suggestion of


startx

I'm thinking if you now have sudo and the 'resolve host' issue is solved, then startx could very well work.

- B

d_swordfish
June 11th, 2008, 11:07 PM
I'm still getting this:


Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again

Any thoughts?

Baelus
June 12th, 2008, 12:53 AM
That lock file is set when an X server starts. It's supposed to stop other instances of X starting (on the same terminal I think).

This will shutdown any instances of X for sure:

sudo killall Xorg

That may kick the desktop manager into gear and you'll get your gui back.

If not then you can manually get rid of the X lock file with this:

sudo rm /tmp/.X0-lock

Now you should be able to run:

sudo /etc/init.d/gdm start

which will start the X server, activate gnome and either drop you at the login screen or it will take you straight to your desktop if auto-login is set.

That's for Gnome. I think KDE uses kdm and Xfce I guess would be xdm.

- B

d_swordfish
June 24th, 2008, 02:12 PM
Sorry for taking so long to try these, I have been very busy. killall seems to have some effect, I get thrown back to the login screen, and upon logging in actually get a few seconds of my desktop befor the white screen returns. Trying the manual method gets me this:


david@KAYE-OS-2:~$ sudo /etc/init.d/gdm start
* Starting GNOME Display Manager... [OK]
david@KAYE-OS-2:~$

Nothing else happens. I tried running startx again, but was left with a black screen with the cursor in the centre.

d_swordfish
June 30th, 2008, 11:06 PM
Could use an answer on this if at all possible.
Thanks.