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

  • ASCII Table and ASCII Code

    This post gives the ASCII table and ASCII code with ASCII control characters and ASCII printable characters and a tool to convert ASCII codes to ASCII characters. Introduction to ASCII table and ASCII code ASCII stands for American Standard Code for Information Interchange. An ASCII code is the numerical representation of a character since computers…

  • How to filter RSS feed items?

    How to filter RSS items and leave only certain items that I want? Rules may be like: satisfies all or any rules { contains keyword; does not contain keyword } or etc. Two sServices that I find working well for me: Yahoo Piples: https://pipes.yahoo.com/pipes/</s> Pipes is a powerful composition tool to aggregate, manipulate, and mashup…

  • Search Engine Friendly URL for MediaWiki

    MediaWiki is the wiki-engine that runs Wikipedia. In this tutorial, we introduce how to configure search engine friendly URLs in MediaWiki. ==Search Engine Friendly URLs== Default MediaWiki URLs look like www.example.com/w/index.php?title=TITLE which is a little ugly. To make it more search engine friendly, we will change it to SEO-friendly URLs like www.example.com/w/TITLE. ==Enabling Search Engine…

  • Any suggestion on the hosting service

    Any suggestion on the hosting services? Seems Hostgator is great: http://www.warriorforum.com/internet-marketing-product-reviews-ratings/362470-hostgator-bluehost-dreamhost-pair-com.html I was considering moving to Hostgator from Dreamhost. Dreamhost has less limitations after comparing it with others (e.g. the 250k inodes number limitation). I will stick with it. Moreover, with CloudFlare enabled ( https://www.systutorials.com/b/web/3218/cloudflare-with-dreamhost/ ), it looks better. Read more: Shared hosting services with…

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 *