LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-20-2002, 10:52 PM   #1
xtian500
LQ Newbie
 
Registered: Nov 2001
Posts: 15

Rep: Reputation: 0
Question how to disable xserver


my xserver runs well, but I want to disable it temporarily, I tried to disable the demon from the /etc/inittab and restart but still I can execute startx, I tried to disable /etc/ X11/gdm/gdm.conf enable= disable option and restart still I can execute startx and run KDE

My question is , which file should I modify so executing startx won't run . I want to prevent xserver from ruunning..

thanks

chris
 
Old 01-20-2002, 10:54 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
coudn't you just remove or uninstall X then.. ?? if your not wanting it to run ever, it would be pointless to have on your system taking up space i would presume.
 
Old 01-20-2002, 10:58 PM   #3
xtian500
LQ Newbie
 
Registered: Nov 2001
Posts: 15

Original Poster
Rep: Reputation: 0
I dont care the space it consumed , i just want it to disable temporarily





i think this question needs an answer
 
Old 01-20-2002, 11:27 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
ok, you can remove the startx from your path.. that might or should work. or if your the only user on the system, then don't run the command, if there are others, change the permissions so regular users can't use it..

Last edited by trickykid; 01-20-2002 at 11:28 PM.
 
Old 01-22-2002, 12:38 AM   #5
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Quote:
Originally posted by trickykid
ok, you can remove the startx from your path.. that might or should work. or if your the only user on the system, then don't run the command, if there are others, change the permissions so regular users can't use it..
Right, use chmod to make /usr/X11R6/bin/startx non-executable. For that matter, you could just rename startx to something else; either one should have the desired result.
Of course, you might need to do the same for commands like startkde as well.

Last edited by DMR; 01-22-2002 at 12:40 AM.
 
Old 01-23-2002, 03:29 AM   #6
xtian500
LQ Newbie
 
Registered: Nov 2001
Posts: 15

Original Poster
Rep: Reputation: 0
thanks guys I've got the idea right now
 
Old 01-23-2002, 07:29 AM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Would simply changing the default runlevel not have the desired effect?
 
Old 01-27-2002, 06:35 AM   #8
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I guess not as xtian500 mentions that startx still will run the Xserver.
Actually startx is a script to load the xserver with certain settings. You can run X to run the xserver as well.
Don't know exactly how to shut of xserver temporarily.
 
  


Reply



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
xserver-xorg config warning: migrating xserver-xfree86 templates doctorwebbox Debian 9 07-27-2005 07:24 PM
what are the services i can disable, also disable ads, banners in konqueror? greythorne SUSE / openSUSE 3 03-16-2005 08:30 AM
How to disable the xserver. wellander Red Hat 2 01-27-2005 09:00 PM
xserver need help... marsques Slackware 7 08-13-2004 07:04 PM
xServer anjiie Linux - Newbie 8 02-16-2004 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:53 AM.

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