LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2013, 05:25 PM   #1
linuxdawgjr
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Rep: Reputation: Disabled
How to remove GUI in fedora 19?


I'd like to run a headless server, so the first thing would be to get rid of the GUI.

I'm running Fedora 19.
 
Old 08-20-2013, 06:12 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
At boot, Append the int "3" at the grub command line, to boot to level 3, text.

https://en.wikipedia.org/wiki/Runlevel
Code:
Red Hat Linux and Fedora

Red Hat and most of its derivatives (such as CentOS) use runlevels like this:[5]
Red Hat Linux/Fedora runlevels Code 	Information
0 	Halt
1 	Single-user mode
2 	Multi-user mode, console logins only (without networking)
3 	Multi-user mode, console logins only
4 	Not used/User-definable
5 	Multi-user mode, display manager as well as console logins (X11)
6 	Reboot
This page may help too,
http://fedorasolved.org/post-install-solutions/runlevel

Last edited by GlennsPref; 08-20-2013 at 06:14 PM.
 
Old 08-20-2013, 06:47 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Fedora != server OS

If you're setting up a server, I highly recommend using another distro, preferably something that focuses on stability and has a life cycle longer than 6 months.
 
Old 08-20-2013, 09:58 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by suicidaleggroll View Post
Fedora != server OS

If you're setting up a server, I highly recommend using another distro, preferably something that focuses on stability and has a life cycle longer than 6 months.
I second that, just a minor correction, while Fedora's release cycle is indeed 6 months, the life cycle is 13 months (more specific, if the version after the next version is released you will have one month support until your version reaches end of life).
 
Old 08-20-2013, 10:23 PM   #5
tomwest
Member
 
Registered: Aug 2013
Posts: 57

Rep: Reputation: Disabled
If, on the other hand, you are happy to upgrade your server every six to thirteen months, then fedora may work just fine ... it does for me, but I do tinker with it. Some advantages are that fedora 19 runs faster than earlier fedoras, the security updates keep you in front and you keep up to date. I think it just depends on how you wish to run your server.
 
Old 08-21-2013, 11:49 AM   #6
linuxdawgjr
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you all for your replies

I chose fedora as I am replacing an old dchp server, which was also fedora (albeit a very old version), so i figured it would be easiest to migrate the configuration over from that machine. (dhcpd.conf), but I'm open to suggestions of other distros if the dhcp service is easy to setup and configure using my old config file. In fact, the hardware I have doesn't officially support Fedora 19, the last version tested is FC13. Other supported distro choices include CentOs 5.4 (32 bit), CentOs 5.5 (64 bit), Ubuntu 10.10 (64), FreeBSD 8.1 (64), SuSE SLES 10 SP3 (64), SuSE SLES 11 SP1 (64), various RedHat versions (pay I imagine).


I tried pushing 'a' on the grub screen, but only the 'e' and 'c' options work. I suppose I should learn how to use the grub command line...

I had previously tried editing inittab file, but upon opening i saw that it is no longer used in this version of Fedora, something in the commented out parts about using systemctl instead. It also didn't contain any runlevel lines. Thats when I decided to join this forum to ask the question. I appreciate all your responses so far

Last edited by linuxdawgjr; 08-21-2013 at 11:50 AM.
 
Old 08-21-2013, 12:08 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Actually you're more likely to get compatibility between your "very old Fedora" and a newer CentOS than with a newer Fedora.

For example:
Fedora 19 uses the BETA dhcp 4.2.5
CentOS 6.4 (latest version) uses dhcp 4.1.1, same as Fedora 13
CentOS 5.9 uses dhcp 3.0.5, same as Fedora 7.

It's entirely possible your dhcp config will not work on Fedora 19 since it's so much newer, and it's entirely possible that even once you put in the effort and get it running, it'll spontaneously break for no reason since it's running a Beta version. Then once you finally get THAT patched up, the OS will become unsupported and you're left in the dust until you decide to install a new one and go through the whole process again.

Last edited by suicidaleggroll; 08-21-2013 at 12:13 PM.
 
Old 08-21-2013, 02:09 PM   #8
linuxdawgjr
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok thanks for the valuable info, I think I'll try CentOs 6.4 then, Enterprise-class distro makes the most sense. I don't mind doing more learning / configuration if I end up with something more stable and maintainable in the end.
 
Old 08-21-2013, 02:43 PM   #9
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Rep: Reputation: Disabled
Quote:
Originally Posted by linuxdawgjr View Post
I'd like to run a headless server, so the first thing would be to get rid of the GUI.

I'm running Fedora 19.
Never used fedora but do check if the config files locations are exactly the same as RHEL so this is how you can get into CLI by default;

1: edit /etc/inittab and set initdefault ID to 3
OR
2: edit /boot/grub/grub.conf and add a parameter runlevel 3 at the end of kernel line.

hope it helps.

Last edited by sudo_su; 08-21-2013 at 02:49 PM.
 
Old 08-21-2013, 03:56 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by sudo_su View Post
Never used fedora but do check if the config files locations are exactly the same as RHEL so this is how you can get into CLI by default;

1: edit /etc/inittab and set initdefault ID to 3
OR
2: edit /boot/grub/grub.conf and add a parameter runlevel 3 at the end of kernel line.

hope it helps.
Fedora has switched to systemd (as will RHEL 7), which doesn't use runlevels anymore.
 
Old 08-22-2013, 07:32 AM   #11
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by TobiSGD View Post
Fedora has switched to systemd (as will RHEL 7), which doesn't use runlevels anymore.
Mageia uses systemd and runlevels are available by adding/appending the level, in this case 3 to the grub command line.

I make use of it when unseating the nouveau module from loading and trying out new nvidia graphics modules. (nv, nouveau & vesa)

p.s.
just found this grub2 cli howto. all the best

http://www.if-not-true-then-false.co...evel-on-grub2/

and some systemd instructions too.
https://fedoraproject.org/wiki/Syste...he_runlevel.3F

Last edited by GlennsPref; 08-22-2013 at 08:07 AM. Reason: grub2 cli howto
 
Old 08-22-2013, 03:55 PM   #12
linuxdawgjr
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
So CentOS 6.4 is running beautifully so far. I chose the "Basic Server" option, so the GUI is not there by default. So nice to have the command line back :0

I've since edited the /etc/sysconfig/ifcfg-eth0 file to have my network interface come up at boot, and did a yum update.

Now I just have to learn how to setup a dhcp server and move the old config over without taking the whole network down!

Thanks for all the help!

Last edited by linuxdawgjr; 08-22-2013 at 04:01 PM.
 
Old 12-12-2013, 03:48 PM   #13
MattPie
LQ Newbie
 
Registered: Jan 2005
Location: Maryland, USA
Posts: 5

Rep: Reputation: 2
Actual answer

Since no one else has, I'll actually answer the question. The advice above is right, the orignal poster in this case should be using CentOS or something similar, though.

In Fedora 19, the system will boot to a "target". What I found (helpfully in /etc/inittab, where I would have made the change in the Old World) is:

# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

The default is to link to /lib/systemd/system/graphical.target. There's even a set of runlevel[0-6].target files linked to help us oldsters understand.
 
2 members found this post helpful.
Old 12-12-2013, 03:56 PM   #14
linuxdawgjr
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks!

I've since got the DHCP server up and running. CentOS was quite straightforward to install, very minimal. DHCP was also quite easy to setup, though I did get some assistance from my peers in order to transition from the old server to the new server, minimizing downtime and problems. Long story short, we gradually reduced the lease time on old server until it was very short (a minute or two if I remember correctly), and then only at that point did we do the switch (new DHCP was on-standy with service turned off). The new server was setup exactly the same, and after the switch and confirming there were no issues, we bumped the new DHCP server back up to serving reasonable lease times.
 
Old 12-12-2013, 05:48 PM   #15
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by MattPie View Post
Since no one else has, I'll actually answer the question. The advice above is right, the orignal poster in this case should be using CentOS or something similar, though.

In Fedora 19, the system will boot to a "target". What I found (helpfully in /etc/inittab, where I would have made the change in the Old World) is:

# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

The default is to link to /lib/systemd/system/graphical.target. There's even a set of runlevel[0-6].target files linked to help us oldsters understand.
They are there to confuse. They don't work as you expect...

They run at the same time as many other services... so if an entry in them depends on one of those services... it won't necessarily work (sometimes will, sometimes won't).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to completely remove gui? kelamahim Linux - Software 2 01-29-2012 09:13 AM
How to remove GUI or Desktop environment in linux bangoram Linux - General 2 05-23-2007 09:58 AM
Add/Remove Software List (GUI) Cabeza de Huevo Linux - Software 3 12-26-2006 12:00 AM
Add/Remove php service (Debian GUI) malesandro Linux - Software 1 12-22-2005 11:03 PM
Remove GUI in XP r_jensen11 General 18 02-23-2005 11:42 AM


All times are GMT -5. The time now is 06:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration