Linux

Linux forms the base of my computing experience, and I work on the Debian project occasionally in my free time. Sometimes I’m learning stuff, sometimes I’m learning how little I know. This is that collection of knowledge.

Multiarch, multi distro packaging in Debian land with sbuild & zfs

As mentioned before, I use sbuild and gbp to build packages for debian. Since I first started out, this has developed some and now runs on a different machine and uses zfs! I’ve been building a private repo for our packet radio project to ensure that users on Raspberry Pi and other platforms have the most recent code backported. It’s very frustrating as a user (and as one of the more experienced heads in the community) for people to be approaching a task with software that’s 3+ years out of date at this time. …

Git buildpackage Debian workflow

I use git buildpackage to wrangle and build all my debian packages. It’s nice and nippy when it works, especially when combined with my sbuild setup. I’ve never dug too deep into functionaliy, but I’m reading the manual a lot at the moment. An annoying quirk, I have found, is Debian’s unwavering dependence on tarballs for every build activity. I found myself following the wiki, specifically ‘using the upstream repo’ and becoming very frustrated that gbp buildpackage shouts about needing a tarball. …

Cross Building for Raspberry Pi using sbuild & btrfs

I use sbuild and btrfs for my debian packaging, it’s quick, solid and was a big improvement on my git-pbuilder setup. I think that’s due to the snapshotting and disposable nature of live chroots. This has been my bible for this, and is a regular reference for me when things break. At the moment, I’m working on a project which will require a repository covering multiple architectures, distribuitions and targets. I’m looking at ubuntu i386, x84_64, maybe armhf/aarch64, raspberry pi armhf & aarch64 and some debian targets too eventually. …

Disk Destroyer

I finally fell into the dd trap. I dd’d a FreeBSD Beaglebone black image to /dev/sdb, where my home directory lives. It should have been /dev/mmcblk0, but I trusted tab completion and didn’t check dmesg. After a quick check of gparted, it was obvious what had happened. I’ve nuked the partition table on the drive. Well done. The data in /home/hibby was intact, however. My home directory was still responding, I could load new files ith no corruption. …

GnuPG as SSH Agent on XFCE4

I tried to set this up so I could use my yubikey as a portable authenticator following the Debian guide, and ran in to a bit of an issue. Despite what I was doing, ssh-agent would auto start, set environment variables and give me lots of trouble. Killing ssh-agent and manually setting the $SSH_AUTH_SOCK to my gnupgp socket fixed the issue, however I couldn’t get ssh-agent to stop starting and setting that variable on login. …