Sudo Startx Only Way to Desktop
Hi All,
I am running Linux Lite (Ubuntu?) 3.2 on an HP Proliant Server. After a few updates and a reboot I now find myself at a black screen (no mouse pointer). The yellow splash screen comes up for a few seconds but then goes to black. I can crtl/alt/f1 to a prompt and login but to start the desktop I have to run "sudo startx". Another forum had me run some commands to remove the Xauthority file, make a new one and then check permissions- Groups <user> yields- <user>: <user> adm cdrom sudo dip plugdev lpadmin sambashare ls -la /dev/tty0 yields- crw--w---- 1 root tty 4, 0 Jan 4 09:18 /dev/tty0 Other than that no more advice. Any idea how I can get this to boot to X again? Thanks |
Hi obiwanjim and welcome to LQ.
Here's something you can try when you next boot. As soon as you see the grub menu screen press 'e' on the keyboard, look for an entry starting something like 'linux /vmlinuz...' go to the end of that line and add a space and 'nomodeset' (without quotes) then press 'f10'. See if that boots ok (you'll probably not have the best graphics display) open a terminal and input Code:
dmesg tail |
Hi Pete.
I had to edit my grub file to show up but I can't seem to make the 'nomodeset' command work. I get a message about no such command after saving and trying to boot. Should I run and attach the dmesg file anyway? I think that it does seem to be a permission issue. Does "timeout in locking the authority file" mean anything when running startx without the sudo? |
Quote:
Don't edit the grub file - do it from the boot menu screen when you switch on. I assume if you get to where you can startx, you must be able to boot. You make the changes I mentioned when you see the grub menu BEFORE it actually boots. |
No I know. I had to hash out the line in my grub file to even see the grub loader. I then booted and added the line where you suggested but got the error.
|
I still don't understand what you're doing. I just wanted you to add the 'nomodeset'. You didn't have to change anything.
What did you hash out? You must have been able to boot your system to at least a console screen to be able to do startx. |
You can't add anything to the grub line(s) if the grub loader does not show up while booting. In order for it to show up you have to hash out this line in etc/default/grub-
# GRUB_HIDDEN_TIMEOUT=0 Then when it boots I get the kernel options you mentioned but adding 'nomodeset' at the end of any of them errors out with "no such command" when you continue. |
the line in question looks something like this:
Code:
linux /boot/vmlinuz-linux root=UUID=xxxxxxxxx-xxxxxxxx-xxxxxxxxx <possibly_more_options> Code:
linux /boot/vmlinuz-linux root=UUID=xxxxxxxxx-xxxxxxxx-xxxxxxxxx <possibly_more_options> nomodeset in any case, once you started X with sudo, it might have done more harm than good. it is possible that some files in your user's $HOME are now owned by root and X can't start anymore. |
Quote:
I think ondoho has expressed the appropriate line better than I did. Nomodeset will work if you get it on the right line. |
All times are GMT -5. The time now is 06:44 AM. |