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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-13-2012, 07:54 PM
|
#1
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Rep:
|
exiting gui in cent os
hi guys,
how do you exit the gui in cent os
i read a few linux posts that said it was ctrl + alt f1 to f6...but none of these work...
also is there a safe way of doing this?
sn
|
|
|
07-13-2012, 07:56 PM
|
#2
|
LQ Newbie
Registered: Jun 2012
Location: California
Distribution: CentOS, Arch
Posts: 13
Rep:
|
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.
|
|
|
07-13-2012, 09:10 PM
|
#3
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,582
|
I am guessing you want to be able to exit the GUI to the command line.
You need to set CentOS to boot to the command line.
This should help:
http://superuser.com/questions/42648...-centos-in-cli
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.
|
|
|
07-14-2012, 09:49 AM
|
#4
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
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.
thanks for the reply guys!!!
|
|
|
07-14-2012, 07:42 PM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,582
|
I do believe CentOS offers a minimal install.
See item 7 on this page: http://wiki.centos.org/FAQ/CentOS6
|
|
|
07-14-2012, 07:52 PM
|
#6
|
Member
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825
Rep:
|
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.
|
|
|
07-14-2012, 09:09 PM
|
#7
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
the EASIEST is to just use telinit
it is located in /sbin so hence the "su -"
but for a gui-less install
there is an option at the very start to use text install
Last edited by John VV; 07-14-2012 at 09:11 PM.
|
|
|
07-15-2012, 06:05 AM
|
#8
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
thanks for all that...
one last thing...
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?
thanks for all ye help
|
|
|
07-15-2012, 07:42 AM
|
#9
|
Member
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508
Original Poster
Rep:
|
"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
thanks
|
|
|
07-15-2012, 01:20 PM
|
#10
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
"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
|
|
|
All times are GMT -5. The time now is 04:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|