LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to disable xserver (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-disable-xserver-12241/)

xtian500 01-20-2002 10:52 PM

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

trickykid 01-20-2002 10:54 PM

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.

xtian500 01-20-2002 10:58 PM

I dont care the space it consumed , i just want it to disable temporarily





i think this question needs an answer

trickykid 01-20-2002 11:27 PM

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..

DMR 01-22-2002 12:38 AM

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.

xtian500 01-23-2002 03:29 AM

thanks guys I've got the idea right now

Thymox 01-23-2002 07:29 AM

Would simply changing the default runlevel not have the desired effect?

ugge 01-27-2002 06:35 AM

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.


All times are GMT -5. The time now is 04:12 AM.