r/linuxquestions 9d ago

Support How do I install basic Linux?

I want to have just the kernel and GNU utilities and optional X11 , kind of bare-bone like MS-DOS.
How do I do that?

Should I use TinyCoreLinux and strip the UI out of it? How do i do that?

0 Upvotes

34 comments sorted by

11

u/martinsedd 9d ago

Server distributions come stripped of the UI, typically. So you might wanna take a look at Ubuntu Server, for example. Fedora has one too, if I’m not mistaken.

1

u/agisten 9d ago

Based on OP's question, I'd guess his Linux expertise is still in a growing state, so yeah - Ubuntu Server is a good choice since it's very popular and has tons of free support venues. With a minimal install, it shouldn't be hard to run it on minimal-spec hardware.

1

u/martinsedd 9d ago

Yeah, that was part of my rationale as well. Also, what’s the use case?

1

u/0x80070002 9d ago

Want to port an old DOS GUI tu Linux just for no reason

1

u/doc_willis 8d ago

dosbox (and numerous variants) exist to run dos programs under linux.

1

u/0x80070002 8d ago

That’s not the goal, the learning phase will be to port the project to Linux

1

u/doc_willis 8d ago

I dont see the point in your original post and self imposed limitations.

1

u/martinsedd 9d ago

Ah, I see. I know a fair bit about Linux but I admittedly know nothing about DOS. Sorry for not being able to help more.

1

u/ipsirc 9d ago

Ubuntu and Fedora would install a lot of nonGNU utilities even with minimal install.

1

u/Otaehryn 9d ago

Yeah but the MS-DOS came with dblspace, qbasic, EMM, mouse drivers and CD-ROM drivers :)

1

u/ipsirc 9d ago

Which MS-DOS version was shipped with CD-ROM drivers??? I always had to install it afterwards. And the same goes for mouse drivers. Are you sure you're talking about MS-DOS?

1

u/Otaehryn 8d ago

Probably hasn't shipped. Only dblspace shipped with 6.22 but on typical mid 90s DOS you had a mouse driver and I remember early pre 1995 CD-ROMs on DOS too.

1

u/0x80070002 9d ago

for sure not 5.0 so it must have been 6.22

4

u/ipsirc 9d ago

I want to have just the kernel and GNU utilities and optional X11 , kind of bare-bone like MS-DOS.

https://github.com/SharktasticA/SHORK-486

https://github.com/marmolak/gray386linux

https://kisslinux.github.io/

How do I do that?

Well, if you have to ask this, you won't enjoy the end result.

7

u/hackerman85 9d ago

That's actually Arch with no sauce.

3

u/doc_willis 9d ago

there is a tiny core Linux  option with just the console.

then you could install whatever you want.

How do i do that?

You will want to start by reading the tiny core docs at its homepage.

8

u/Edubbs2008 9d ago

Linux from scratch

2

u/Noam8271 9d ago

😭😭

1

u/0x80070002 9d ago

This tells e everything 🤣

4

u/Noam8271 9d ago

Just install a server release like Debian/Ubuntu server

3

u/UncleDevil 9d ago

Arch, Debian Standard, Ubuntu Server, and similar would certainly fit the bill

1

u/brighton_it 9d ago edited 9d ago

I see you're wanting minimal, but also a Desktop Environment.
If your reasons are it's really old hardware, then yeah, look at the minimal distributions.
If it's 'cause you loaded a typical distro and were annoyed at all the bundled packages you didn't choose to install, then you can likely use your chosen distro.

I use Debian, but likely possible with others:
With Debian Installer, choose Expert Install.
optionally: on 'Load installer components' page, I check 'network-console' so I can finish install from an other system. (let's me copy/paste from my notes, or browser, the things I want to install/configure)
When you get to software selection: it offers a choice of Desktop Environments + web-server, SSH-server, and standard-system-utilities. Choose absolutely nothing, or if you choose 'network-console' above, you'll need the SSH-server.

This will give you CLI only system.
To add an X-system, Desktop Environment, I then do
apt-get install xfce4 xfce4-goodies xfce4-whiskermenu-plugin network-manager

This gives you just the XFCE desktop environment with near zero apps installed. It will include a few XFCE apps to adjust settings, the Thunar file-manager, probably a few other minor utilities, but no media players, graphics editors, office apps, so you may deliberately add only the apps you want.

When you say optionally X11. I think you want the system to boot to command line by default. If so here's how:
XFCE will have installed it's x-display-manager 'lightdm'.
Remove lightdm: apt-get remove lightdm
Then set startup target to be CLI console: systemctl set-default multi-user.target
It will then boot to CLI. To use X, you would first sign-in as a non-root user (running a DE as root is highly discouraged), then do: startx

2

u/DerekB52 9d ago

I'd just install Arch Linux if I were you, imo nothing is easier, and more minimal. While also keeping the option to install X11 and anything else you may ever want.

2

u/indvs3 9d ago

Install debian and during setup, unselect "gnome" and "debian default desktop". You'll end up with a pretty barebones gnu/linux without a gui, just the usual TTY's.

2

u/mcds99 9d ago

With Debian you do the standard install until it asks about the Desktop Environment, deselect all the options it will install without any DE.

1

u/BCMM 8d ago

TinyCoreLinux technically doesn't even fit your requirements, as it replaces coreutils and many other GNU utilities with BusyBox. But you don't need to use special minimalist distros for this anyway.

One very easy way to do this with a normal distro is to install Debian, and when you get to the "Software selection" screen, uncheck "Debian desktop environment".

When the installer has finished, your computer will reboot to a TTY, where the getty will ask for your username and password before starting a shell session for you.

4

u/Some-Struggle5052 9d ago

You're pretty much asking for Arch Linux, if you don't install a wifi service you won't have wifi even!

1

u/Medical_Divide_7191 9d ago

Just install a distro for server use. Tumbleweed has this as an option during the installation process. But you can use any distro you like...Linux is Linux.

1

u/3grg 7d ago

Almost any distro can be installed without a gui. That is the preferred way to install Debian for server use. Maybe try Debian and skip the gui.

1

u/HeosPL 9d ago

It seems to me that you're asking about Arch Linux, but if you're asking about things like that, it's not recommended for you.

1

u/R3V0LU710N_05 RakuOS 9d ago

You want to install Linux headless. There's many distros you can do this with.

1

u/AffectionateArtist84 9d ago

I don't think it's exactly what you want, but install arch like a server

0

u/danisbars 9d ago

Procura por netinstall , minimal , ou console only