System76 represent! If someone's a *nix lover and isn't looking to build a system from scratch, it has my recommendation.
Source: Oryx Pro (laptop) user of a few years now, have filled 3/4 total storage slots on the mobo, play Steam games respectably and anything sort of old (Rocket League, Left 4 Dead, Borderlands up to 2) @ 4k even through Proton, currently have 3 monitors + 4 other ports in use as it sits on my desk. Every once in a blue moon I pop the bottom off so I can access the mobo for cleaning or modification or whatever. Oh, and the keyboard has halfway decent travel. The system doesn't fight you!
Long as you're confident. You say it's a workstation; I assume you're not running anything in the background? Because I've had two main issues with Arch:
Graphics drivers crap the bed and take the OS with them
I used a lot of RAM when I wasn't thinking I was.
That last one was fun to realize how dumb I had been: I had a pipeline for archiving my documents directory which was similar to tar $stuff | xz $stuff | gpg $stuff > /tmp/$directory (with the intention of an scp after it) and of course I assumed that stuff would flow smoothly through the pipeline, a little at a time, not end up having like 4 copies of the Documents' directory worth of space taken up. But since a large chunk of it was file buffers, I didn't see it initially. I was kinda bummed that the OOM killer didn't seem to activate, but I guess /tmp/ can't be swapped to disk without a real swapfile and I don't know why the shell process wrangling that humongous pipeline didn't get stabbed almost immediately, but presumably there's a reason.
The graphics drivers happened with the nvidia drivers running Wayland a year or so ago, and I had some older dodgy hardware which would lock up randomly when xscreensaver was active. I think I tried remoting in afterward, but everything was locked up, not just the framebuffer & associated stuff.
You and me both. Actually, shit - I need to order a few more because I have a coupon! So I suppose this goes out as a weak PSA: Anyone who got one this last year with a new subscription (I've seen Wired and Ars Technica ones) should make sure they cash in their coupon before the end of the year!
I have a similar situation, and I VNC'd into a "headless" (-ish) server and browsed Reddit on that. Now I have something which can be lost/destroyed and I won't be sad!
But it is primarily for *nix tomfoolery and ebook reading.
Just want to chime in to note that I also tried updating to Debian Testing some years ago and couldn't.... consistently make it work well. I'd been running *nix for a couple years at that point, so I guess I did something wrong.
So my end opinion goes something like this: Use each distro for what it's good for. Others have had better luck/skill running Debian Testing; more power to them. Personally, if I want Debian Testing I'll swallow hard and tolerate the stuff I don't like about Ubuntu (which, if memory serves, is Debian Testing but with another layer of polish and curation). If I want an unflappably solid install, I'll go Debian Stable or something similar. But if you want the latest (& possibly buggiest) software and have the time to devote to truly mastering your system, Arch will serve your needs.
If you do switch, personally I like to plan my install before I start: Pick a filesystem, desktop environment, services to run, should there be full-disk encryption, partitioning, etc. Arch is malleable, but some stuff (like low-level disk work) can be a pain to set up after an install (not an Arch-specific thing, just a general note). And, most importantly: Have an alternate system available during the install and make sure your backups are good.
I wish I had an answer for you but alas, I have only sympathy (and possibly a useful way for people to replicate a related issue).
I had a workflow which would reliably trigger a system lockup (but I never tried the SysRq keys, nor do I think I ever waited 30m before hard shutdown):
I have been able to work around the issue by running the steps individually or by reducing the size of the stuff being compressed.
I, too, wonder why the OOM killer is not violently stabbing the unprivileged user's zsh process who, along with its children, has consumed 15+GB.
I'm up-to-date on my packages, running the standard linux-hardened kernel (a few DKMS packages), have symlinked /bin/sh to dash, and am not aware of any odd tweaks which would reasonably be expected to interfere.
Panasonic Toughbook CF-30 checking in! (Well, typing post) I'm still running something slightly beefier than OP's machine, but here's some specs and experiences:
Core Duo CPU, 2 true cores no HT, model L2400 @ 1.66GHz max. Stepped it up to the max of 4GB of RAM. Have run Puppy on an "XP-Ready" machine about a decade ago.
Same thing you've been hearing: lightweight DE. I'm an Arch fan, so I can't weigh in on how well the other distros' other services run, and don't expect the background daemons / desktop elements to hit you too hard*.* I consistently run LXDE/Openbox on all my installs. But I'm a masochist, looking for every little edge, and I like my stuff light and tight. LXDE/Openbox is super minimalist, but I'm also using 795M of RAM with chromium (Firefox is borked right now, but experience has been similar) open to Reddit typing this post. That and I love Tilda - it's basically my launcher. Some videos choke a bit on Reddit, otherwise pictures & text roll by smoothly. Other videos run great - I suspect it depends on the format. My friend does a lot of retro gaming and we even played some Minetest the other day - all of it runs great on these old beasties.
Also, (if you can shove some more into the mobo) feed your box RAM. I have a habit of running really old stuff, and the first thing I do is feed RAM. Give *nix RAM, and it'll pay you back many times over.
Additionally: I've seen professional products with *nix enabled using ZRAM, and I know it's popular on the Pis. Experiment and see how it works.
Also: Don't worry about the Python programming. Remember a few things: You will likely be unknowingly running programs which comprise Python scripts. Realistically, even on old hardware, you'll only get slowed down if you have a big heavy IDE (don't fear Vim/Emacs!) or if you're test-running your code and it does a lot of processing. And if your code does do a lot of processing, I bet it'll help you benchmark and see the improvements (plus it's fun to think about how incredibly fast computers are, even the old decrepit ones)!
Gonna be a party now! Here's how I'd approach it, including sanity-checks.
1: You burned 32GB on the boot partition. You may need to uninstall some stuff in order to carry out the next steps (temporary disk space requirements, for example for downloading the Arch installer to dd to a thumbdrive.
2: Obviously, doublecheck that your partitions are working the way you think - if you, say, forgot to set up your /home partition correctly, then you could not even be using it.
At this point, you may be tempted to skip the above steps. I recommend you don't, because on my server right now btrfs filesystem show reports the following:
devid 1 size 232.00GiB used 24.02GiB path /dev/mapper/DecryptedRoot
I have a setup similar to the one you describe - "OSFS" holds almost nothing but the OS, and "DiskArrayFS" holds all my media and stuff. Note that, despite me having a few AUR packages, a lot of daemons, and LXDE along with some stuff like GIMP, I'm only at 10 1/4 or so GB of data in the OS partition. Granted, you choice of desktop environment could easily account for the extra size (GNOME / KDE, possibly even XFCE).
3: Ok, you've confirmed that other aspects of your setup are correct and that you do need to enlarge your / partition (I'm using "root" here because it sounds to me like you have /home on a separate partition and the 32GB partition is for "everything else", which would be "root" - /boot would be a different case and setup, and those can pretty much universally be <5GB. (My understanding is that if you truly burn more than 32GB on a /boot partition, you're doing something really interesting/weird.)
4: Backup your shit. We're about to screw around with partitions, and there's a high chance of failure. At a minimum, dd if=/dev/sdx of=/home/username/rootbackup.raw status=progress. "rootbackup.raw" will be 32GB in size, and "should" (assuming you did 1 and 2) be stored in your /home partition. Ideally, you'd take that file and put it on a thumbdrive or something - since I don't know your situation or what you have available, I'll just airdrop the man dd command and move on.
5: Even if you don't want to backup anything, backup /etc. If you've done any meaningful configuration, you'll be happy to have the old configuration files for reference or (if you're like me) directly dropping in and dealing with problems as they come up.
6: Make sure you have a backup of anything you care about in your /home directory. I know I'm harping on the backup thing, but I've also never lost data, so.... yeah.
7: Now we get to the "fun" (well, for me) part. From a working install (or a web search engine, often): man btrfs-filesystem. BTRFS has a 'resize' command which is documented pretty well there. Pay special attention to the difference between "filesystem" and "partition", as well as the mechanics of things - depending on what happens farther down, this could take a long time.
8: Others may know better than I, but at this point I'd make a live-bootable USB and just boot to that. Lets talk partitioning:
8a: lsblk and blkid to get an idea of what disks & partitions are recognized and how things are organized. You may wish to write the "/dev/sd*" parts down for ease of reference later.
8b: Grab your favorite CLI partitioning tool. I like gdisk myself, because I'm running GPT partition tables even on my 2010 Dell (BIOS complains every boot though). If you're not running a GPT partition table, use fdisk or parted. Either way, fire it up and look at the beginning & end sectors of your partitions. Don't be afraid to write them down for easy reference later, I do!
8c: Since you have a swap partition, I'm going to assume that you're running a spinning hard drive. I assume that your swap partitionis "at the end of the disk"/"farthest out". Long ago I heard that it's best to put the swap partition at the end (biggest sector numbers) of the hard drive (thereby placing it on the outer rim of the physical disk, which gives it the highest speed under the hard drive's read/write head, which reduces latency and increases throughput, which is critical for swap). I expect this to still be true. If your setup doesn't have this, feel free to generalize my instructions and make that change.
9: Now that we've pretty exhaustively checked our assumptions, lets get to the meat of things. Personally, I'd straight up delete the /home partition (and rely on the backup we discussed earlier). I think BTRFS' partition resize utility will only shrink to the start, and not to the end, of the partition. Technically we probably could save that data, but that would basically involve taking a backup anyway and/or having a really detailed plan beforehand, and I'm not willing to put that much effort in. Assuming your disk is partitioned as [start][root][/home][swap][end], that will give you maximum leeway to resize your root partition to be whatever you want.
10: Expand your root partition to be the size you want. Since you've already blown through 32GB, I'd recommend bringing it up to at least 50GB. If you want your computer to be a server of some description, bump it up more - how much depends on what you want it to do. And don't get paralyzed trying to pick a size for your root partition - I recommend 75GB if you're using it for a regular computer and 100GB if you're using it for some kind of server. I say not to worry too much about it because, in the end, bind-mounts and symlinks can do all kinds of terrible, bodgy things that can work around almost all partition size limitation issues - at the cost of things becoming more and more like a house of cards the more you use/abuse it. So there's a lot of flexibility here.
11: Mount the root partition. btrfs filesystem resize /rootpartition/mountpoint max . Let it complete. Look for problems
12: If you want to move your swap partition, now's a great time. Slam it against far end of the disk. Recreate your /home partition between the root partition and the swap partition.
13: Restore data as needed.
14: Mount all the partitions. Start with root and mount the other partitions where they would normally be mounted inside your root partition. Edit /etc/fstab appropriately. lsblk and blkid remain your friends for specifying labels, UUIDs, or however you want to do it. If you're using old-style device names (e.g. "/dev/sda1"), consider switching to labels or UUIDs. Computers are mercurial little beasties these days. Alternately, grab the partitioning instructions from the ArchWiki install guide and use genfstab
15: arch-chroot into your system. Look around, make sure everything is accounted for. Then reinstall your bootloader of choice to your disk (don't need to reinstall the packages, but need ot run the install commands - for example, for GRUB, that would involve the grub-install and grub-mkconfig commands.
16: Look at the comments below my comment to see what I missed. Reboot.
17: Troubleshoot anything which breaks. dmesg and all the tools mentioned above should help.
To further clarify - individual man pages are likely a part of the packages they refer to - so every manpage you want to copy, you should review the license.
That said, there are a variety of sites where manpages are displayed on the Internet. I myself permit reads to /usr/share/doc on my server because, generally, they are meant to be read and I am not modifying them. I am "probably" safe, but if I really wanted to be careful (for example, some paid software might not want its documentation freely available) I should check.
I think that a good mod for it would be making processes get sent a signal on hit - USR1 for a generic hit and HUP fora headshot? Just spread the chaos!
I'm the kind of person who incessantly pokes and prods at things. I also like computers. And so, when I got one for myself, I was knew a lot about GNU/Linux and specifically wanted the ability to monkey with things and not be hindered by "the system doesn't want you to do that". So off I went.
Started off with Ubuntu and Puppy Linux (ran Puppy on a "Ready for XP" laptop!). Ubuntu seemed a bit restrictive (removing the Plymouth splash screen was a PITA which I did not want to repeat), but I now know that it's GNOME which was bothering me. Either way, moved over to Debian. Didn't like how all my applications were old, especially since I needed latest graphics drivers for the laptop I was running on. Debian Sid burned me once or twice, so I pivoted to a more "low-level", rolling distro and haven't looked back since.
"Holy wars" stances: Vim, ZSH, AMD all the way (though I have Intel/Nvidia equipment right now because AMD doesn't get put in that many OEM products). I for some reason attached myself to GTK, and am sad to see what appears to be its decline. I like the "purity" of not layering another preprocessor over the C code like QT does, but QT's ease of development seem to be earning it many supporters. I can't wait for Wayland to take over, but I still run X Windows because Wayland is still new and I like my Steam games. Minimalistic stacking window managers for me - Openbox/LXDE/however you want to say it is about what I like, but I don't want to memorize a bunch of keyboard shortcuts for something like i3. I'm still getting my CLI and system internals down, so I'll take my mouse crutch!
Compute Devices
Main ("Axel"): Oryx Pro with no truly exceptional specs but I'm a pack mule who computes near A/C 99% of the time, so a 17" laptop with 2hr of battery life is totally fine for me. Keyboard so nice, like my last laptop (2010 Sony Vaio). Throws down Borderlands 2 in 4k with respectable graphics settings if asked, doesn't overheat. I've never found a laptop which matches my preferences better. It'll be a sad day when this laptop dies.
Desktop/Server ("Moxxi"): HP case/mobo with an old "AMD Athlon(tm) 64 X2 Dual Core Processor 5600+" and 6GB of RAM I acquired. Also shoved a bunch of hard drives into it so I can screw around with BTRFS' RAID functionality and fight bit rot. Scavenged/traded for that entire rig, minus the PCI Ethernet card.
Seasoning ("Legion*"): I have had a bunch of Pis (buddy and I trade back and forth) - Pi1, Pi2+, Pi3, Pi3B+ (or so, I forget all the variants). Only have two now.
Usage Notes
As alluded to earlier, I run this system so I can easily screw around with whatever catches my fancy. I can program in a couple different languages, and I love automation. I also like networking and inter-system communication.
Moxxi wears many hats.
Runs NGINX for my crappy little homepage (which I plan to expand into something more useful "when I find the time").
Serves as a gateway to the WAN for a couple of reasons. One is that I live on a shared satellite link, so I track my usage because "the Internet's not working, motonnerd did you break something?". The other is that I want to segment whatever madness I have going on on my network from their network. I also maintain a cache of packages so that I can avoid re-downloading any packages when I do system updates. I've settled on NFS mounts, because I might as well save the disk space on the clients, particularly the Pis.
Hooked into my room speakers, so everyone pushes sound to her.
Fileserver
MPD server
Axel is my slab of compute. When I wanted to load my father's car infotainment system up with all his music and needed to recompress from FLAC to AAC, I had xargs maintain 8 parallel transcoding processes through the thousands of tracks and just watched the system churn. Since Axel isn't on all the time, I keep my personal stuff on "him" (reduced risk of getting pwned while I'm not looking).
The Pis are used for miscellaneous - had one be an OpenVPN endpoint, had a pretty solid (for me anyway) workflow for AVR development, etc.
One of my favorite parts of all of this, however, is the crypto. I run more crypto than I need, but I enjoy it. I have SSH certificates set up on my systems, I have full-disk encryption set on Moxxi and Axel, and try to think like I'm going to be attacked. My external disks are also encrypted, and when I upload backups from Axel to Moxxi they are tar'd, compressed (xz set aggressively), encrypted (GPG), then SSH'd over and labeled a bit. My secret shames are how unfamiliar I am with GPG and how I never got a real PKI up for my webpage, etc.
Oh, and I keep my OTP secrets on my phone and in a shell script in my home directory because I don't want to lose my phone and have to deal with redoing all that. I also don't want to have to reach for my phone every time I sign in online. I know that's defeating the purpose (a little), but I figure that if someone has booted up and logged in to my laptop, I'm hosed in more ways. Besides, my phone is probably much more vulnerable. I should recheck the permissions in my home directory though.
Exactly! I felt validation - I switched because I wanted something stripped almost to the bone (not quite Linux From Scratch - I like the having the bones lined up and attached with ligaments still) which I can stick my fingers ALL the way into.
Jumping in to agree: Only a couple years' use, but it is my standard. Have installed/run on an old Mac, an old as dirt media center PC, a new System76 rig, Pi 1/2/3, and lots of laptops. Some stuff reboots daily, some stuff runs for months on end, some stuff sits off for months and then gets powered on.
All of my issues have been due to me screwing up or hardware/firmware crap you'll get with all Linux.
I expect it's similar to what I have to deal with with xournal right now. GTK3 supports tablets on wayland, but not everything has been updated. I saw someone working on recompiling against gtk3 in the AUR but it looks like they reworked tablet handling for multiple cursors, so you gotta go a bit deeper. Whoever you are in the AUR, keep up the good work! Xournal is the last thing (partially) holding me back!
General answer: "yes". Beyond that, all I can say is I am pretty sure you're on the right track. On Arch you can look at the netctl-auto & netctl-ifplugd packages to see how they make good use of the '@' operator.
And don't forget 'conflicts' in your dependencies! I am oretty sure it exists and you could use that to force exclusivity of your configurations so you don't end up half in one and half in the other. But I haven't done all that much yet.
Props to you for tsking the time to properly integrate it into your system. May your work bear unexpected fruit.
I have "different taste" than most, and absolutely love my Oryx Pro (System76 is the "manufacturer" (configurer); as everyone will say it's "just a rebranded Clevo"). I like power, a spacious keyboard, serviceability, and generous screen size. Idgaf about weight and size.
It spends most of its time at my desk, driving two additional screens (maybe the 3rd soon when my "server" goes truly headless) and the fans don't even spin up under normal usage -even if Firefox hits a weird webpage and maxes out a core, almost no fan activity. Try that in a modern "ultrabook" - I have, my secondary is an HP Folio 13-2000 someone didnt wamt to put the effort into fixing.
There are many good options out there - always pursue what will make you happy. And fits in your budget - else I'd have gotten a Bonobo with desktop parts and laughed my ass off at my luggable laptop.
Arch (and related) are really good if you like tweaking your system until it all works just tuebway you loke. For development, prrtty much any will work and 'buntu and friends will involve you less in the sysadmining stuff.
The big question: what do you want out of your OS?
Many ways to do it, esp. if friend has *nix too. Netcat and Rsync will probably be the easiest, but no matter how you slice it you open a port on your router and send then your IP address. Direct connection from them to you.
As another option, I'm pretty sure there's a standalone webserver out there, else I her that nginx is oretty lightweight. Basically open Port 80 on your router, give your buddy your ip address (google for it), etc.
Do a skosh of research, pick one you and your buddy like. No matter what you choose, you will learn a lot!
If you don't want to think about it, ext4 and done with it. However if you like to think about it....
Recently redid my systems (wanted to add full disk encryption) and settled on BTRFS. I (plan on) utilizing some of its more-advanced features (snapshot diffs specifically). No issues so far, and I've got it running on a 2-SSD "RAID0"/"JBOD" setup encrypted under luks.
And as I was writing this, I looked over and saw that I accidentally had copied an entry from my server into this computer's crypttab, which means that my system probably wasn't initiaizing a swap space at a constant offset on disk with a random key at every boot, but may have been.Edit: Turns out I was thrown because I was still SSH'd into my server. Still, who knows what other mistakes I made...
All told, I've had no issues messing with it and running three systems atop an encrypted raw disk with it, despite mistakes here and there. No complaints. I'm not sure I'd put it into an enterprise system (and certainly wouldn't before a backup system was in place and functional), but with all the other "enterprise-grade" software I see misbehaving in my day job, ....eh? Good enough.
Unrelated, but I see you have my favorite color scheme!
System76 represent! If someone's a *nix lover and isn't looking to build a system from scratch, it has my recommendation.
Source: Oryx Pro (laptop) user of a few years now, have filled 3/4 total storage slots on the mobo, play Steam games respectably and anything sort of old (Rocket League, Left 4 Dead, Borderlands up to 2) @ 4k even through Proton, currently have 3 monitors + 4 other ports in use as it sits on my desk. Every once in a blue moon I pop the bottom off so I can access the mobo for cleaning or modification or whatever. Oh, and the keyboard has halfway decent travel. The system doesn't fight you!
Long as you're confident. You say it's a workstation; I assume you're not running anything in the background? Because I've had two main issues with Arch:
That last one was fun to realize how dumb I had been: I had a pipeline for archiving my documents directory which was similar to
tar $stuff | xz $stuff | gpg $stuff > /tmp/$directory(with the intention of anscpafter it) and of course I assumed that stuff would flow smoothly through the pipeline, a little at a time, not end up having like 4 copies of the Documents' directory worth of space taken up. But since a large chunk of it was file buffers, I didn't see it initially. I was kinda bummed that the OOM killer didn't seem to activate, but I guess /tmp/ can't be swapped to disk without a real swapfile and I don't know why the shell process wrangling that humongous pipeline didn't get stabbed almost immediately, but presumably there's a reason.The graphics drivers happened with the nvidia drivers running Wayland a year or so ago, and I had some older dodgy hardware which would lock up randomly when xscreensaver was active. I think I tried remoting in afterward, but everything was locked up, not just the framebuffer & associated stuff.
So, as always, check all the things you can!
You and me both. Actually, shit - I need to order a few more because I have a coupon! So I suppose this goes out as a weak PSA: Anyone who got one this last year with a new subscription (I've seen Wired and Ars Technica ones) should make sure they cash in their coupon before the end of the year!
Shameless Wireguard plug!
I have a similar situation, and I VNC'd into a "headless" (-ish) server and browsed Reddit on that. Now I have something which can be lost/destroyed and I won't be sad!
But it is primarily for *nix tomfoolery and ebook reading.
Just want to chime in to note that I also tried updating to Debian Testing some years ago and couldn't.... consistently make it work well. I'd been running *nix for a couple years at that point, so I guess I did something wrong.
So my end opinion goes something like this: Use each distro for what it's good for. Others have had better luck/skill running Debian Testing; more power to them. Personally, if I want Debian Testing I'll swallow hard and tolerate the stuff I don't like about Ubuntu (which, if memory serves, is Debian Testing but with another layer of polish and curation). If I want an unflappably solid install, I'll go Debian Stable or something similar. But if you want the latest (& possibly buggiest) software and have the time to devote to truly mastering your system, Arch will serve your needs.
If you do switch, personally I like to plan my install before I start: Pick a filesystem, desktop environment, services to run, should there be full-disk encryption, partitioning, etc. Arch is malleable, but some stuff (like low-level disk work) can be a pain to set up after an install (not an Arch-specific thing, just a general note). And, most importantly: Have an alternate system available during the install and make sure your backups are good.
I see what you did there, and I will be using it in the future!
Should work on most systems:
I wish I had an answer for you but alas, I have only sympathy (and possibly a useful way for people to replicate a related issue).
I had a workflow which would reliably trigger a system lockup (but I never tried the SysRq keys, nor do I think I ever waited 30m before hard shutdown):
I have been able to work around the issue by running the steps individually or by reducing the size of the stuff being compressed.
I, too, wonder why the OOM killer is not violently stabbing the unprivileged user's zsh process who, along with its children, has consumed 15+GB.
I'm up-to-date on my packages, running the standard linux-hardened kernel (a few DKMS packages), have symlinked /bin/sh to dash, and am not aware of any odd tweaks which would reasonably be expected to interfere.
Panasonic Toughbook CF-30 checking in! (Well, typing post) I'm still running something slightly beefier than OP's machine, but here's some specs and experiences:
Core Duo CPU, 2 true cores no HT, model L2400 @ 1.66GHz max. Stepped it up to the max of 4GB of RAM. Have run Puppy on an "XP-Ready" machine about a decade ago.
Same thing you've been hearing: lightweight DE. I'm an Arch fan, so I can't weigh in on how well the other distros' other services run, and don't expect the background daemons / desktop elements to hit you too hard*.* I consistently run LXDE/Openbox on all my installs. But I'm a masochist, looking for every little edge, and I like my stuff light and tight. LXDE/Openbox is super minimalist, but I'm also using 795M of RAM with chromium (Firefox is borked right now, but experience has been similar) open to Reddit typing this post. That and I love Tilda - it's basically my launcher. Some videos choke a bit on Reddit, otherwise pictures & text roll by smoothly. Other videos run great - I suspect it depends on the format. My friend does a lot of retro gaming and we even played some Minetest the other day - all of it runs great on these old beasties.
Also, (if you can shove some more into the mobo) feed your box RAM. I have a habit of running really old stuff, and the first thing I do is feed RAM. Give *nix RAM, and it'll pay you back many times over.
Additionally: I've seen professional products with *nix enabled using ZRAM, and I know it's popular on the Pis. Experiment and see how it works.
Also: Don't worry about the Python programming. Remember a few things: You will likely be unknowingly running programs which comprise Python scripts. Realistically, even on old hardware, you'll only get slowed down if you have a big heavy IDE (don't fear Vim/Emacs!) or if you're test-running your code and it does a lot of processing. And if your code does do a lot of processing, I bet it'll help you benchmark and see the improvements (plus it's fun to think about how incredibly fast computers are, even the old decrepit ones)!
Keep the old hardware running!
Gonna be a party now! Here's how I'd approach it, including sanity-checks.
1: You burned 32GB on the boot partition. You may need to uninstall some stuff in order to carry out the next steps (temporary disk space requirements, for example for downloading the Arch installer to
ddto a thumbdrive.2: Obviously, doublecheck that your partitions are working the way you think - if you, say, forgot to set up your /home partition correctly, then you could not even be using it.
At this point, you may be tempted to skip the above steps. I recommend you don't, because on my server right now
btrfs filesystem showreports the following:I have a setup similar to the one you describe - "OSFS" holds almost nothing but the OS, and "DiskArrayFS" holds all my media and stuff. Note that, despite me having a few AUR packages, a lot of daemons, and LXDE along with some stuff like GIMP, I'm only at 10 1/4 or so GB of data in the OS partition. Granted, you choice of desktop environment could easily account for the extra size (GNOME / KDE, possibly even XFCE).
3: Ok, you've confirmed that other aspects of your setup are correct and that you do need to enlarge your / partition (I'm using "root" here because it sounds to me like you have /home on a separate partition and the 32GB partition is for "everything else", which would be "root" - /boot would be a different case and setup, and those can pretty much universally be <5GB. (My understanding is that if you truly burn more than 32GB on a /boot partition, you're doing something really interesting/weird.)
4: Backup your shit. We're about to screw around with partitions, and there's a high chance of failure. At a minimum,
dd if=/dev/sdx of=/home/username/rootbackup.raw status=progress. "rootbackup.raw" will be 32GB in size, and "should" (assuming you did 1 and 2) be stored in your /home partition. Ideally, you'd take that file and put it on a thumbdrive or something - since I don't know your situation or what you have available, I'll just airdrop theman ddcommand and move on.5: Even if you don't want to backup anything, backup /etc. If you've done any meaningful configuration, you'll be happy to have the old configuration files for reference or (if you're like me) directly dropping in and dealing with problems as they come up.
6: Make sure you have a backup of anything you care about in your /home directory. I know I'm harping on the backup thing, but I've also never lost data, so.... yeah.
7: Now we get to the "fun" (well, for me) part. From a working install (or a web search engine, often):
man btrfs-filesystem. BTRFS has a 'resize' command which is documented pretty well there. Pay special attention to the difference between "filesystem" and "partition", as well as the mechanics of things - depending on what happens farther down, this could take a long time.8: Others may know better than I, but at this point I'd make a live-bootable USB and just boot to that. Lets talk partitioning:
8a:
lsblkandblkidto get an idea of what disks & partitions are recognized and how things are organized. You may wish to write the "/dev/sd*" parts down for ease of reference later.8b: Grab your favorite CLI partitioning tool. I like
gdiskmyself, because I'm running GPT partition tables even on my 2010 Dell (BIOS complains every boot though). If you're not running a GPT partition table, usefdiskorparted. Either way, fire it up and look at the beginning & end sectors of your partitions. Don't be afraid to write them down for easy reference later, I do!8c: Since you have a swap partition, I'm going to assume that you're running a spinning hard drive. I assume that your swap partitionis "at the end of the disk"/"farthest out". Long ago I heard that it's best to put the swap partition at the end (biggest sector numbers) of the hard drive (thereby placing it on the outer rim of the physical disk, which gives it the highest speed under the hard drive's read/write head, which reduces latency and increases throughput, which is critical for swap). I expect this to still be true. If your setup doesn't have this, feel free to generalize my instructions and make that change.
9: Now that we've pretty exhaustively checked our assumptions, lets get to the meat of things. Personally, I'd straight up delete the /home partition (and rely on the backup we discussed earlier). I think BTRFS' partition resize utility will only shrink to the start, and not to the end, of the partition. Technically we probably could save that data, but that would basically involve taking a backup anyway and/or having a really detailed plan beforehand, and I'm not willing to put that much effort in. Assuming your disk is partitioned as [start][root][/home][swap][end], that will give you maximum leeway to resize your root partition to be whatever you want.
10: Expand your root partition to be the size you want. Since you've already blown through 32GB, I'd recommend bringing it up to at least 50GB. If you want your computer to be a server of some description, bump it up more - how much depends on what you want it to do. And don't get paralyzed trying to pick a size for your root partition - I recommend 75GB if you're using it for a regular computer and 100GB if you're using it for some kind of server. I say not to worry too much about it because, in the end, bind-mounts and symlinks can do all kinds of terrible, bodgy things that can work around almost all partition size limitation issues - at the cost of things becoming more and more like a house of cards the more you use/abuse it. So there's a lot of flexibility here.
11: Mount the root partition.
btrfs filesystem resize /rootpartition/mountpoint max. Let it complete. Look for problems12: If you want to move your swap partition, now's a great time. Slam it against far end of the disk. Recreate your /home partition between the root partition and the swap partition.
13: Restore data as needed.
14: Mount all the partitions. Start with root and mount the other partitions where they would normally be mounted inside your root partition. Edit /etc/fstab appropriately.
lsblkandblkidremain your friends for specifying labels, UUIDs, or however you want to do it. If you're using old-style device names (e.g. "/dev/sda1"), consider switching to labels or UUIDs. Computers are mercurial little beasties these days. Alternately, grab the partitioning instructions from the ArchWiki install guide and usegenfstab15:
arch-chrootinto your system. Look around, make sure everything is accounted for. Then reinstall your bootloader of choice to your disk (don't need to reinstall the packages, but need ot run the install commands - for example, for GRUB, that would involve thegrub-installandgrub-mkconfigcommands.16: Look at the comments below my comment to see what I missed. Reboot.
17: Troubleshoot anything which breaks.
dmesgand all the tools mentioned above should help.To further clarify - individual man pages are likely a part of the packages they refer to - so every manpage you want to copy, you should review the license.
That said, there are a variety of sites where manpages are displayed on the Internet. I myself permit reads to /usr/share/doc on my server because, generally, they are meant to be read and I am not modifying them. I am "probably" safe, but if I really wanted to be careful (for example, some paid software might not want its documentation freely available) I should check.
I think that a good mod for it would be making processes get sent a signal on hit - USR1 for a generic hit and HUP fora headshot? Just spread the chaos!
[Long]
Overall Story
I'm the kind of person who incessantly pokes and prods at things. I also like computers. And so, when I got one for myself, I was knew a lot about GNU/Linux and specifically wanted the ability to monkey with things and not be hindered by "the system doesn't want you to do that". So off I went.
Started off with Ubuntu and Puppy Linux (ran Puppy on a "Ready for XP" laptop!). Ubuntu seemed a bit restrictive (removing the Plymouth splash screen was a PITA which I did not want to repeat), but I now know that it's GNOME which was bothering me. Either way, moved over to Debian. Didn't like how all my applications were old, especially since I needed latest graphics drivers for the laptop I was running on. Debian Sid burned me once or twice, so I pivoted to a more "low-level", rolling distro and haven't looked back since.
"Holy wars" stances: Vim, ZSH, AMD all the way (though I have Intel/Nvidia equipment right now because AMD doesn't get put in that many OEM products). I for some reason attached myself to GTK, and am sad to see what appears to be its decline. I like the "purity" of not layering another preprocessor over the C code like QT does, but QT's ease of development seem to be earning it many supporters. I can't wait for Wayland to take over, but I still run X Windows because Wayland is still new and I like my Steam games. Minimalistic stacking window managers for me - Openbox/LXDE/however you want to say it is about what I like, but I don't want to memorize a bunch of keyboard shortcuts for something like i3. I'm still getting my CLI and system internals down, so I'll take my mouse crutch!
Compute Devices
Main ("Axel"): Oryx Pro with no truly exceptional specs but I'm a pack mule who computes near A/C 99% of the time, so a 17" laptop with 2hr of battery life is totally fine for me. Keyboard so nice, like my last laptop (2010 Sony Vaio). Throws down Borderlands 2 in 4k with respectable graphics settings if asked, doesn't overheat. I've never found a laptop which matches my preferences better. It'll be a sad day when this laptop dies.
Desktop/Server ("Moxxi"): HP case/mobo with an old "AMD Athlon(tm) 64 X2 Dual Core Processor 5600+" and 6GB of RAM I acquired. Also shoved a bunch of hard drives into it so I can screw around with BTRFS' RAID functionality and fight bit rot. Scavenged/traded for that entire rig, minus the PCI Ethernet card.
Seasoning ("Legion*"): I have had a bunch of Pis (buddy and I trade back and forth) - Pi1, Pi2+, Pi3, Pi3B+ (or so, I forget all the variants). Only have two now.
Usage Notes
As alluded to earlier, I run this system so I can easily screw around with whatever catches my fancy. I can program in a couple different languages, and I love automation. I also like networking and inter-system communication.
Moxxi wears many hats.
Axel is my slab of compute. When I wanted to load my father's car infotainment system up with all his music and needed to recompress from FLAC to AAC, I had
xargsmaintain 8 parallel transcoding processes through the thousands of tracks and just watched the system churn. Since Axel isn't on all the time, I keep my personal stuff on "him" (reduced risk of getting pwned while I'm not looking).The Pis are used for miscellaneous - had one be an OpenVPN endpoint, had a pretty solid (for me anyway) workflow for AVR development, etc.
One of my favorite parts of all of this, however, is the crypto. I run more crypto than I need, but I enjoy it. I have SSH certificates set up on my systems, I have full-disk encryption set on Moxxi and Axel, and try to think like I'm going to be attacked. My external disks are also encrypted, and when I upload backups from Axel to Moxxi they are tar'd, compressed (xz set aggressively), encrypted (GPG), then SSH'd over and labeled a bit. My secret shames are how unfamiliar I am with GPG and how I never got a real PKI up for my webpage, etc.
Oh, and I keep my OTP secrets on my phone and in a shell script in my home directory because I don't want to lose my phone and have to deal with redoing all that. I also don't want to have to reach for my phone every time I sign in online. I know that's defeating the purpose (a little), but I figure that if someone has booted up and logged in to my laptop, I'm hosed in more ways. Besides, my phone is probably much more vulnerable. I should recheck the permissions in my home directory though.
Exactly! I felt validation - I switched because I wanted something stripped almost to the bone (not quite Linux From Scratch - I like the having the bones lined up and attached with ligaments still) which I can stick my fingers ALL the way into.
Final form obtained!
Jumping in to agree: Only a couple years' use, but it is my standard. Have installed/run on an old Mac, an old as dirt media center PC, a new System76 rig, Pi 1/2/3, and lots of laptops. Some stuff reboots daily, some stuff runs for months on end, some stuff sits off for months and then gets powered on.
All of my issues have been due to me screwing up or hardware/firmware crap you'll get with all Linux.
I expect it's similar to what I have to deal with with xournal right now. GTK3 supports tablets on wayland, but not everything has been updated. I saw someone working on recompiling against gtk3 in the AUR but it looks like they reworked tablet handling for multiple cursors, so you gotta go a bit deeper. Whoever you are in the AUR, keep up the good work! Xournal is the last thing (partially) holding me back!
Or, roll around in your newly-improved ability to fix problems and sink your fingers ever deeper into your system!
The important part isn't which option you choose, but that you make an informed and well-reasoned choice for your situation.
I was friend with a guy who did. He was kind of a douche. I think he is better now.
Do what you will with that one datapoint!
General answer: "yes". Beyond that, all I can say is I am pretty sure you're on the right track. On Arch you can look at the netctl-auto & netctl-ifplugd packages to see how they make good use of the '@' operator.
And don't forget 'conflicts' in your dependencies! I am oretty sure it exists and you could use that to force exclusivity of your configurations so you don't end up half in one and half in the other. But I haven't done all that much yet.
Props to you for tsking the time to properly integrate it into your system. May your work bear unexpected fruit.
I have "different taste" than most, and absolutely love my Oryx Pro (System76 is the "manufacturer" (configurer); as everyone will say it's "just a rebranded Clevo"). I like power, a spacious keyboard, serviceability, and generous screen size. Idgaf about weight and size.
It spends most of its time at my desk, driving two additional screens (maybe the 3rd soon when my "server" goes truly headless) and the fans don't even spin up under normal usage -even if Firefox hits a weird webpage and maxes out a core, almost no fan activity. Try that in a modern "ultrabook" - I have, my secondary is an HP Folio 13-2000 someone didnt wamt to put the effort into fixing.
There are many good options out there - always pursue what will make you happy. And fits in your budget - else I'd have gotten a Bonobo with desktop parts and laughed my ass off at my luggable laptop.
Arch (and related) are really good if you like tweaking your system until it all works just tuebway you loke. For development, prrtty much any will work and 'buntu and friends will involve you less in the sysadmining stuff.
The big question: what do you want out of your OS?
Many ways to do it, esp. if friend has *nix too. Netcat and Rsync will probably be the easiest, but no matter how you slice it you open a port on your router and send then your IP address. Direct connection from them to you.
As another option, I'm pretty sure there's a standalone webserver out there, else I her that nginx is oretty lightweight. Basically open Port 80 on your router, give your buddy your ip address (google for it), etc.
Do a skosh of research, pick one you and your buddy like. No matter what you choose, you will learn a lot!
If you don't want to think about it, ext4 and done with it. However if you like to think about it....
Recently redid my systems (wanted to add full disk encryption) and settled on BTRFS. I (plan on) utilizing some of its more-advanced features (snapshot diffs specifically). No issues so far, and I've got it running on a 2-SSD "RAID0"/"JBOD" setup encrypted under luks.
And as I was writing this, I looked over and saw that I accidentally had copied an entry from my server into this computer's crypttab, which means that my system probably wasn't initiaizing a swap space at a constant offset on disk with a random key at every boot, but may have been.Edit: Turns out I was thrown because I was still SSH'd into my server. Still, who knows what other mistakes I made...All told, I've had no issues messing with it and running three systems atop an encrypted raw disk with it, despite mistakes here and there. No complaints. I'm not sure I'd put it into an enterprise system (and certainly wouldn't before a backup system was in place and functional), but with all the other "enterprise-grade" software I see misbehaving in my day job, ....eh? Good enough.