How to disable X windows?
I have modified /etc/inittab file for changing default runlevel from 5 to 3 .
Now i can boot in terminal mode .However if i issue init 5 i get a X window. How would i disable loading X? do i need to disable some services? P.S. What is Xvfb? How would i disable it? My Distribution Details. Code:
# lsb_release -a |
Hi,
On the /etc/inittab file you can find that X is started so you can comment out those lines.... But why you would like to go into runlevel 5 if you don't want the X windows to be started? Best regards jose |
Quote:
Quote:
Kind regards |
You could simply comment out the line I have highlighted in /etc/inittab:
Code:
# /etc/init.d/rc takes care of runlevel handling |
Quote:
How would i uninstall X Which package needs to be removed?How would i find which file is to be done? There was no choice of not installing X while Installing OS. |
If you want to remove Xwin from the cmd line, you'll need one or more of the 'yum' cmds: http://kbase.redhat.com/faq/docs/DOC-2531
However, the qn remains; why 'init 5' if you don't want Xwin? init level 3 gives you a full capability server. init 5 is specifically to start the Xwindows. As for init 4, it's officially undefined/avail to local user to provide a cusstom state. http://www.linuxtopia.org/online_boo...ices-runlevels |
Quote:
I have commented following line. Code:
l5:5:wait:/etc/init.d/rc 5 it was booted in runlevel 3. later i run init 5 and it went to graphical mode. What is the use of commenting l5:5:wait:/etc/init.d/rc 5 ? |
As most people have said. There is no point in changing to runlevel 5 as that is purely for X Windows.
Is there something that you placed in runlevel 5? or specific reason for wanting runlevel 5? |
Exaclty what did you do? I pointed out that you need to apply the correct yum cmds from the cmd line (as root) to remove the deskop/Xwin Sw.
You'd start with yum grouplist then use the yum remove <relevant groupname> to remove the desktop/Xwin stuff. I'm not on Linux right now, so you'll have to get the correct name yourself. |
Quote:
I just want to know the diference between making default runlevel 3 and commenting the highlighted line as per jschiwal's post. There are no services that are there in runlevel 5 I just want to avoid going into runlevel 5. For example i should be getting error or nothing should happen when i type init 5.Is this possible? |
Hi,
Commenting lines: Code:
l4:4:wait:/etc/init.d/rc 4 Regardign your last question, you are right, selecting the runlevel for inittab is enough for starting in the right runlevel and nothing else is needed. Cheers jose |
All times are GMT -5. The time now is 06:02 PM. |