Skip to content

Instantly share code, notes, and snippets.

View lbrame's full-sized avatar

Luca lbrame

View GitHub Profile
@lbrame
lbrame / framework_16_linux_fedora.md
Last active May 20, 2024 14:22
Framework Laptop 16 Linux configuration tips

The Framework Laptop 16 is my new laptop of choice that I purchased to replace my dying older machine. It is a sweet machine with phenomenal Linux support, but like all machines, it still has a set of things to know about when using Linux - this time, not really due to broken hardware/firmware, but due to things like high-dpi displays being in a beta state on the Linux desktop.

Hardware configuration

This might be useful for people who stumble onto this gist to debug. My laptop is configured as such, with notes on the Linux support:

  • CPU - AMD Ryzen 7 7840HS
  • GPU - Integrated UMA graphics (AMD Radeon 780M)
  • RAM - Kingston 32 GB kit (2x16), 5600 MT/s, CL40 SODIMM memory
  • SSD - SK Hynix P41 Platinum NVMe 4x4 m.2 2280 format, 2 TB
  • Beware: This disk does not report its size to udisks, so the size shows up as "Unknown" everywhere. Purely a cosmetic issue: your partition size is known, and the installer has no problem setting u
@lbrame
lbrame / podman_arch_rootless.md
Created February 11, 2020 17:47
Running rootless unprivileged Podman containers on Arch Linux

Setting up podman rootless containers on Arch Linux

Podman is a container engine that is similar to and fully compatible with Docker that has the peculiarity of not requiring a daemon to run and to allow for rootless containers, which are often deemed safer than privileged containers running as root. Podman is a drop-in replacement for Docker that even supports the same syntax and it has good support from Red Hat.

However, running podman rootless containers on Arch Linux may not be obvious, so I'm writing the instructions I have used to achieve that here.

Podman works using control groups and users from which said containers need to be launched need to be assigned an appropriate range of subordinate user and group IDs. On Arch Linux, these files are not present and they need to be created.

From a root shell:

@lbrame
lbrame / lxw.sh
Last active January 12, 2020 18:34
Simple wrapper for basic LXC operations. Does not add any functionality, it just makes it faster to manage LXC containers by providing shorter commands and bundling commonly used combination of commands.
#!/bin/bash
container='ubuntu'
cmd="${1:-run}"
bold=$(tput bold)
normal=$(tput sgr0)
if (( $EUID != 0 )); then
sudo "$(realpath $0)" "$@"
exit $?
@lbrame
lbrame / archtweaks.md
Last active April 6, 2024 05:16
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th

@lbrame
lbrame / troubleshooting-wifi-on-linux.md
Last active June 7, 2023 21:14
Troubleshooting wi-fi issues on GNU/Linux

Troubleshooting wi-fi issues on GNU/Linux

LICENSE: This gist is covered by the GNU GPL v.2 or more recent license. For further information, refer to https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html

It's quite common to set up a GNU/Linux distribution on a computer only to find out wi-fi doesn't work, or to perform a software upgrade and find out the computer is no longer able to locate any wi-fi network. In this gist, I want to give some guidelines about how to troubleshoot wi-fi issues on GNU/Linux. Just a short legalese disclaimer: this piece of advice is offered with absolutely NO warranties whatsoever, and from this point on you are following my advice at your owk risk and danger. That being said, I am not liable for any damage or loss that might happen as a result of following this guide. You take full responsibility for the consequences of following this troubleshooting guide.

1: Know the hardware you're working with

Troubleshooting any kind of hardware-related issue without knowin