Operating System - Linux
1827871 Members
1241 Online
109969 Solutions
New Discussion

Re: How to disable Xserver in run level 5. (Help!)

 
Rui Vilao
Regular Advisor

How to disable Xserver in run level 5. (Help!)

Hi,

I am in a big trouble!
I need run login to a Red Hat 4.0 server to run some application. I don't need any graphical env at all.
I was given a TFT display and X doe not run...

When I define in inittab a default run level 3, I can login...but I am in run level 3...

The console hangs if a comment-out the line:
x:5:respawn:/etc/X11/prefdm -nodaemon

How can I disable X?

Any help/suggestion is HIGHLY appreciated.

Thanks in advance for your help,

Kind Regards,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: How to disable Xserver in run level 5. (Help!)

What is the problem with running in runlevel 3? You can still start remote X applications if for example, you use ssh -X to allow X tunnelling.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Alexander Chuzhoy
Honored Contributor

Re: How to disable Xserver in run level 5. (Help!)

If you don't need any graphical environment, then you should keep init 3 as default...
Steve_160
Frequent Advisor

Re: How to disable Xserver in run level 5. (Help!)

Can't you just use "ctrl-alt-F2" to come up with a command prompt at a virtual console? It sounds like this is what you want to do. I don't understand why you don't want to use runlevel 3 if you don't need a graphic environment.
#@%!! Windows!
Alexander Chuzhoy
Honored Contributor

Re: How to disable Xserver in run level 5. (Help!)

Although it's probably wrong and you should use init 3 for getting env without X, the following action will disable X.
Prefix the following line
"x:5:respawn:/etc/X11/prefdm -nodaemon"
in /etc/inittab with a pound sign, so it'll look like this:
#x:5:respawn:/etc/X11/prefdm -nodaemon
after that save your changes and quit.
Type "init q" and that's it.
Mike Stroyan
Honored Contributor

Re: How to disable Xserver in run level 5. (Help!)

It seems that prefdm shuts down the rhgb graphical boot environment before starting gdm or kdm or xdm login screen. Commenting out prefdm may be leaving rhgb running and interfering with seeing the text console.
You could disable rhgb by removing it from the kernel boot options in grub or elilo. Or you could use "/usr/bin/rhgb-client -quit" to
stop it as prefdm does.