[SOLVED] Anyone know of a Linux distro that boots to runlevel 3?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Anyone know of a Linux distro that boots to runlevel 3?
Hello,
So, normally you'd install Linux, and in doing so, you'd boot to a desktop either during or after the install.
I'd like to find a Linux distro that can boot from optical media or USB key, and requires no screen as it would boot to runlevel 3 automatically. That is to say, I can ssh into the machine from the start, being careful to change the PW.
Anyone know how to locate such a distro?
Thanks!
PS: Don't bother to caution me as to the challenges of using such a system. I've been one with the penguin for years now.
Any distro can, you just need to set the runlevel.
For a systemd based host
Quote:
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target
Some distros, such as Debian (and, I'm guessing, most of its derivatives), do not offer that option, at least, not out of the box.
???
Debian can be booted into console mode, without starting X (or Wayland or anything similar).
Probably it is not called runlevel 3, but something else, anyway it is definitely possible.
Just as an example on RPi (which is a derivative of debian) there is an option to select it (just run raspi-config). Out of the box.
Under SystemD the concept of runlevels is not really the right terminology, but booting to a console only is still supported. Many of the network-install media start that way, and some of the minimal install images default to console only (see my AntiX-Core suggestion as an example). Others you must do a configuration step to disable the GUI loading, and you might want to install first the non-gui WIFI networking management you like, possibly a couple of other things.
As an example, I always install screen and the screenie manager script. Other people install tmux. Being able to multiplex and manage terminal sessions in console is way to handy to avoid. MOSH also, for if my IP address changes often or I am working mobile and the connection is flaky.
that is mainly explained here: https://en.wikipedia.org/wiki/Runlevel
The most important thing is that runlevel3 is not generic, levels have different meanings in different distributions. From this point of view, the answer is: almost all distros can do this (boot runlevel3), but the result is probably not always what the OP expects.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.