Posts

Showing posts from January, 2024

Starting a service or application at startup

 Even though urbackup instructions say to put the following line into your /etc/rc.local file: Add   /usr/bin/urbackupsrv run –daemon   to your   /etc/rc.local   to start the UrBackup server on server start-up. it seems Arch uses systemd, so the thing to do is put your command in   /etc/systemd/system   You may find it already exists: sudo systemctl list-unit-files --type-service   Here's the reference if you need to create one: https://unix.stackexchange.com/questions/471824/what-is-the-correct-substitute-for-rc-local-in-systemd-instead-of-re-creating-rc https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/    

Error key "xxx...xxx" could not be looked up remotely on ArchLinux

 Here is the answer that worked for me, from: https://superuser.com/questions/1675153/error-key-xxx-xxx-could-not-be-looked-up-remotely-on-archlinux pacman-key --init pacman-key --populate archlinux   Then tried  pacman -Sy sudo again and it was fine!

Getting Arch to boot after install (Syslinux)

 So, it installed on a new hdd. Faster this time as it was a newer drive. BUT! It didn't work. Closer inspection showed that it tried to mount the wrong partition: /dev/sda3 But I only have 2 partitions as I'm using the MBR (not an UEFI compatible motherboard): /dev/sda1 (swap) and  /dev/sda2 (linux) Retracing my steps through the install guide: https://wiki.archlinux.org/title/installation_guide and then onto the Syslinux page: https://wiki.archlinux.org/title/Syslinux I find this line: Warning: The syslinux-install_update script sets a default root partition that possibly will not match your particular system. It is important to point Syslinux to the correct root partition by editing /boot/syslinux/syslinux.cfg , or the OS will fail to boot. "Oh, I don't think I edited that file before" I say to myself.  Sure enough looking in there, the references are to /dev/sda3. Changing them to /dev/sda2 meant that on a restart the system booted perfectly. Niiiice.

Getting networking going with new Archlinux installation

 So I installed Archlinux as per the instructions. I'm not a noob, but surely I can't be alone in thinking  https://wiki.archlinux.org/title/Installation_guide is a little light on details. Let's give an example. Having not managed to get networking going I was following the step by step.  It says consider installing... "... software necessary for   networking " Oh. That thing in blue is a hyperlink. Ok, networking is kinda important, I'll click on it. https://wiki.archlinux.org/title/Network_configuration#Network_management " To troubleshoot a network connection"  it says , ensure, among other things, that "Your network interface has an   IP address ." Ok let's look at IP address.   Not exactly a step by step guide!  But thankfully some dude has posted a youtube video. Yes, after 3 evenings of reading the briefest of wikis, I've resorted to youtube tutorials. https://www.youtube.com/watch?v=iedzVZlAbqI Arch Linux Enable Networki...