Other articles

  1. Build AppImageKit

    This article is a manual to build AppImageKit from source

    Install dependencies

    apt install zsync libglib2.0-dev desktop-file-utils libtool automake cmake patchelf qtcreator libfuse-dev libcairo2-dev

    Pull the source code

    git clone --recursive https://github.com/AppImage/AppImageKit
    git clone --recursive https://github.com/probonopd/linuxdeployqt.git

    Build AppImageKit

    bash -ex …
    read more
  2. Rarely used git commands

    How to export all repository files to a directory?

    git --work-tree=${OUTPUT_DIRECTORY} --git-dir=${REPOSITORY_DIRECTORY}/.git checkout -f

    How to export all repository files to an archive?

    git archive --prefix="${result_directory}/" -o ${result_archive}.tar.gz HEAD
    read more
  3. How to forward GPU and sound to the host?

    Published: Tue 25 February 2020
    By evpo

    In OS.

    tags: LXD

    Further in the article we will use demo as the user in the host and ubuntu in the container.


    Add the below lines to the LXD container config to allow the container's X11 to connect to the host:

        path: /home/ubuntu/.Xauthority
        source: /home/demo/.Xauthority
        type …
    read more
  4. How to resolve apparmor or namespace permission issues?

    Published: Sat 22 February 2020
    By evpo

    In OS.

    tags: LXD

    Some applications cannot work in containers because of apparmor permissions, namespaces or functionality unsupported by the kernel on the host system. Below is an example of a mariadb service error:

    mariadb.service: Failed to set up mount namespacing: Permission denied

    This error occurred when running the container in privileged mode …

    read more
  5. How to create a systemd service?

    Published: Wed 12 February 2020
    By evpo

    In OS.

    Running process

    We will use a Minecraft server as an example. This is a Java application. It should start when the machine boots up and it stops gracefully when the service is stopped. The service name will be minecraft.

    Create a text file at the following location: /etc/systemd/system …

    read more