Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I do not normally install the GUI on CentOS so I am not sure on how to exit it, You can set the system to boot into the command line only run level instead of the Gui one, or if you have no reason to have a GUI installed reinstall as a minimal installation or server installation.
Skip all the stuff about Grub and read the stuff about editing inittab. Then you will boot to the command line, from which you can log in and start the GUI with the command "startx." When you exit the GUI, you will be back at the command line.
You will need to shutdown or reboot by issuing the appropriate command to the command line as root.
is there no keyboard shortcut like red hat to exit the gui? also how would you install a minimal / server installation im pretty sure i had no such options in my installation at start up.
CentOS is just like other Linux. If ctrl+alt+F[1-6] do not work for you, there is probably something wrong with your keyboard. As said above, you usually don't install GUI on an headless server. Booting into run level 3 is the best option. Run levels are different "step" of the linux boot process and are usually looking like this
Code:
1-Single user mode, only one shell and no notwork. Little to no services are started
2-Base system, only necessary services
3-Networking (all default services) <--Usual server setup
4-Unused, if you need to have some kind of maintenance mode, built it in this unused level
5-GUI
6-Shutdown
You can select which mode to boot on by appending 1,2,3,4 or 5 in the bootloader kernel line. You can also switch at runtime using the rc command or /etc/init.d/xdm stop with super user privileges (su). You can use the "yum" command line tool to remove xorg, this is the name of the gui.
what is the difference between the full shell...black screen command prompt and the terminal you can run from within the os?
is there a major difference?
"CentOS is just like other Linux. If ctrl+alt+F[1-6] do not work for you, there is probably something wrong with your keyboard."
thanks...it was my keyboard...actually has a f lock needed to trigger f function keys...working fine now thanks
went to the command line but couldnt startx again...error...had to restart my vm...wil look into this
"ctrl+alt+F[1-6] "
dost NOT shutdown or turn off X11
it just opens a tty
to turn OFF X11 you need to set "id:5:initdefault:" to " "id:3:initdefault:" in /etc/inttab ( and reboot)
or
run "telinit 3 " as root
the locating for telinit is NOT in the normal users $PATH
it IS in root's $PATH
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.