Post tagged: linux

These aren't the packets I asked for

Since migrating a VM from qemu userspace networking to a dedicated IP and bridged networking I've been seeing abysmal throughput when downloading data from it. Instead of the usual 1.3MiB/s I get 30KiB/s tops. Taking a look with Wireshark a ton of retransmits of TCP segments appear …

VPN-in-a-box

Isolating the network interface provided by VPN software (like OpenVPN or tinc) may be a good idea if you intent to use it to isolate a program to that specific network.

This can somewhat be achieved using a separate user or group, iptables (to mark packets sent by that user …

OpenVPN as IPv6 Tunnel Broker

Long story short: add "server-ipv6 network/netmask" (for example a /80 of your server's /64) to your existing openvpn config and install npd6.

The modification of the OpenVPN config is trivial. It seems to be made primarily for the tun mode but works fine with tap (Layer 2 tunelling) as …

Monitor Brightness on the Desktop

Since I found the buttons on my monitor to be inconvenient, I decided to try to go for a commandline utility that could set the brightness. There are several ways this can be implemented:

  • the driver offers screen brightness setting through ACPI (via /sys/class/backlight, should work on most …

Firefox, remote commands and Xfce

I replaced the default browser in Xfce (Settings → Preferred Applications) with a custom Python script to do some additional URL handling. To open a link in Firefox you just have to run firefox -remote OpenURL(<url>) and you can even use it with multiple instances (add -P <profile>).

Using the …

Versatile USB Boot Stick

After trying for a long time I finally have my USB Stick boot everything I want: any Linux ISO & a Windows installer.

To make the USB stick still behave properly with Windows the NTFS partition needs to be the first partition. The bootloader, Syslinux/Extlinux in this case, goes onto …

XFCE Screen Brightness Issues

As I didn't want a full blown Desktop Environment like Gnome or KDE on my laptop (which is running ArchLinux), I went with XFCE.

It worked nicely out of the box, except for the screen brightness controls.

The hardware keys don't do anything at all by themselves except for firing …