Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How can I prevent the X server from starting up on Fedora 17? In older versions the user should edit /etc/inittab but in this version (I didn't check this on previous versions) Fedora uses some other mechanisms to do that.

share|improve this question

3 Answers 3

up vote 6 down vote accepted

From the manual online:

systemd uses symlinks to point to the default runlevel. You have to delete the existing symlink first before creating a new one

So...

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

To switch back:

rm /etc/systemd/system/default.target
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target 

You will still get the graphical boot splash. To remove the boot splash, remove "rhgb" from /etc/default/grub...

#GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True  KEYTABLE=us rd.luks=0 LANG=en_US.UTF-8 rhbg quiet"
GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True  KEYTABLE=us rd.luks=0 LANG=en_US.UTF-8 quiet"

and then run grub2-mkconfig...

grub2-mkconfig -o /boot/grub2/grub.cfg

To solve the missing "True" font bug:

Change every occurrence of the word, True, with latarcyrheb-sun16 or latarcyrheb-sun32 in these files:

/boot/grub2/grub.cfg
/etc/sysconfig/i18n
/etc/default/grub

and then run grub2-mkconfig...

grub2-mkconfig -o /boot/grub2/grub.cfg
share|improve this answer

Fedora uses systemd for maintaining runlevels

# rm /etc/systemd/system/default.target 
# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target 
share|improve this answer

Just type the below command:

sudo ln -sf  /lib/systemd/system/multi-user.target \
             /etc/systemd/system/default.target                               
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["                  <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2015 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2015.7.1.2693\r\n            </div>\r\n                <div id=\"additional-notices\">\r\n                    Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group. <br>This site is not affiliated with Linus Torvalds or The Open Group in any"], "copyright__copyright__copyright": ["target \n# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target \nshare|improve this answer\n\nJust type the below command:\n\nsudo ln -sf  /lib/systemd/system/multi-user.target \\\n             /etc/systemd/system/default.target                               \nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}