Using smxi to re-start X windows...a quirky guide
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
hi

in playing around with your xorg or windowmanger or desktop environment you may find X does not start properly and running startx says X is already up

Here is one way using smxi to fix it

1) open a new console ....say ....Control + Alt + F2 keys
login as root if allowed otherwise login as local user and su to root
issue command
:: Code ::
smxi


will terninate X

2) In another console

login as local user

delete current bad file that has a MIT cookie set

:: Code ::
rm -f ~/.Xauthority
startx


should get X back up

3) if that is failing for you try going back to original root console window and restarting your login manager if you use one

eg

/etc/init.d/gdm3 restart

(replace gdm3 with kdm or slim etc)

good luck

PS You don't need to open 2 consoles you could run su (localusername) or su to swap between non-root and root
Back to top
Display posts from previous:   

All times are GMT - 8 Hours