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.
if the runlevel is 3 where is the problem? only root can change runlevel...
Stopping X services can lead to issues since some software rely on (oracleInstaller etc...). the same for Xvfb (if configured that is because I believe it does not run on its own...).
So either you stick to your int 3 default plan, or you remove the links in runlevel 5
Do you have in /etc a rc5.d directory? or a init.d directory? or rc.d/init.d directory? if so what is in it? ( I have no RH or centos linux to check...)
Just unlink the soft link, which you would be having for the X init, inside your default runlevel of /etc/init.d/rc5.d
This works pretty well but is considered a hard way of doing so.
Otherwise sophisticatedly, you may also wish to consider chkconfig utility. This is just a command line utility to add/delete an init script at an specified runlevel. Look google for its command usage. It’s a pretty simple one to use too.
This User Gave Thanks to Praveen_218 For This Post:
Just unlink the soft link, which you would be having for the X init, inside your default runlevel of /etc/init.d/rc5.d
This works pretty well but is considered a hard way of doing so.
Otherwise sophisticatedly, you may also wish to consider chkconfig utility. This is just a command line utility to add/delete an init script at an specified runlevel. Look google for its command usage. It's a pretty simple one to use too.
Since there are so many links i m confused which one to unlink.
Can you please guide me?
As a Security practice I wanted to disable X from loading.
So i modified following line from /etc/inittab.
id:3:initdefault:
I was then able to start my machine in terminal mode(runlevel 3).
I wasn't satisfied at this stage as i was able to get the graphical console by merely typing
So i search and find out that the reason for loading the graphical user interface was a script resided in
So i renamed it thinking OS will fail in finding it when invoked by inittab file .
To my surprise i was able to get the terminal back even if i hit
#init 5
but then i realize i keep on getting following error lines.
I found out the reason behind this was a line in /etc/inittab
(respawn The process will be restarted whenever it terminates)
Since the file prefdm was renamed and respawned the OS was keep on trying to execute it considering it is terminated.
Now i have made the above line commented and removed execute bit of the file .
System is now behaving as i wish it would.
Will it make any difference?
I m not using any application that explicitly use graphical user interface and i can work in runlevel 3.
I work for a small company and we are heavily invested in linux. I would like to find out if it is advantageous to disable/remove X11 or X windows so no GUI login is available.
Any good compelling reasons? (2 Replies)
Hi all Expertise,
I have following issue to solve,
SSL / TLS Renegotiation DoS (low) 222.225.12.13
Ease of Exploitation Moderate
Port 443/tcp
Family Miscellaneous
Following is the problem description:------------------
Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)