Results 1 to 8 of 8

Thread: How to change default runlevel?

  1. #1

    Default How to change default runlevel?

    I can work through complicated problems like installing specialized applications or making them run. But sometimes I surrender to the seemingly most simple tasks. So:

    How do I change the default run level?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,788

    Default Re: How to change default runlevel?

    Should be something like:
    Code:
    systemd --unit=........
    In fact it is a symliink in /etc/systemd:
    Code:
    lrwxrwxrwx  1 root root   40 Jan 17  2014 default.target -> /usr/lib/systemd/system/runlevel5.target
    And possible other targets can be found in /usr/lib/systemd/system/runlevels.
    You will find there old and new names (and symlinks which connect them).
    Henk van Velden

  3. #3
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,187

    Default Re: How to change default runlevel?

    Note;
    You can set default targets (upon next boot) that are more or less equal to old runlevels - to do so;

    Set old init 3 ( multiuser + console ):
    Code:
    systemctl set-default multi-user.target
    Set old init 5 ( multiuser + graphical ):
    Code:
    systemctl set-default graphical.target
    To view your current default target:
    Code:
    systemctl get-default
    To switch targets (runlevels) on the fly;
    Code:
    systemctl isolate multi-user.target
    Warning: this will KILL your graphical user interface so if you have any programs running, make sure you have saved all data.
    .: miuku @ #opensuse @ irc.libera.chat

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,788

    Default Re: How to change default runlevel?

    Hm, I think the systemctl ones are better to use then what I offered.
    Henk van Velden

  5. #5
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,187

    Default Re: How to change default runlevel?

    Essentially it does exactly the same thing of creating a few symlinks, I'm just lazy :-)
    .: miuku @ #opensuse @ irc.libera.chat

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,788

    Default Re: How to change default runlevel?

    Quote Originally Posted by Miuku View Post
    Essentially it does exactly the same thing of creating a few symlinks, I'm just lazy :-)
    I understand that of course, but pointing to systemctl as the tool to use will make the awareness of people of the existence, and the multiple usages it has, greater.

    And that may lead people to do
    Code:
    man systemctl
    when questions like that of the OP raise.
    Henk van Velden

  7. #7

    Default Re: How to change default runlevel?

    You can also set the default boot target (there are no "runlevels" anymore since the switch to systemd) in YaST->System->Services Manager, if you prefer a GUI.

  8. #8

    Default Re: How to change default runlevel?

    I chose to increase my awareness of the existence of systemctl

    But, oh sigh... all these structural changes from versions to versions. Once you have learned one thing, it changes next time you install a newer version. It somehow binds the learning energy (I only have a limited amount of it) that could be used for other areas, that still remained grey...

    And now that I know how to start in runlevel 3 a next problem arises. startx doesn't work anymore how it once used to. But that in a different thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •