this post was submitted on 17 Oct 2023
59 points (98.4% liked)

Linux

48317 readers
721 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm refurbishing an old PC to work as a home server for several stuff. I'm looking for a lightweight distribution to install in it, but with a decent package repository. A small image size will be appreciated, as I have slow bandwidth too.

top 50 comments
sorted by: hot top controversial new old
[–] fubo@lemmy.world 80 points 1 year ago

This is what Debian is for.

[–] bastion@feddit.nl 33 points 1 year ago

A lot of people are saying Debian, because Debian.

Debian. I've literally run Debian stable with uptimes of over a year.

[–] Genrawir@lemmy.world 23 points 1 year ago

Debian netinst. The network installable iso is much smaller than the full image as you only download stuff you actually want to install. Ubuntu used to have a mini.iso but sadly they got rid of it AFAIK.

[–] NegativeLookBehind@kbin.social 23 points 1 year ago
[–] butter@midwest.social 21 points 1 year ago

I went Debian without a Desktop for my server. I later installed a desktop for the occasion that I need it. But mostly, I use SSH

[–] jvrava9@lemmy.dbzer0.com 20 points 1 year ago

I run Debian

[–] Fjor@lemm.ee 18 points 1 year ago (1 children)
  • OpenSuse
  • Debian
  • Alpine

Would be the three I'd choose from atleast.

[–] RootBeerGuy@discuss.tchncs.de 4 points 1 year ago

So... Debian.

[–] giacomo@lemm.ee 18 points 1 year ago

I like debian

[–] Max_P@lemmy.max-p.me 17 points 1 year ago

Apart from Debian, I guess Alpine. It's quite popular in containers for its small size. Even Arch will be much bigger in that case because the packages are much less granular and install development libraries and headers for about everything.

[–] bear@slrpnk.net 16 points 1 year ago

Adding my voice to the Debian choir.

[–] ultra@feddit.ro 15 points 1 year ago

Debian is perfect for this.

[–] Evil_Shrubbery@lemm.ee 14 points 1 year ago (1 children)

Debian or Ubuntu Server (or something specific to servers purpose, like OMV, etc).

... but ProxMox (a hypervisor, Debian based) doesn't have much overhead & runs on old PCs pretty well. And with that, you can pretty much try any distro (as a full virtual machines, perhaps with dockers within it, or as a lightweight containers that are really resource efficient). Or separate containers for each purpose (for beginners, there are like TurnKey solutions to stuff like NAS, it takes literally a few minutes to set up).

Backups (snapshots) are easy too, and a later migration to a better/next server is basically two clicks away.

[–] TheUnicornOfPerfidy@lemmy.ml 2 points 1 year ago (1 children)

So the question I then have is, how hard would it be to virtualise my current Ubuntu server within Proxmox, both not having dealt with VMs before and having spent a lot of time on the server?

[–] Evil_Shrubbery@lemm.ee 1 points 1 year ago

To transfer image 1:1 from disk to VM?

Im sure there is a way (a quick search will probably give you your answer fairly quickly) ... or just try Clonezilla, that way you can also revert back. As per usual with OS I would advise make a clean install on a new machine & transfer the rest manually, ... however I'm lazy and wound definitely try to image copypasta the disk.

VMs as such aren't really any different from regular machines, it's just that you define virtual machine parts, well, virtually (like you can add disks, RAM, cores, etc as you wish).

[–] BastingChemina@slrpnk.net 12 points 1 year ago (1 children)

Did someone suggested Debian already? If not I would suggest Debian.

[–] possiblylinux127@lemmy.zip 8 points 1 year ago

Has anyone heard of debian?

[–] ptman@sopuli.xyz 11 points 1 year ago (1 children)

Linux is quite lightweight. Pick a distro that doesn't run a lot of stuff by default. OpenBSD only runs sshd exposed to the network, AFAIR. Debian probably does the same. But really, the lightness comes from what isn't running. NixOS, fedora, rocky, alpine are all decent alternatives.

[–] flashgnash@lemm.ee 5 points 1 year ago (1 children)

Using NixOS for my server. Makes self hosting a breeze because there's built in config options for most services I've tried to setup

[–] folak@lemmy.world 1 points 1 year ago (2 children)

Hi, you got dotfiles ? I want to take a look.

[–] flashgnash@lemm.ee 1 points 1 year ago* (last edited 1 year ago) (1 children)

Have sent you an example of a nix config file on matrix

[–] bluespin@lemmy.world 1 points 1 year ago

Mind if I check it out as well? I'm considering switching to NixOS

[–] danielfgom@lemmy.world 9 points 1 year ago

Debian. You can install it headless and do everything from the command line. Or if you need it, install a lightweight desktop like XFCE.

[–] illectrility@lemmy.world 9 points 1 year ago
[–] MigratingtoLemmy@lemmy.world 8 points 1 year ago (1 children)

If you want good support: Debian.

Other options include Alpine and Slackware (the former is the base of many OCI compliant containers, it's lighter than Debian usually).

No, Gentoo, Void and Arch are not server distributions.

FreeBSD is also pretty good, although at this point, the only real argument I have seen for the BSDs is their close-ness to Unix more than anything else. If that is something you really need, you know where to go

[–] nyan@lemmy.cafe 2 points 1 year ago

Gentoo, at least, is an unspecialized metadistribution that can be used for whatever purpose you can come up with. It can certainly be put on a server, but for someone lacking Gentoo experience the learning curve might be a little steep, and depending on exactly what software you want, compiling it may take a while on an older machine.

So speaking as a Gentoo user, Debian is a not-unreasonable choice for this use case. It's certainly stable enough.

[–] utopiah@lemmy.ml 7 points 1 year ago (1 children)

I'd argue that beyond the distribution itself it's a lot more about what you install that will make the difference. If you can basically stick to the console and connect via ssh you'll have a lot more resources available, both bandwidth (assuming you were planning to see a remote desktop) needed but also disk, CPU and RAM. There are lightweight WM e.g ratpoison but IMHO a server should be headless.

So... yes Debian but IMHO Debian without any desktop, just boot with sshd running, Ethernet cable plugged in and connect remotely.

PS: I'd also check if a RPi could be sufficient. I'm running few RPi4s and RPi Zero with 100Go+ microSDs and that's very small, silent and doesn't consume much energy. I understand it's appealing to upcycle old hardware but in the long run, e.g 1 year running 24/7 might not be worth it.

load more comments (1 replies)
[–] 30p87@feddit.de 7 points 1 year ago

Probably Debian. It's basically the most used distro, and therefore has many online resources.

  • Old software, but very stable.
  • No bloat, very clean.
  • No custom programs interfering with any configurations etc.
  • Support for many server software etc.

If you want an even cleaner OS, where (nearly) everything is under your control and as lightweight as possible, Arch would be for you. There's the bonus of the AUR, but the huge problem of newest, "unstable" software, though I've yet to experience any problem on testing repos, except for the Nvidia drivers. In general, Debian should be enough of lightweightiness and control.

[–] rodbiren@midwest.social 6 points 1 year ago

MicroOS has worked well as a server for me. Run everything as a container. Use caddy and portainer for reverse proxy and container manager respectively. Auto updates, immutable, and has been bulletproof for me for awhile now.

[–] virtualbriefcase@lemm.ee 5 points 1 year ago

Debian or Alpine would be perfect. Debian has bigger repos, better hardware compatibility, and maybe a bit more stability. Alpine is scary lightweight and a small ISO download.

[–] merthyr1831@lemmy.world 5 points 1 year ago

Dietpi. It's debian with a small package repo of common selfhosting software pre-configured to work out of the box. It also has a dedicated community and very helpful maintainers!

[–] neurospice@lemmy.dbzer0.com 5 points 1 year ago

I use Debian for one and Arch for another. Debian is probably a better option, but I've had no issues with my arch server. Just use what you're most comfortable with

[–] AlmightySnoo@lemmy.world 4 points 1 year ago

You can go for Alpine Linux: https://www.alpinelinux.org/

[–] Tippon@lemmy.dbzer0.com 4 points 1 year ago* (last edited 1 year ago) (1 children)

You'd probably be better off asking in !selfhost@lemmy.ml (can't remember how to link communities sorry fixed now ) and getting answers from people who run home servers. I was given suggestions for an OS like Proxmox, to run everything in containers.

[–] zzzzzz@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (1 children)

!selfhost@lemmy.ml

(put an "!" in front)

[–] Tippon@lemmy.dbzer0.com 1 points 1 year ago

Thank you :)

[–] hperrin@lemmy.world 4 points 1 year ago

Ubuntu Server is always a solid choice. If you’re not comfortable without graphics, you could go Lubuntu instead.

Basically anything you could want to put on it is available in either the repos or a Docker image.

[–] MangoKangaroo@beehaw.org 3 points 1 year ago

Since nobody has said it yet: Ubuntu server or Debian. /s

In seriousness, I use both. They're pretty great. Note that if you use Ubuntu server you can get Ubuntu Pro free for up to three devices. This comes with ten years (!) of security patches. Great if you aren't keen on upgrading anytime soon.

[–] lemmylommy@lemmy.world 3 points 1 year ago
[–] Presi300@lemmy.world 3 points 1 year ago

If definitely go with Alpine, really easy to setup, really light and has a great package manager (apk)

[–] thelastknowngod@lemm.ee 2 points 1 year ago

Talos. Make the jump.

[–] eoli3n@lemmy.ml 2 points 1 year ago

what you ask is Debian what you need is FreeBSD

[–] 2xsaiko@discuss.tchncs.de 1 points 1 year ago* (last edited 1 year ago)

NixOS. Not going to switch away from NixOS for servers probably ever even if I decide to distro-hop on my desktop in the future. It's essentially what "traditional server distro + docker + ansible" can only dream of being. If you don't mind learning a very different system, that is. Also the size of its package repository is only rivaled by AUR ;)

[–] Patch@feddit.uk 1 points 1 year ago

Honestly, literally anything with a server image will do.

Debian with minimal install. Ubuntu Server. Arch. Fedora Server. Anything.

Unless you're intending to do something very niche or are using some very specific hardware, you'll have very little difference using any mainstream distro.

If you currently use Linux as a desktop OS, sticking with a server OS from the same distribution or a closely related one will mean that you'll find it much easier to manage than learning something new for marginal benefits.

I use Ubuntu for my desktop, so I stick with Ubuntu Server or Debian for servers. Keeps things simple.

[–] slacktoid@lemmy.ml 1 points 1 year ago (1 children)
[–] KISSmyOS@lemmy.world 3 points 1 year ago
load more comments
view more: next ›