how to kill and start X11 server?

Forum rules
Before you post please read how to get help
Post Reply
dholl2000
Level 1
Level 1
Posts: 9
Joined: Mon May 07, 2007 4:55 am

how to kill and start X11 server?

Post by dholl2000 » Wed Apr 29, 2015 2:55 am

how to kill and start X11 server?

using LM
$ uname -a
Linux GB006412 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:41:14 UTC 2012 i686 i686 i386 GNU/Linux


cat /etc/issue
Linux Mint 13 Maya \n \l


using fluxbox as WM and MDM as DM



I'm from a slackware background so quite savvy. Oddly ctrl+alt+backspace does not kill then start X server.

Any ideas how this is done on LM?
tried google in context of the issue and LM
"sudo restart mdm"

seems to want to start on another display and prompts - "what do I do?" in not so many words.

in short, all I want is a shortcut that kills the DM and starts it again once it's been killed,
I can write a script to do this, akin to (init 3; sleep 7; init 4)

but surely LM has a better way than that right?

niowluka
Level 5
Level 5
Posts: 730
Joined: Tue May 27, 2014 6:28 pm
Location: Krakow, Poland

Re: how to kill and start X11 server?

Post by niowluka » Wed Apr 29, 2015 3:12 am

In Openbox I can either run 'openbox --exit', or include a menu option called 'exit'. Fluxbox should be at least similar, if not identical.

There is also 'openbox --replace' to restart openbox on the fly i.e. it will keep all your windows open.
Mint 17 Openbox (MATE) 64bit | Linux 4.1.6 (Vanilla)

Gigabyte GA-880GA-UD3H | AMD Phenom II X4 965 3.4Ghz | G.Skill 8GB DDR3-1600 RipjawsX, F3-12800CL8D-8GBXM | MSI R7 260X 2048 MB GDDR5 OC

User avatar
ganamant
Level 4
Level 4
Posts: 383
Joined: Sun Mar 29, 2015 4:08 pm

Re: how to kill and start X11 server?

Post by ganamant » Sun Jun 14, 2015 3:46 pm

Ctrl+Alt+backspace will also kill X if you enable it.

User avatar
Flemur
Level 17
Level 17
Posts: 7411
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: how to kill and start X11 server?

Post by Flemur » Mon Jun 15, 2015 12:05 pm

using fluxbox as WM and MDM as DM
W/fluxbox and NO display/session-manager, I logout (thru fluxbox menu) and X stops. "startx" and it's going again.

To do that, make this ludicrous change to /etc/init/tty1.conf :

Code: Select all

# for automatic login w/o a session manager:
exec /bin/login -f lemur tty1 </dev/tty1 >/dev/tty1 2>&1
# regular:
# exec /sbin/getty -8 38400 tty1
With MDM, logout will get the MDM login window.

Edit: or kill
/etc/X11/xinit/xserverrc
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

Post Reply

Return to “Others”