🌉 bridged from @steel_for_humans@piefed.social by Tidepool
steel_for_humans
@steel-for-humans.piefed.social.ap.tdpl.io
Help with setting up my hard drives for my desktop PC and my server
So I have a new desktop PC and my old desktop PC that was broken for some time, now revived and I want to make it a home server and selfhost various apps.
I'm running Debian Trixie and plan to run the same (but headless) on the server.
My old PC had a 1TB SATA SSD (one of the Samsung EVO models from around 2013/2014). It's an old drive and it's been in use probably for 8 years in total (initially as the system disk, then for local backup). The motherboard only has 1 m2 slot with PCIe x3.
My new PC has two 2TB nvmes, the high end Samsung 9100 PRO and Samsung 990 PRO. The first disk is my system disk so it stays. But the 990 currently is almost empty and used only for a local Restic backup. I over purchased, wasn't sure which one to keep and my return window passed so both stayed.
I also have an external 2TB SSD on USB 3.
Now I have a few scenarios in mind and I'm having trouble making a decision. I need a 3-2-1 backup solution on both machines.
I won't have too many services and won't have much traffic.
I can put the 1TB SATA SSD in the server, make it the system disk. Then have the 2TB USB SSD for local backup. Or backup over SFTP to my desktop's 990. The desktop PC stays as is with two nvme disks.
I can move the 990 PRO from my desktop PC to the server and make it the system disk. I'd use the SATA SSD in one computer and the USB SSD in the other one for local backup. My server won't utilize 990's speed because of PCIe x3 being the ceiling.
There are various combinations and I suffer from decision paralysis.
Re the backup, I currently do hourly local backups and daily cloud backups.
I'd rather not buy another disk due to how expensive they are.
I don't have that much data, I won't even use 1TB. I probably have less than 250GB counting all my documents, important files, ebooks, photos.
Any hints?
Selfhosting as a Linux newbie - Ubuntu Server LTS or Debian 13?
I use Debian as my daily driver, but I'm still a newbie. I would like to selfhost a few apps, initially on a VPS, but I will probably move to a local PC once I diagnose what is broken with my old computer. The guides at https://selfhosting.sh/ always recommend Ubuntu Server LTS for newbies, but Ubuntu seems to have bad PR and I already run Debian on my home PC. On one hand, I am a newbie and I guess Ubuntu might be easier to set up and maintain. Though, I don't HOW exactly? On the other hand, if I have Debian on my home PC and on my server, they are the same system, so I'd be learning the same system at two places and with two usage scenarios. But it might be easier to make mistakes on Debian..? What is your opinion/recommendation? EDIT: thank you everyone! My gut feeling was Debian and your responses were overwhelmingly in favor of Debian, so Debian it is :)
In general - should I install the recommended packages along the package that I'm installing?
I'm sorry if this has been asked before, I searched using different terms but couldn't find a similar question. I'm a noob. When using
apt installsometimes it recommends a bunch of other packages. I read that GUI tools generally install them. I don't use GUI, I use the terminal. I know of the--no-install-recommendsflag, but I am wondering whether and when to use it. Should I just let it do the default thing? For example, this is the list of packages when I try to install Calibre: image Some of them seem useful based on names, but for example blt-demo?Is this the correct way to uninstall both KOReader and NickelMenu?
I got a KLC for a test drive with a possibility of returning it. I'd like to run KOReader on it so that I get Bookshelf, Bookends and other beatiful/useful plugins, so that I can properly test as if it was my daily driver. If it stays, it stays. :) If I don't like it for some reason, I'm going to return it, so I'd like to restore it to factory defaults. AFAIK restoring the device itself is not enough. In order to uninstall KOReader, I just delete
.adds/koreaderand in order to uninstall NickelMenu I put an emptyuninstallfile in.adds/nmand reboot. Then I can additionally restore the device to factory defaults. Is that correct?Is LUKS encryption with DE autologin safe?
I'm on a desktop PC that's in my home office. I have personal documents and clients' intellectual property on it (source code, databases, documents, etc.). Hence, I like to use full disk encryption on all disks. Nobody else uses this PC besides me and it's safe at home. The only threat vector is if somebody gained access to my room and stole the computer. It's very remote, but still technically possible (if you think I'm exaggerating, I'd like to learn your opinion). Maaaaybe if I was sending the nvme for RMA, that's also a threat, but I have never had an SSD break on me. Never. I know it's anecdotal and sometimes they break, but I had multiple and I think it's such a small chance... LUKS is a bit of a pain with having to type the passphrase on each boot. So I had it on auto-unlock via TPM, which works great when it works, but a) is also a pain when it breaks (usually due to system upgrade that changes something and I forgot to re-enroll the keys or re-generate the PCRs), b) according to Arch wiki it's unsafe, if anybody has physical access to my PC -- so essentially the only threat vector I was trying to protect myself against is not protected against. But I was thinking -- I am OK with typing one password on boot. I just don't want to type two different passwords one after the other. What if I set autologin in my Desktop Environment (GNOME or KDE), but left LUKS locked down with a passphrase? Wouldn't that be safe? It's a single user system, nobody will use it. If it gets stolen, it's been shutdown and then they can't gain access because of LUKS. Am I thinking correctly?
I'm nearing my second full-time week on Linux
First week: https://piefed.social/c/linux4noobs/p/1977063/i-m-nearing-my-first-full-time-week-on-linux I thought I was going to write that my second week on Linux was rather boring because I had everything set up and was just working doing everyday tasks. That was until Friday where I decided it was time to do a distro upgrade (I use openSUSE Tumbleweed, which is a rolling distro). That did not go well. It made me question my distro choice and I even considered hopping to Debian, because it's stable AF (or so I heard), boring (old packages), widely supported (basically all software has a an official .deb package) and has a large community and multiple resources online. At first I thought I wouldn't like packages that are a couple years old, but it seems that my whole stack is there, so I wouldn't notice. Meanwhile, on Tumbleweed I have issues here and there because it's not as mainstream and is bleeding edge. For the time being, I will migrate to Slowroll soon. I bought a couple books about Linux, started reading the first one. I have a project to move my Google Drive, OneDrive and Google Photos somewhere else. Nextcloud seems like the best solution, but I also like Immich as a replacement for Google Photos. That made me think about self-hosting. The Hetzner Storage Share looks nice because it's a cheap, managed Nextcloud, but not having access to the database feels like vendor lock-in and a possible friction point in the future, so I am thinking of renting a VPS. I also have a pretty beefy old PC at home, but it's currently damaged (I think either the motherboard or the PSU is dead, I didn't diagnose yet).
Is Slowroll on systemd-boot yet?
I want to migrate from Tumbleweed to Slowroll. I have a rather fresh install of Tumblweed with systemd-boot, so I want to retain that. Just waiting for them to get in sync on that.
- SOLVED
Tumbleweed update
Updating from Tumbleweed 20260331 to 20260415,
zypper dupfails ataccountsservice:(error: lsetfilecon: (11 /usr/share/accountsservice, system_u:object_r:accountsd_share_t:s0) Invalid argument error: Plugin selinux: hook fsm_file_prepare failed error: unpacking of archive failed on file /usr/share/accountsservice: cpio: (error 0x2) error: accountsservice-23.13.9-11.3.x86_64: install failed error: accountsservice-23.13.9-11.2.x86_64: erase skipped (557/916) Installing: accountsservice-23.13.9-11.3.x86_64 ..................................................................................................[error] Installation of accountsservice-23.13.9-11.3.x86_64 failed: Error: Subprocess failed. Error: RPM failed: Command exited with status 1. Abort, retry, ignore? [a/r/i] (a): a Warning: %posttrans and %transfiletrigger scripts are not executed when aborting!
What should I do?
PackageKit and updating Tumbleweed
I'm on Tumbleweed. I just launched the system and the first thing I tried was to refresh the Zypper repos. I got this error:
~> sudo zypper refresh [sudo] password for root: PackageKit is blocking zypper. This happens if you have an updater applet or other software management application using PackageKit running. We can ask PackageKit to interrupt the current action as soon as possible, but it depends on PackageKit how fast it will respond to this request. Ask PackageKit to quit? [yes/no] (no): no System management is locked by the application with pid 2648 (/usr/libexec/packagekitd). Close this application before trying again.
I guess that's an intermittent issue. I'm new to Linux and new to openSUSE and until today I have not heard about PackageKit. But something bothers me in the documentation:
In general, it is recommended to allow packagekit to handle system maintenance and software package updates since it contains background operations to ensure stable delivery with minimal interruptions. For this reason, newcomers to Tumbleweed should continue to use their respective software managers (Discover for Plasma, Gnome Software for Gnome) until there is an absolute need for manual intervention and/or greater understanding.
Elsewhere, when I was still researching which distro to choose and before installing Tumbleweed, I read that I should always use only
zypper dup, never to use GNOME's Software updates or anything else (unless it's Flatpak). GNOME does display pending updates at times, but I ignore them. So how is it actually?What happens in GNOME when I close the program's window?
For example Slack or Telegram or something else. The program has a single window, I click the "x" and it is closed. GNOME doesn't have a tray with program icons by default, I didn't install any extensions besides Vitals to monitor the CPU temperature. I don't even have a visible Dash. Just vanilla GNOME. In Windows, some programs will go to the background and will still be running when you close the window, usually there's a setting for that in each program. I wonder whether in GNOME I can do the same or if I should change my mindset and leave everything open at all times. This is more of a habit than necessity.
I'm nearing my first full-time week on Linux
I wanted to switch for several months but needed to sort out some things first. I'm a .NET dev (on Linux, crazy, I know). We migrated to .NET 8 (I want to upgrade to .NET 10 which is nowhere near the complexity level of moving everything from .NET Framework) last year and because .NET is now cross-platform, I could finally switch to Linux full time because my full tech stack is available here. It's not a 1:1 workflow, some things are done differently (for example I don't use IIS with self-signed certificates, I use Caddy; I don't use MSBuild, I run
dotnetcommands manually; SQL Server is running in a Podman container). I chose openSUSE Tumbleweed because I live in the EU, there's the whole Buy European movement caused by Trump which I support. I tested Fedora Workstation first, I really really like it, it gave me less issues than openSUSE, but it's "American", sponsored by Red Hat who does business with Palantir, so sorry :( I should have considered Debian, too, I think it would have been easier, but openSUSE has newer packages and has that super cool Snapper integration which is a godsend to newbies such as myself who can break their system by doing something stupid. So far so good, I can't use OpenVPN 3 here, though, because the community package doesn't work properly (it expects DBUS to be nameddbus, but for some reason openSUSE devs decided that non-standarddbus-1is better). GSConnect doesn't work, either, the extension hasn't been updated enough and references some old parts which are not available in the cutting edge GNOME 49 on Tumbleweed ;) I believe both OpenVPN 3 and GSConnect would have worked on Debian out of the box. I could have also gone for LMDE, but I wasn't aware what it was and I only knew I didn't want Ubuntu, so Linux Mint was not something I wanted, either (I know it's not the same, but it's based on Ubuntu). I read many times that your choice of DE is more important than your choice of distro. And to stick to your choice for at least three months before you hop to another one. I can't help but get a sort of buyer's remorse . That's when you make a choice, but other options are still available after. Makes you (me) think that maybe it was not the best choice, you know. But hopping too soon just teaches you to install Linux :D I set up a 3-2-1 backup scheme for which I'm very happy now. I have Btrfs + Snapper on my system disk, then I have Restic (with resticprofile) to back up my user files (plus some configuration files from /etc) on a secondary disk and another backup in the cloud. Initially I wanted an image based backup of the system disk, because I've been using Macrium Reflect on Windows for many years. After some research it seems that Linux users have a different mindset and because programs keep their config in /etc (or sometimes ~/.config) you can just backup those files and in case your rootfs is so damaged you cringe when thinking of fixing it, you just quickly re-install the system, pull all packages (which list you can export into a .txt file) and then restore the configs. I learned that everything in Linux is a file. Even CPU frequencies (/sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq). And that everything in Bash is a stream. And that I love fish (I actually don't like fish, but I love the shell of that name). I learned that systemd services are plain text files with super easy syntax. That BLEW MY MIND because in my .NET project I have a tool to create Windows Scheduler tasks and it's like some stone age tech in comparison. I have to re-compile to create a new service. In systemd I can type a new service in a text editor and make it run on a schedule with a CLI command. I learned that many people hate systemd. I listened to a short history of how systemd came to be and apparently somebody was collecting Bitcoin in 2014 to hire a hitman to kill one of the creators of systemd. 🤯 I don't have a baggage, a month ago I thought you still use cron in Linux, so I don't have any feelings about that, I understand the concerns about centralization and complexity, but currently I'd say I like systemd. I barely know anything, though. After first few days I actually reinstalled Tumbleweed to get systemd-boot instead of GRUB because I use LUKS encryption on all disks and I read that systemd + Secure Boot is better. I use GNOME. KDE seems to too Windows-like in its UX and too complex (too many options and switches), but I would still like to give it a fair chance. I wish it was possible to switch between GNOME and KDE on the same machine without making the system garbage (mixed window types, settings, etc.). I know it's technically possible, but as far as I know it leaves "trash" and the OS sometimes gets confused and tries to display KDE (Qt?) windows in GNOME or something. I think it's better to reinstall, but let me know if I'm wrong. I did not encounter any serious issues, the system is very stable, no crashes. I am able to work on it and do personal stuff.