Author Topic: How to kill x server  (Read 5577 times)

Kezza

  • Veteran
  • ***
  • Posts: 146
    • View Profile
How to kill x server
« on: May 14, 2012, 01:49:13 pm »
Noob question but what command kills x server?

pigdog

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1105
    • View Profile
Re: How to kill x server
« Reply #1 on: May 14, 2012, 02:16:55 pm »
Hi,

Off the top of my head try...

press Alt+Ctrl+F1, and log into workspace 1 and execute this...

init3

or try...

sudo /etc/init.d/kdm stop


Hope it works.

JaseP

  • Addicted
  • *
  • Posts: 526
    • View Profile
    • JaseP's LinuxMCE Wiki User page
Re: How to kill x server
« Reply #2 on: May 14, 2012, 03:42:54 pm »
Using the init states might kill more than the Xserver, as any other things that take place only on higher init states will also fail to launch. I used to know more about these processes when I used RPM based distros, so I'm rusty here. And, while I'm not sure of this, LinuxMCE may add more wrinkles to the mix.

Another thing is that, if I am recalling correctly, Ubuntu/Debian based distros set up init states differently than their RPM counterparts. I haven't used init states to control the Xserver since switching to DEB based distros as a result. I think your second suggestion of killing KDM may be the more productive route.
See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: How to kill x server
« Reply #3 on: May 15, 2012, 03:05:32 am »
My general quick and dirty goto is: pkill X
If you are trying to kill KDE then on 1004: service kdm stop
and maybe follow with a pkill X

Tell me what you really want to happen and I can give you a better prescription.
I never quit... I just ping out.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: How to kill x server
« Reply #4 on: May 15, 2012, 03:48:29 am »
Guys... hmm.

Would you PLEASE use Stop_X.sh in /usr/pluto/bin to kill the X server?

Come on, please, actually look at what we have in src/BootScripts instead of hacking at it with a club like a caveman. :)

-Thom

Kezza

  • Veteran
  • ***
  • Posts: 146
    • View Profile
Re: How to kill x server
« Reply #5 on: May 15, 2012, 04:09:04 am »
Thanks, I'll have another shot after work... had big problems that after a rebuild I have worked out to be stuffed HD or corrupt files and I think each time updatemedia hits one of those files the system turns to crap.

So drive is now out and I have the issues with nvidia 260 drivers so need to update.

I was going to do another reinstall since latest builds look to have newer drivers but swmbo is at breaking point so I need a stable machine quick... so if I still have issues after fixing that, well it was nice to know you all :p




l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: How to kill x server
« Reply #6 on: May 15, 2012, 05:47:24 am »
Uhh... don't update.

I brokeded alotta stuff... esp nvidia stuff.
New build should fix everything, no clear answer on when that will happen.
I never quit... I just ping out.

Kezza

  • Veteran
  • ***
  • Posts: 146
    • View Profile
Re: How to kill x server
« Reply #7 on: May 15, 2012, 09:25:56 am »
Cool, no worries I pulled out an old backup so up and running for now.