Restarting Xserver from cli
Ray Parrish
crp at cmc.net
Fri Mar 20 05:45:35 UTC 2009
Knapp wrote:
> .>> Ray,
>
>>> After CTRL+ALT+Fn(n=1-6) do CTRL-ALT-F7 and you're back in your X-session.
>>> Joep
>>>
>>>
>> Thanks! Can I actually query and kill hung processes from 7 while logged
>> into 1?
>>
>> Later, Ray Parrish
>>
>
> If you have jumped out of X then I would think it is dead, so jumping
> back to X with 7 will give you the same dead X. If howeever, you fix
> it from f1 then jump back to f7 all should be good.
>
> Use the man command and learn these:
> Top is a great tool to learn but I hate its interface.
> Atop or htop is better but you must install it. (not hard!) Anyone
> know which is best?
> kill (built into the 3 above)
> ps
>
> Anyone less have commands that are a must have for fixing a dead X?
>
> For the newbie, start looking at the htop list and look for programs
> that are maxing out the CPU or just start killing off stuff that you
> know is running under X and you can kill without problems. For
> example, I often kill the software that I was using when the computer
> froze up and that fixes the problem or if that fails start killing of
> software that you know can take it, like firefox and sound and movie
> viewers. Save programs with data that needs saving for last. When all
> else fails kill X itself.
>
Thanks! I'm already familiar with those commands, but wasn't sure if I
could use them on another tty or not. Now I know, and the next time I
have to jump out of X to a console, I'll be able to fix tty7 and then
log back in.
Later, Ray Parrish
--
Human reviewed index of links about the computer
http://www.rayslinks.com
Poetry from the mind of a Schizophrenic
http://www.writingsoftheschizophrenic.com/
More information about the ubuntu-users
mailing list