Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-26-2010, 12:30 AM   #1
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
Disabling X.

As a Security practice I wanted to disable X from loading.
So i modified following line from /etc/inittab.
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
#init 5
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.
INIT: cannot execute "/etc/X11/prefdm"
INIT: cannot execute "/etc/X11/prefdm"
INIT: Id "x" respawning too fast: disabled for 5 minutes
I found out the reason behind this was a line in /etc/inittab
x:5:respawn:/etc/X11/prefdm -nodaemon
(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.

Last edited by pinga123; 11-26-2010 at 12:54 AM.
Old 11-26-2010, 01:15 AM   #2
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 220Reputation: 220Reputation: 220
No. The only difference it will make is the one that you wanted.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling GUI Cyric Slackware 16 06-21-2006 12:19 AM
disabling shutdown? kj6loh Fedora 4 02-21-2006 03:27 AM
Disabling ICMP brianthegreat Ubuntu 3 02-19-2006 12:45 AM
disabling eth0 Zach Mandriva 8 07-13-2005 04:52 PM
Disabling kudzu? vincebs Linux - General 4 11-16-2003 12:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration