How to configure systemd to boot Linux to console mode (runlevel 3)?

How to configure Linux (am using Fedora 21) managed by systemd to boot to console (init 3) mode?

systemd has the concept of targets as a more flexible replacement for runlevels in sysvinit.

Runlevel 3 is emulated by multi-user.target. runlevel3.target is a symbolic link to multi-user.target.

You can switch to ‘runlevel 3’ by running

# systemctl isolate multi-user.target 

On boot, systemd activates the target unit default.target whose job is to activate services and other units by pulling them in via dependencies. systemd parses its own kernel command line argument systemd.unit=.

This may be used to temporarily boot into the multi-user.target boot unit:

systemd.unit=multi-user.target

On some systems you have to disable the `lightdm.service` or `kde.service` or `gdm.service` whichever might be still active

# systemctl disable kde.service
# systemctl disable lightdm.service
# systemctl disable gdm.service

Similar Posts

  • Chinese Charactor Configuration on Fedora 11

    最新的更新版本请看: Fedora 中文字体设置. 使用Linux时我个人倾向使用英文环境系统,而Fedora11在英文环境下中文字体有时会不太好看,经常遇到需要字体优化美化的问题。 以下是我的配置方案,经测试效果还算不错,解决了Fedora 11 中文字体难看的问题: 方案1:使用uming和ukai字体,即AR PL UMing CN等。 关键是使用的字体包如下: 首先要安装这两个字体: cjkuni-ukai-fonts cjkuni-uming-fonts 然后配置一下~/.fonts.conf文件. 使sans-serif serif monospace字体中文使用uming/ukai即可. 我的.fonts.conf文件可以从这里下载(两种选择, 我喜欢前者): https://github.com/zma/config_files 使用Liberation和uming/ukai字体: .fonts.cofn.liberation 使用dejavu和uming/ukai字体: .fonts.conf.dejavu 下载后放到自己的$HOME下改名为.fonts.conf就可以了。 使用uming字体效果如下(请放大后看效果): 方案2:安装文泉驿字体,这个非常简单,安装相应包即可了。 如果喜欢其它的字体选择性的安装上就可以了,只要注意只安装自己需要的就行了。有人使用微软雅黑字体,首先这是侵权的,其次开源的字体做得其实已经很不错了。 最后将字体平滑选项打开, KDE和gnome都有相关设置方法。 以上内容只是针对使用xft字体系统的设置。对于使用核心字体系统的X程序来说字体依然会出现很丑的情况。 下面是针对emacs的设置方法: 首先需要安装这个字体包: xorg-x11-fonts-misc 注意到在中文系统下emacs的中文显示非常好,而在英文环境中去非常差,我们可以利用这一点,在运行emacs前首先将系统环境设为中文即可。 在~/bin/下建立一文件ema 内容如下: #!/bin/bash rm -f ~/.emacs ln -s ~/.emacs.x ~/.emacs LANG=zh_CN.UTF-8 emacs –fullheight -r $* 然后加入执行权限即可: chmod +x…

  • Converting Movie Files to wav and mp3 Files Using MPlayer and LAME

    As a multimedia enthusiast, you may want to convert your movie files to audio files for various reasons such as creating soundtracks, audio books or listening to dialogues & music without the video. Converting movie files to WAV and MP3 files using MPlayer and LAME is a simple and straightforward process. By following the steps…

  • What is Double-Blind review for a paper?

    I want to submit my paper to NAS 2015 but I am confused about its double-blind review 盲审又包括单盲审(Single-Blind Peer Review, SBPR)和双盲审(Double-Blind Peer Review, DBPR)。双盲审是审者与作者之间互相都不知道彼此身份的匿名评审。在双盲审的过程中,中间组织者的规范和保密工作很重要。单盲审一般是审者知道作者的身份,而作者不知道审者是谁。 计算机有不少会议实行双盲评审。 Reference: http://emuch.net/html/201104/3022021.html Read more: When should the authors anonymize themselves in a paper submitted to a conference for review? How to write paper reviews? How to convert A4 paper format…

2 Comments

  1. If your system still boots into gui despite the above steps:
    On some systems you have to do one more thing: disable the lightdm.service or kde.service whichever might be still active

    systemctl disable kde.service
    or
    systemctl disable lightdm.service

Leave a Reply

Your email address will not be published. Required fields are marked *