Other articles


  1. iptables FAQ

    Published: Sat 25 July 2020
    By evpo

    In OS.

    List rules

    iptables -L -v -n --line-numers
    

    We can use the line numbers later to delete rules.

    Delete rules

    iptables -D INPUT 1
    

    INPUT is the chain from which we delete the rule with line number 1

    Allow incoming connection to a port

    Allow incoming connections to port 1510 on …

    read more
  2. How to create a systemd service?

    Published: Fri 12 June 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
  3. Backup and restore your Linux system disk

    Published: Wed 03 June 2020
    By evpo

    In OS.

    Backup your system disk when its not active

    Boot-up another system with your system disk attached. Mount it and backup all system files:

    mount ${srcdev} /mnt
    cd /mnt
    tar --exclude sys.tar.bz2 -czpf sys.tar.bz2 ./
    umount /mnt
    

    -z - infer the compression format from the extension

    -p - save all …

    read more
  4. 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.

    Video

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

    devices:
      Xauthority:
        path: /home/ubuntu/.Xauthority
        source: /home/demo/.Xauthority
        type …
    read more
  5. 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

links

social