Arch Linux
Xbox Controllers on Arch Linux
Some games are simply better on controller.
I fumbled a bit setting up my Xbox controller in Arch, but managed it and wanted to share.
Let's quickly cover how to use xone
to set up a Xbox Elite Wireless Controler Series 2 connecting to Arch Linux via a Xbox Wireless Adapter for Windows 10. Once we're done, it should 'just work' in steam
, wine
, lutris
, or your other games.
Visually debugging PGX extensions
Using Visual Studio Code and LLDB to debug PGX extensions
Rust spoils me, I rarely need to reach for a debugger thanks to structured logging via tracing
and errors with spantraces thanks to eyre
. When I do find myself wanting to really dig my grubby little paws into some code, configuring the debugger targets can feel intimidating.
Experience has taught me that I can conquer intimidating things though, and sometimes that is best done with a little help. While hacking on a pgx
bug, I realized I was using a newly installed system, and needed to reconfigure my debugger settings.
This made a good opportunity for me to share with you! This short article will cover how to configure Visual Studio Code with CodeLLDB so you can visually debug your pgx
extensions. This includes being able to step into the pgx
or postgres
sources. While the instructions may be Arch Linux specific, they should be able to be adapted to a different Linux.
New Roots part 5, Erecting Container Infrastructure
This is the fifth part of an ongoing series on configuring a new server. In our last post we discussed and configured some basic tools. For all intensive purposes, our 'root' system is complete. What we'll be doing now is building the infrastructure to run containers the way we want to.
Before we get around to setting things up, let's describe the what we're up to.
Continue reading...New Roots part 4, Making it 127.0.0.1
This is the fourth of a series on taking up residence on a new server. In our last post we talked about how to set up some basic network services like ssh
and configure iptables
, our firewall. In this post we'll talk about making your server feel like home.
There are a grand number of things we can do at this point to make our time on the machine enjoyable. Take time to evaluate your choices though. This 'root' host is going to be our 'control seat' so it's not going to be doing much more than orcestrating virtualized environments. Once we configure these environments (next post) we'll be using these for any sort of development, deployment, or experiments.
With 'root' our goal is to make a simple set of good, sharp tools to do what we need to do. These are tools like nvim
which we installed earlier. If you were following the last host you may have installed mosh
as well, which makes our ssh
sessions safe from network changes and comfortable against latency.
New Roots part 3, Services & Hardening
This is the third in a series of posts about getting settled into a server. First we talked about choosing a server, then we talked about installing a base OS on a dedicated server. In this post we'll discuss configuring, securing, and hardening our server.
In our last post we left our new server in a very, very minimal state. Heck, we didn't even tell it it's own name! In this post we'll talk about configuration. Throughout this process we're going to try to keep things simple and tightly knit. Through most of this guide you'll need to be using sudo
or acting as root
.
New Roots part 2, On the Metal
This is the second post of a series on settling into new servers. The first was about choosing a server. This post is specifically targetted at newly acquired VPS and Dedicated servers. We'll talk about installing our chosen distribution, configuring its basics, and familiarizing ourselves with the new metal.
Continue reading...Arch Linux on Docker Revisited
Back in 2014 when I was learning about Docker I got around to making a base image for Arch Linux. It was a really fun exploration and I got to know a lot more about how Docker worked from it. I'd highly suggest trying to make your own sometime!
Docker has matured a lot since, and I've enjoyed following it. I took some time this last week to revisit my Arch Linux image and ensure it's still functional. I wasn't surprised when the scripts continued to work just fine, even after two years.
With nothing broken, I knew I only had one choice. I had to improve it!
Continue reading...Trackpad Drivers for Linux on a Mac
If you're like me and have Mac hardware but run Linux you might also run into the slight annoyance with the trackpad drivers X.org defaults to.
If you haven't explored, there is a fantastic replacement called mtrack
that I've had great luck with.