LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-13-2012, 07:54 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Rep: Reputation: 29
Smile 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
 
Old 07-13-2012, 07:56 PM   #2
nbodewitz
LQ Newbie
 
Registered: Jun 2012
Location: California
Distribution: CentOS, Arch
Posts: 13

Rep: Reputation: Disabled
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.
 
Old 07-13-2012, 09:10 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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.
 
Old 07-14-2012, 09:49 AM   #4
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
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!!!
 
Old 07-14-2012, 07:42 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I do believe CentOS offers a minimal install.

See item 7 on this page: http://wiki.centos.org/FAQ/CentOS6
 
Old 07-14-2012, 07:52 PM   #6
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
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.
 
Old 07-14-2012, 09:09 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the EASIEST is to just use telinit

Code:
su -
telinit 3
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.
 
Old 07-15-2012, 06:05 AM   #8
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
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
 
Old 07-15-2012, 07:42 AM   #9
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
"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
 
Old 07-15-2012, 01:20 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
"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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cent os vijay mohan Linux - Newbie 2 01-21-2012 11:58 AM
CENT OS help meil Linux - Server 4 09-12-2011 01:00 AM
Cent OS help aggrishabh Linux - Newbie 1 03-29-2011 04:24 AM
Exiting BASH function without exiting sourced environment SwingingSimian Programming 10 08-12-2009 12:59 AM
Cent OS jolly1702 Linux - Newbie 3 08-24-2008 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration