this post was submitted on 07 Jul 2023
29 points (96.8% liked)

Linux

48331 readers
929 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 have an old laptop that I want to turn into a server, but I want it to be as seamless as possible. I don't have any knowledge in web hosting, so I'll use whatever distribution makes it easiest.

Also willing to venture outside of Linux territory to try those NAS-like operating systems. I just want things to work.

I called it old, but the laptop in question actually has decent specs. I want to host a personal searx instance, a forum, nextcloud, and, well, I'd also like to run single-user fediverse instances but I heard that they're very hard to manage and update so I'm still not sure about that.

all 32 comments
sorted by: hot top controversial new old
[–] cmnybo@discuss.tchncs.de 22 points 1 year ago (1 children)

Debian works well for a server.

[–] entropicdrift@lemmy.sdf.org 2 points 1 year ago

In this vein, try the Armbian x86-64 generic image. It's a great distro.

[–] brad@toad.work 19 points 1 year ago (2 children)

Ubuntu Server (Or really just Ubuntu) is probably going to be the easiest in terms of package support, general support, and usability. It's pretty straightforward and there's infinite tutorials for everything you could possibly want to do

[–] mintberrycrunch@lemmy.world 5 points 1 year ago (1 children)

Yep. Could consider Lubuntu too.

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

OPs usecase is for server. afaik gui is useless for that.

[–] Amax@lemmy.ca 12 points 1 year ago (3 children)

Have you considered installing Proxmox? That way you can then test as many distros as possible and even play a bit with containers. I configured it recently and I'm having a lot of fun being able to take snapshots and then doing crazy things with an easy way to recover from my failed experiments.

[–] robotrash@lemmy.robotra.sh 4 points 1 year ago

Seconding Proxmox. I use it both in an enterprise setting and at home on my self-host rig.

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

Love me some proxmox, have two instances at home on some old hardware.

Great starter configurations are located here:

https://tteck.github.io/Proxmox/

Please be aware running random scripts from the internet isn't advised.

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

seems interesting

[–] lemminer@lemmy.world 6 points 1 year ago
[–] atomkarinca@lemmygrad.ml 5 points 1 year ago (1 children)

if it's a really old laptop, Ubuntu might be overkill, spec-wise. In that case i would suggest Alpine Linux, it's super lightweight and a really good distro for server use.

[–] CoffeeBot@lemmy.ca 4 points 1 year ago (1 children)

I’d throw an option out for Suse but if you really want as little OS as possible Arch Linux.

[–] Maxy@lemmy.blahaj.zone 1 points 1 year ago (1 children)

I actually started of with arch on my server, and recently moved to Debian. In my opinion, Debian is way more suitable for a server, especially if you want things to “just work”. Especially when installing Nextcloud, I noticed how much more Debian does for you compared to arch, which makes the entire process way easier.

[–] CoffeeBot@lemmy.ca 1 points 1 year ago

Same reason I’m on Suse now as well. I got tired of tinkering all the time.

[–] vriska@l.60228.dev 4 points 1 year ago* (last edited 1 year ago)

Debian is the classic server choice. If you don't have any server administration experience, I'd consider it just for that reason: there should be a ton of resources available. If you want something else, any RPM-based distro (like Fedora Server, CentOS Stream, Rocky Linux, or even RHEL) could be another option, with Rocky Linux probably being the best choice out of those.

Alternatively, I'd consider NixOS or Alpine. NixOS is what I use on most of my servers, however both have attributes that might make them worse for a beginner. NixOS uses a custom programming language to configure the operating system, while Alpine is much more minimal than most other server distributions. On the off chance that you have experience with a functional language like Haskell, though, NixOS might be the best choice, since it having a unified configuration for the whole system makes it very convenient for hosting usecases.

I'd also like to note that I run both a single-user Mastodon and Lemmy instance, and find them both fairly easy to manage. There's also GoToSocial, which is specifically designed to be easy to deploy.

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

Plus one for Ubuntu server. Pretty easy to use and lots of community support.

[–] Nibodhika@lemmy.world 3 points 1 year ago (1 children)

My home server runs on a laptop that's running Manjaro. Does that mean I recommend Manjaro? Nope, then why do I use Manjaro? Because it's the same OS I have on my personal computer so it makes it easier to maintain two of the same than different OSs, so my suggestion would be whatever you're using on your main rig, and if you don't use Linux on it then whatever you feel more comfortable, there's not going to be a major difference between distros in their capabilities, but there is going to be a major difference in your willingness to maintain a system you're not familiar with.

[–] Tane@feddit.nl 2 points 1 year ago* (last edited 1 year ago) (2 children)

Same for arch. Don't use it for a server. It deleted php 7 and upgraded to 8 which broke my WordPress website.

I never moved away to something more stable but it does cost me more effort than just going with Debian.

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

Same for arch. Don’t use it for a server. It deleted php 7 and upgraded to 8 which broke my WordPress website.

For example, I use several Raspberry Pi as servers and have Arch installed on all of them. And it simply works. I therefore do not consider such sweeping statements that Arch cannot be used for servers to be correct.

It depends on the individual use case.

For example, was Wordpress already compatible with PHP 8 at the time? Because I also use a webspace at uberspace.de. CentOS is used there and not Arch. Some time ago, I wanted to install Hedgedoc there, but it didn't work because node.js 20 was standard in my case, but Hedgedoc only supported version 18 or even 16 at the time. So it would only have helped to define a lower version as the default. This would have meant that another tool that required a higher version would no longer have worked.

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

Just use docker, relying on the packages inside your distro for that is a way of having a bad time. What if WordPress needed PHP 7 but Nextcloud needed 8? Or something similar. There's a reason containerization is a thing, and the host OS is mostly irrelevant.

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

CentOS is a good OS for servers. It also has a friendly web interface on port 9090.

[–] apatters@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

I would go with the regular desktop version of Ubuntu because while laptops work just fine as personal/small-scale servers, any idiosyncracies tend to be around stuff like sleeping, power management, what happens when you close the lid etc. Whether you'll encounter any of that depends in part on the laptop make and model, but Ubuntu Desktop is probably the most polished distro out there in terms of handling those things. Edit: though maybe I'm wrong and Ubuntu Server would have better defaults around those sorts of things? Never tried running it on a laptop before.

[–] minkshaman@lemmy.perthchat.org 2 points 1 year ago (1 children)
[–] Merulox@lemmy.world 1 points 1 year ago (1 children)

checked out their website, and it seems great!

It is so easy.

It’s all built on slack so the core of it runs on potato.

The idea is you whack it on a USB and boot off that. All your drives become an array for UnRaid and you can easily generate a swarm of dockers or VMs to do whatever you want.

They have a massive catalog of docker apps ready to rock, including a WefWef Lemmy client!

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

My home server is a Ubuntu install on a 2017 laptop. A lot of guides have been very useful.

I installed several other tools, with Portainer, for a variety of imaged applications. With various containers I installed Jellyfin (for hosting old videos and converted media of mine), Calibre (for a digital library of textbooks from my history degree) and a few other tools. I've been half-tempted to host some WordPress sites, but I have yet to figure out nginx...

[–] entropicdrift@lemmy.sdf.org 1 points 1 year ago

Try running either Armbian or Linux Mint XFCE if your goal is a fast, stable, lightweight distro.