Page 1 of 1

Restart X

Posted: 05 Dec 2014, 17:53
by Archybaldos
Hi guys!
Sorry, stupid question - how right restart x-session from cli (script?) without entering login/password? It's possible?
System: Porteus-LXDE-v3.0.1-i486

TNX!

Re: Restart X

Posted: 05 Dec 2014, 21:36
by brokenman
From CLI you can hit it with a hammer: killall X

Probably better would be to pass an init stage: init 3

Re: Restart X

Posted: 05 Dec 2014, 21:51
by fanthom
you could press 'Ctrl+Alt+Backspace' to kill Xorg but i'm not sure if lxdm allows autologin after a restart (i know than kdm does for sure).

if you really need autologin then perhaps you could call /usr/bin/xdm instead of lxdm in /etc/rc.d/rc.4 script (not tested myself).

Re: Restart X

Posted: 06 Dec 2014, 11:04
by brokenman
I have used a custom xdm file and removed lxdm and it 'auto logs in' without a problem when X is killed.

Re: Restart X

Posted: 09 May 2015, 18:02
by cttan
Maybe you can try this:-
telinit 3 && telinit 4