How-To with systemd: text-boot startup, boot to console mode

By default, Fedora desktop editions will give you a graphical grub boot up (coupled with plymouth), and a graphical login manager.  If you come from a system, such as Arch Linux, or a server work environment, you don’t care much for those fancy graphics, and would rather see the dmesg text fly by in case of any failures.  At a minimum you can remove some of that, and here’s how:

Getting down to brass tax:

The first thing you will want to do is change the default boot mode for grub under /etc/default/grub (grub 2):

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=”$(sed ‘s, release .*$,,g’ /etc/system-release)”
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT=”console”
GRUB_CMDLINE_LINUX=”rd.md=0 rd.lvm=0 rd.dm=0 vconsole.keymap=us $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || 🙂 rd.luks=0 vconsole.font=latarcyrheb-sun16 text
GRUB_DISABLE_RECOVERY=”true”
GRUB_GFXMODE=text

Of note here, is the change to the “GRUB_CMDLINE_LINUX.  You will want to remove the ending options that previously read “rhgb quiet” and replace them with text” as shown.  As an additional step, add the line “GRUB_GFXMODE=text” to let grub know what graphical mode you prefer.

Note: Some websites will tell you to change your line option to “nomodeset.”  This is not recommended.  What will happen then (with a multi-user environment set), is startx will fail due to screen typical screen configuration setup.  You can use nomodeset, but only. if your xorg configuration is set up properly I believe.  Using “text” is a safer route, and still enables you do see the desired boot up process in text mode.

Next, you will want to save that file and rebuild the boot images:

sudo grub2-mkconfig

Optionally, specify the grub path with:

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

Let the text whoosh by and you’re down.

Next, we will set the default login mode from a graphical login manager to a text-based console mode.  This part is far easier with the ever handy-dandy systemd, and goes as thus:

sudo systemctl enable multi-user.target --force

That’s all you have do to receive a console login mode, in which you can do system tasks before starting your graphical environment up.  This helps when you have some issues you’d rather deal with up front before getting into Gnome3 or like-desktop environment.    To start your graphical session, simply enter:

startx

You can also specify graphical sessions in a .xinitrc file under your users home directory as such:

exec gnome-session

Commented lines (“#” preceding char) will be ignored.  Please refer to the DM/WM’s documentation for proper exec commands.  Also, be sure to read the grub documentation provided below:

GNU Project grub documentation

Advertisements

About professorkaos64

www.libregeek.org

Posted on 20131103, in How-To and tagged , , , , , , . Bookmark the permalink. 1 Comment.

  1. supervisor of the San Bernardino County district attorney’s family violence unit

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s