Introduction to packaging Rust application

šŸ¦€ Intro As an exercise, today we are going to package a game named battleship-rs developed by Orhun Parmaksız. We will also use the power of OpenSUSE build service to do most of the heavy work. Before starting, let’s check out the project: it’s hosted on github and if you want to try it out before packaging, it’s a nice game where two people can play in the terminal over a TCP network connection. The initial ship placement, shot tracking, player turns and game state itself is managed from a single Rust process. ...

January 19, 2024 Ā· Andrea Manzini

Fault Injection in Network Namespace and Veth Environments

Prelude This is a followup from my previous post and a sort of continuation on the series of the topic, where we are exploring ways to make our test system more ā€œunreliableā€ in order to observe if our applications behave nicely under challenging and not-ideal environments. In this article we are going to explore some linux technologies: Network Namespaces (netns) Virtual Ethernet Devices (veth) Network Emulation (netem) scheduling policy The goal is to setup a virtual network link inside our system, make the two network devices talk each other and then simulate a bad/slow/glitchy/flaky communication to test how applications behave under difficult conditions. ...

January 6, 2024 Ā· Andrea Manzini

Expect the unexpected

ā€œYou sound like a broken recordā€ Is something we complain when someone repeats again and again the same concepts. But even broken disks can sometime be useful DISCLAIMER: No filesystem or device were harmed in the making of this experiment šŸ˜‰ Image credits: Mick Haupt In this article I would like to explore the powerful tools we have in Linux to simulate dealing with broken disks, that is, drives that more or less randomly report errors. Why is this important ? Because by simulating errors that will also happen sooner or later in the real world, we are able to create software that is more robust and can withstand any problems on the infrastructure. ...

November 19, 2023 Ā· Andrea Manzini

Quiet fans on Thinkpad P15

Intro The Thinkpad P15 laptop is a nice linux machine, but there is an annoying detail, as Arch wiki writes: ā€œThe default operation of fans is noisy, as they are basically at medium power all the time. The thinkfan program can be used to create a quieter operation, while retaining reasonable temperatures.ā€ . Let’s make it quieter. Prerequisite Install thinkfan rpm package and enable the daemon: # zypper in thinkfan && systemctl enable --now thinkfan Make sure modules are loaded at startup with the options to override fan control and enable experimental features: ...

September 1, 2023 Ā· Andrea Manzini