LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can i run in just the CLI? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-run-in-just-the-cli-118701/)

nairnie 11-21-2003 08:29 PM

How can i run in just the CLI?
 
Sorry in advance for the stupid question.

I have just managed to congigure my Red Hat 9 box as a gateway/firewall/dhcp/samba server. As it is doing all this stuff, and is a fairly old machine i just want to leave it running without a GUI loaded. Is it possible to drop out of Gnome to a pure CLI while still staying logged in? I have had a google and a search through the forum but can't find any mention of a command to do this.

Thanks,

nairnie

Demonbane 11-21-2003 08:34 PM

Try get into any of the virtual consoles(ctrl + alt + F1-6)
then type
telinit 3

Demonbane 11-21-2003 08:35 PM

oh and also make sure these services are configured to run in runlevel 3

Glock Shooter 11-21-2003 08:37 PM

edit /etc/initab and change the default runlevel to 3. This will bring you to a prompt when you login, now you are are at a console. startx will start x, logging out will take you back to the console, still logged in.

nairnie 11-21-2003 08:41 PM

Cheers all. Will give that a crack now.

nairnie 11-21-2003 09:06 PM

Whoopsie!!!!

Think i must have changed the wrong thing in initab as when i tried to reboot it just stoped before loading the services and checking for hardware and said something about a runlevel 9???

Anyone got anyideas what happened there?

Demonbane 11-22-2003 01:07 AM

On the grub splash screen, with your kernel selected press e, and add a space and '3' to the kernel parameter, this way it will ignore inittab and boot into runlevel 3, then you can fix inittab.


All times are GMT -5. The time now is 12:09 PM.