LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-21-2024, 08:31 PM   #1
ballsystemlord
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 214

Rep: Reputation: Disabled
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.
 
Old 02-21-2024, 09:03 PM   #2
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 334

Rep: Reputation: Disabled
Anyone know of a Linux distro that boots to runlevel 3?

Slackware boots to console
 
4 members found this post helpful.
Old 02-21-2024, 09:23 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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
For non-systemd, edit /etc/inittab; see https://www.oreilly.com/library/view...2/ch04s05.html
 
Old 02-21-2024, 09:26 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,635

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Have you considered antiX-core?
Look up AntiX at Distrowatch and consider the permutations!
 
Old 02-21-2024, 09:53 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Quote:
Any distro can, you just need to set the runlevel.
Not so.

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.
 
2 members found this post helpful.
Old 02-21-2024, 10:56 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
It almost was common for the server versions of distro's to not be shipped with a window manager. One had to work to get out of bash.

Almost every modern distro views a usb drive as a hard drive.

Putting these systems on a cd/dvd is a bit tricker but all sorts of web pages exist how to and some distro's offer the live media as standard.


I'd peek at Distrowatch.
 
Old 02-22-2024, 01:09 AM   #7
___
Member
 
Registered: Apr 2023
Posts: 139
Blog Entries: 1

Rep: Reputation: Disabled
@ballsystemlord: I'm curious about what you want to accomplish. (back-story)
Might you experiment in VirtualBox? get-devuan has lots of options.

I enjoy mll (10M .iso) playing with Vbox networkS.
`telnetd -l /bin/sh` allows me to telnet in!
 
Old 02-22-2024, 01:47 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by frankbell View Post
Not so.

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.
 
Old 02-22-2024, 03:35 AM   #9
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
There are still distros that offer command line only live/installers - run level 3 is just a command line in most distros, whilst 5 or 7 is GUI.

Maybe check out the Core version download from Tiny Core Linux - http://tinycorelinux.net/
 
Old 02-22-2024, 05:06 AM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,635

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
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.
 
1 members found this post helpful.
Old 02-22-2024, 11:25 AM   #11
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by frankbell View Post
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.
That page refers to the pre-systemd Debian. When Debian is installed, one step asks you what software you want, including an optional GUI.

Similarly, distros like Fedora and Open SUSE offer a choice at installation provided that you use the full installation iso.
 
Old 02-22-2024, 12:03 PM   #12
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
As far as I know all rescue systems boot to run level 3.
 
Old 02-22-2024, 01:24 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,451
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Slackware boots to run level 3, and runs sshd by default.
 
Old 02-23-2024, 01:07 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
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.
 
Old 02-23-2024, 01:42 AM   #15
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,451
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
^in the case of Slackware, it's exactly what he wants.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 01:10 PM
New Install of PCLinuxOS boots into runlevel 3. Should be runlevel 5 MonctonJohn Linux - General 4 02-01-2008 04:38 PM
Go into runlevel 3 after a runlevel 4 crash davidguygc Linux - General 1 08-24-2007 08:23 PM
Soun Mixer absent in Runlevel 3 but present in Runlevel 5 debloxie SUSE / openSUSE 1 01-18-2006 09:15 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration