This gives basically no headaches at all. I am running this schema on all my Linux devices. And swap is done using a swapfile instead of a partition. This way, you can easily increase it later on.
This gives basically no headaches at all. I am running this schema on all my Linux devices. And swap is done using a swapfile instead of a partition. This way, you can easily increase it later on.
Yeah, but if your dream second hand laptop has everything but USB-C charging, you can easily get such adapter and basically make it USB-C charging capable. 😉
About the last bit: There are these now. Available for all usual laptop plugs and voltages. Much easier to carry with you than a separate AC brick.
If you have battery drain, make sure you’ve disabled the option to regularly wake up and do some background processing (check for emails, sync photos, etc.). Settings → Battery → Options… → Wake for network access. (Or search for “Power Nap” in the System Sertings dialog.)
No need to use pmset
for that.
Ubuntu. Or, get a Mac - which is even more “boring”.
You shouldn’t just “drop bash commands into it” anyways. And if you really need it, bash is only one bash
away.
By now, enough people have fish that you can basically assume those scripts being “portable”. Far better than nushell or xonsh - which are both pretty advanced shells but other tools lack support for them, e.g. Midnight Commander.
I’m using fish and the default is enough for anybody. 😁
What purpose should this fulfil? If you are unsure whether your command is correct, double-check it before hitting the ENTER key.
nmtui
if you’re using NetworkManager, Or edit the /etc/netplan/*.yaml
if your install uses netplan.io.
Once the downloads work again, this might help:
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/
none of Ubuntu’s many projects has ever become a long-term, distro-agnostic alternative to whatever it was supposed to replace, suggesting either low quality or insufficient effort
I’d add irrational hate against Canonical to the list of possible causes.
systemd was in the hands of one single guy with very controversial ideas in the beginning. It wasn’t really better than Upstart, yet got adopted by more and more distributions over time.
Unity worked smoothly when Gnome-Shell was sluggish as hell on the same hardware.
And you have fixed versions every half a year with a set of packages that is guaranteed to work together. On top of that, there’s an upgrade path to the next version - no reinstall needed.
Ubuntu’s slogan is “Linux for human beings” which fits quite well, I believe. Otherwise, it wouldn’t get recommended to newbies so often. If you want all the nerdy stuff, there are plenty of other distributions to choose from. 😉
But you are doing the work the computer should do by scripting your own startup process. Also, it will process your rc.local
sequentially whereas systemd does things in parallel. If you have 5 different custom services that need network, your approach would have them started one after another. Systemd would wait for network access and then start them all in parallel. If one of those hangs, the others will still start in a few seconds (unless they depend on the hanging service) and the boot process will still continue.
Also, what about if some service fails? systemd can restart them automatically, you have commands to see at a glance whether your desired services are all running (i.e. the system is in your desired state), it manages the log outputs for each service, etc. etc. … it’s a huge comfort win and once you’ve written a few units, you won’t have to look everything up all the time.
[Unit]
Description=My service
After=network-online.target
[Service]
ExecStart=/usr/local/bin/myservice -d
[Install]
WantedBy=multi-user.target
Put this in /etc/systemd/system/myservice.service
, run systemctl daemon-reload
followed by systemctl enable myservice
and Bob’s your mother’s brother. Optionally, start it directly using systemctl start myservice
. (On most systems, service myservice start
will work, too.) It doesn’t get any easier than that.
And, if you start to automate your system’s configuration(s) using e.g. Ansible, it’s far easier to just place a few files in the filesystem and run a few commands than to modify the rc.local
in an automated fashion without breaking something.
While I don’t really like the one-tool-for-everything approach with systemd and its various additional features (timedated, resolvd, etc.), I do like the main feature.
I like Ubuntu for exactly that: The bravery and manpower to try different things. I remember I loved their Init-System Upstart when it came out in 2006 - long before systemd got established. It made managing services and their dependencies far easier than with the SysV-Init system other distros had at the time.
Unity was miles ahead of Gnome-Shell in the beginning. And I loved the one-menu-bar approach - similar to macOS - as it saved screen space on smaller screens.
It’s easy to flak on Ubuntu for not keeping in line with “tradition”, but I believe we wouldn’t have some newer projects without Canonical trying something new and showing people what’s possible.
It’s probably loading the home environment of root
similar to sudo -H vim …
instead of just elevating privileges but keeping your home environment.
As I’m not using a Swarm or cluster, I consider Docker volumes volatile and use mounts where I need persistence. All my configuration and other persistent data is under /opt/docker/<container>/<foldername>
. And /opt/docker
gets backed up regularly using restic.
Yeah, everyone has to find their own way of organising, I guess. For me, there are too many different little projects that it would get messy throwing them all in one folder. And they’re so varied that I couldn’t think of one single “theme” or topic for most of them. Nothing I would remember a week later anyways.
Same, but by language, e.g. Development/Python
.
https://terminaltrove.com/new.xml