Restart X

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
User avatar
Archybaldos
White ninja
White ninja
Posts: 13
Joined: 02 Dec 2014, 17:14
Distribution: FreeBSD, Ubuntu
Location: Europe

Restart X

Post#1 by Archybaldos » 05 Dec 2014, 17:53

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!

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Restart X

Post#2 by brokenman » 05 Dec 2014, 21:36

From CLI you can hit it with a hammer: killall X

Probably better would be to pass an init stage: init 3
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Restart X

Post#3 by fanthom » 05 Dec 2014, 21:51

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).
Please add [Solved] to your thread title if the solution was found.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Restart X

Post#4 by brokenman » 06 Dec 2014, 11:04

I have used a custom xdm file and removed lxdm and it 'auto logs in' without a problem when X is killed.
How do i become super user?
Wear your underpants on the outside and put on a cape.

cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: Restart X

Post#5 by cttan » 09 May 2015, 18:02

Maybe you can try this:-
telinit 3 && telinit 4

Post Reply