Author Topic: Disabling X  (Read 10885 times)

Syranolic

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Disabling X
« on: October 04, 2010, 05:57:16 pm »
Hi,

I run my server headless (2.0.1) and I remove the graphic card to save energy. It works, but to keep it clean I prefer to also disable the X login manager. I tried this, as recommended for Ubuntu 10.4:

Code: [Select]
sudo update-rc.d -f slim remove
But it doesn't help.
Any idea?

kila

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Disabling X
« Reply #1 on: October 04, 2010, 08:05:35 pm »
Try this:
Code: [Select]
# sudo -i
# update-rc.d -f slim disable
# update-rc.d -f x11-common disable

Comment out or remove the "slim restart" line from /etc/rc.local
Code: [Select]
#!/bin/sh
#/etc/init.d/slim restart
exit 0

best regards

Syranolic

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Disabling X
« Reply #2 on: October 04, 2010, 09:00:04 pm »
I tried the second suggestion and the result was a login manager showing up for a few seconds before quitting. After that, using "startx" would result in an error because the X server was supposedly already running. I had to use both your first and second option to disable the login manager.

The first option, using disable instead of remove, had the same effect as using remove. But I would guess disable is the better way...

Thank!

Syranolic

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Disabling X
« Reply #3 on: October 05, 2010, 11:05:40 pm »
Just to round this up, in case anyone cares: disable the grub splash screen by deleting "splash" from /etc/defaults/grub and then running update-grub.

maxprox

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Disabling X
« Reply #4 on: August 25, 2011, 11:02:18 pm »
Try this:
Code: [Select]
# sudo -i
# update-rc.d -f slim disable
# update-rc.d -f x11-common disable

Comment out or remove the "slim restart" line from /etc/rc.local
Code: [Select]
#!/bin/sh
#/etc/init.d/slim restart
exit 0

best regards
After one year - I dry it

Hello together,
I will use the Zentyal server headless (and wants to compare it with the SME-Server)
I will disable GUI and X and lxde. I work with ssh and the web interface.
In Zentyal there is no "/etc/init.d/slim" startscript

Can anyone say what I need to do in Zentyal 2.2 to disable the GUI, X and lxde, etc.?

best regards

maxprox

maxprox

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Disabling X
« Reply #5 on: August 26, 2011, 12:09:14 am »
Hello,

I think it does not like me ;-)
I've tried all the following:
http://blog.zloether.com/2009/09/disable-gui-in-ubuntudebian.html
http://www.cyberciti.biz/faq/prevent-xorg-from-starting-in-linux/
and
Code: [Select]
# update-rc.d -f gdm remove
 Removing any system startup links for /etc/init.d/gdm ..

# update-rc.d -f lxde remove
 Removing any system startup links for /etc/init.d/lxde ...

# update-rc.d -f lxdm remove
 Removing any system startup links for /etc/init.d/lxde ...

# update-rc.d -f x11-common remove
 Removing any system startup links for /etc/init.d/x11-common ...
   /etc/rc0.d/K30x11-common

but - has done NOTHING

By the way:
- my Xorg has a CPU utilization of about 50% CPU
Code: [Select]
load average: 2.12, 1.77, 0.89 without Xorg
Code: [Select]
load average: 0.07, 0.29, 0.39




maxprox

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Disabling X
« Reply #6 on: August 30, 2011, 12:18:45 am »
Hello,

I've found it.
In the file /etc/rc.local you have to comment out the line with "zentyal-lxdm"
for me it works:
Code: [Select]
#!/bin/sh

## initctl emit zentyal-lxdm

exit 0
~                                                                                                                             
~   

That (or this file) is the reason why all the other attempts failed :-(
« Last Edit: August 30, 2011, 12:20:21 am by maxprox »