Disable GUI boot on Init 5
Dear all,
I am currently running linux enterprise 4 ES. Default login is init 5. My questions is:- 1) How can i disable the GUI boot in init 5 without having to change to init 3. And when we type #startx only it will load GUI. Please advice Many Thanks rgds. Lim |
What for?? Why not init 3? Try going /etc/rc.d/rc5.d (or similar?) and finding *xdm/*kdm/whatever boots to allow you graphical login and renaming it in order to not have S as a first letter of the symlink. You'll be left with text console after reboot, I hope.
|
For what you want to do, setting the system to boot at init 3 seems a lot easier than finding some hack to stop the login manager.
|
Plus, if you set it at init 3, you should still be able to execute startx and fire up the GUI at your discretion.
|
As far as I remember, the GUI is started from /etc/inittab under RHEL. Open /etc/inittab and you should find that the last 1 or 2 lines in the file are the ones that start X in runlevel 5. It's the one that has the following in it: /etc/X11/prefdm Comment out the line(s) and then your system should boot without X. But, as suggested in the previous posts, it probably best you just go to runlevel 3. Or, if you really want to, you could customize runlevel 4 to do this.
Note: The following link gives you detailed information about the RHEL boot process: http://www.redhat.com/docs/manuals/e...n-process.html |
All times are GMT -5. The time now is 04:24 AM. |