Hi all
I need to disable / stop X from running on a remote server, to which I only have SSH access, and I have never done this before. So, can someone please tell me how todo it?
Paul Bijnens wrote:
Rudi Ahlers wrote:
Hi all
I need to disable / stop X from running on a remote server, to which I only have SSH access, and I have never done this before. So, can someone please tell me how todo it?
telinit 3
And forgot to mention that, to disable it when the next time the server reboots edit the file /etc/inittab and set the default runlevel to 3, instead of 5, by editing this line:
id:3:initdefault:
Paul Bijnens wrote:
Paul Bijnens wrote:
Rudi Ahlers wrote:
Hi all
I need to disable / stop X from running on a remote server, to which I only have SSH access, and I have never done this before. So, can someone please tell me how todo it?
telinit 3
And forgot to mention that, to disable it when the next time the server reboots edit the file /etc/inittab and set the default runlevel to 3, instead of 5, by editing this line:
id:3:initdefault:
Cool, thanx :)
I need to disable / stop X from running on a remote server, to which I only have SSH access, and I have never done this before. So, can someone please tell me how todo it?
telinit 3
If you need the server to stay at runlevel 3 after a reboot change id:5:initdefault: to id:3:initdefault: in /etc/inittab. Make sure the required services are enabled at this runlevel.
On Wednesday 23 July 2008, Paul Bijnens wrote:
Rudi Ahlers wrote:
Hi all
I need to disable / stop X from running on a remote server, to which I only have SSH access, and I have never done this before. So, can someone please tell me how todo it?
telinit 3
This will cause the server to switch from runlevel 5 (which includes X) to runlevel 3 (which does not). _But_ a small warning here: runlevel 3 may very well differ in more ways that just lacking X. Depending on how your server is configured you may shutdown some services you wanted to keep (you may also start new ones you didn't expect).
To further investigate what you server does indeed run in runlevel 3 and 5 study relevant columns from the command: "chkconfig --list".
/Peter
Peter Kjellstrom wrote:
On Wednesday 23 July 2008, Paul Bijnens wrote:
Rudi Ahlers wrote:
Hi all
I need to disable / stop X from running on a remote server, to which I only have SSH access, and I have never done this before. So, can someone please tell me how todo it?
telinit 3
This will cause the server to switch from runlevel 5 (which includes X) to runlevel 3 (which does not). _But_ a small warning here: runlevel 3 may very well differ in more ways that just lacking X. Depending on how your server is configured you may shutdown some services you wanted to keep (you may also start new ones you didn't expect).
To further investigate what you server does indeed run in runlevel 3 and 5 study relevant columns from the command: "chkconfig --list".
/Peter
Thanx, I did notice it, but since this is a Xen server, with everything running on the domU VM, I need very little running on the main server as it is. So I have disabled a lot of unnecessary services as well.