Post tagged: linux

Raspberry Pi emulation with Qemu

The idea here is that we use a Desktop PC for developing/debugging Raspberry Pi set-ups using qemu for emulating Rasperrby Pi.

qemu currently supports the following configurations:

  • Raspberry Pi Zero and 1A+ (armhf)
  • Raspberry Pi 2B (armv7)
  • Raspberry Pi 3A+ (aarch64)
  • Raspberry Pi 3B (aarch64)
    • This is the version …

RDP vs VNC

For years I have been using VNC for my remote desktop needs. This works usually well enough. The features that I like are:

  • Basic set-up is easy
  • Desktop sessions are persistent
  • Can be used to view an actual X11.org desktop.
  • Browser based clients via noVNC or Guacamole

On the …

QNAP Snapshots

I wrote a small tool to access QNAP snapshots from the Linux command line.

Pre-requistes:

  • Snapshots have to be enabled
  • You need a /share/netcfg containing the file:
    • In my case, I set this share as read-only with root-squash.
    • `admin.yaml' : contains the private/public keys and the configuration of …

Moving to Home Assistant

I am busy moving away from my VeraEdge installation to a Home Assistant running on a Raspberry Pi 4. This is because it looks like the maker of the VeraEdge was bought and it is slowly being phased out.

For this I am using the following parts:

voidlinux virtualization

This recipe is for setting virtualization on a voidlinux desktop.

Use this setup script to set things up on void linux.

Connecting to libvirtd

Note that virsh and virt-manager commands connect to different libvirtd sessions by defauult.

virsh defaults to qemu:///session while virt-manager to qemu:///system.

It is better …

flatpak

Flatpak is a utility for software deployment and package management for Linux. It is advertised as offering a sandbox environment in which users can run application software in isolation from the rest of the system. Flatpak was developed as part of the freedesktop.org project and was originally called xdg-app …

Linux Icons

A quick note on how to add icons to menus in a Linux desktop.

  1. Create the icon image in: /usr/share/pixmaps. - png and svg (and maybe others) are supported. - 24x24 seems to be a good size for menus.
  2. You need to create a .desktop file in /usr/share/applications …

Enable syslog with void

In void Linux, the default is without logging. Most cases it is OK for desktop use.

If you want to enable syslog service in void, you need to install:

socklog-void

Also to let your user have access to the logs, use:

usermod -aG socklog <your-username>

Because I like to have …

Linux HDMI hotplug

The point of this article is to document I workaround that I came up with to handle a HDMI KVM switch.

What happens is that if my Linux PC is turned on while the KVM switch is selecting the other PC, it fails to initialize the display, so when you …

PulseAudio hints and tricks

PulseAudio is nowadays the default sound system in many Linux distributions. It lets you do a number of useful things.

PulseAudio comes with a handy command line utility pacmd to do a number of things.

pacmd commands

  • pacmd exit
  • pacmd help
  • pacmd list-(modules|sinks|sources|clients|cards|samples)
  • pacmd …

Using XScreenSaver Hacks with mate-screensaver

Here we explain how to use XScreenSaver EXCELLENT screensaver hack collection with the MATE screensaver applet.

  • Install xscreensaver and mate-screensaver
  • On my linux distribution this creates the following directories:
    • /usr/libexec/xscreensaver: contains the screensaver hacks executables
    • /usr/libexec/mate-screensaver : contains the mate-screensaver executables
    • /usr/share/applications/screensavers : containes the …

Installing Void Linux

I made the switch to void linux. Except for compatibility issues around glibc, it works quite well. Most compatibility I have worked around with a combination of Flatpaks, chroots and namespaces.

The high lights of void linux:

  • musl build - which is very lightweigth
  • Does not depend on systemd …

Docker on Alpine Linux

Alpine Linux Quick installation

See wiki For Alpine Linux > 3.8

  1. Un-comment community repo from /etc/apk/repositories
  2. apk add docker
  3. rc-update add docker boot
  4. service docker start

Optional: (docker compose)

apk add docker-compose

Note 2021-03-21: When I tested this, the daemon.json did not work! Your mileage may vary …

Alpine on OTC

These are just random thoughts nothing really was implemented.

Alpine Linux image

  • preparation: jq and other deps to /apks/x86_64
  • /etc/local.d/ cloud-init-lite
  1. if /etc/network/intefaces exists we abort
  2. apk add --force-non-repository /path oniguruma,jq .. restore /etc/apk/world
  3. udhcpc -b -p /var/run/udhcpc.eth0.pid -i …

3 Open Source Password Managers

Keep your data and accounts safe by using a secure open source password manager to store unique, complex passwords.

Maintaining complex, unique passwords for each site and service you use is among the most common pieces of advice that security professionals provide to the public every year.

Yet no matter …

How to encrypt linux partitions with LUKS

There are plenty of reasons why people would need to encrypt a partition. Whether they're rooted it in privacy, security, or confidentiality, setting up a basic encrypted partition on a Linux system is fairly easy. This is especially true when using LUKS, since its functionality is built directly into the …

using cachefiles on an Linux NFS share

If you often mount and access a remote NFS share on your system, you will probably want to know how to improve NFS file access performance. One possibility is using file caching. In Linux, there is a caching filesystem called FS-Cache which enables file caching for network file systems such …