ArchLinux (docker)

Arch Linux is rolling-release linux distribution. That means, you get often updates wit the newest programs and libraries. Thats a nightmare for binary packages, because they depends on certain version of libraries.

Docker allows you to run diffrent images of many linux distributions in different versions. Thats cool, if you want to run something which requires libraries not available at your current Linux distribution.

I am going to describe you how to install nocheto into Arch Linux docker image.
I am not going to describe how to install or operate docker, read docker tutorial for it.

Step 1: run arch image

docker run -it -v /home/username/:/home/username/ --net host --privileged -v /dev/snd:/dev/snd --name "nocheto" archlinux:base-20210328.0.18194 /bin/bash

Change username to your home directory name.

Step 2: install some packages

pacman -Fy
pacman -Sy vim vi less git sudo fakeroot make gcc autoconf flex bison libtool sqlite graphicsmagick libedit openssl

Step 3: create non-root account

In visudo, add this line: username ALL=(ALL) NOPASSWD: ALL

useradd username

Step 4: Install stockfish

git clone
cd stockfish
chown username .
su username
makepkg -si --noconfirm
cd -
rm -rf stockfish

Step 5: Install nocheto

Download the .pkg.tar.xz package and install it by the following command:

pacman -S --noconfirm alsa-utils espeak 
pacman -U --noconfirm <packagename>.pkg.tar.zst

<packagename>.pkg.tar.zst is the name of nocheto or nochetoengi package, i.e. nocheto-0.32-0-x86_64.pkg.tar.zst or nochetoengi-1.0.1-0-x86_64.pkg.tar.zst.

Step 6: Run it

Once you exit from docker, to run the container you just created again, first find out its CONTAINER_ID and then run it like this:

docker ps --all
CONTAINER ID        IMAGE                COMMAND             CREATED             STATUS                     ...
8ee78412c83e        archlinux:2.......   "/bin/bash"         41 minutes ago      Exited (0) 2 minutes ago   ...

docker start -i 8ee78412c83e

Once you start the container again, you can connect to it with another shell (in another console window) like this:

docker exec -ti 8ee78412c83e /bin/bash

You can also run directly one of nocheto programs:

docker exec -it c9388f57463a nochetoclient

Note: you can use container name instead of CONTAINER ID:

docker exec -it nocheto nochetoclient

Continue with postinstall instructions.

ldd output

Nocheto for this distribution require: graphicsmagick gcc readline openssl sqlite

$ ldd /usr/local/bin/nochetoengi (0x00007ffe7ea78000) => /usr/lib/ (0x00007f0145218000) => /usr/lib/ (0x00007f01451f6000) => /usr/lib/ (0x00007f0145019000) => /usr/lib/ (0x00007f0144ed3000) => /usr/lib/ (0x00007f0144eb9000) => /usr/lib/ (0x00007f0144cf0000)
        /lib64/ => /usr/lib64/ (0x00007f014538a000)

ldd /usr/local/bin/nocheto (0x00007fff7d09d000) => /usr/lib/ (0x00007f1f4fcd3000) => /usr/lib/ (0x00007f1f4fc98000) => /usr/lib/ (0x00007f1f4f9ba000) => /usr/lib/ (0x00007f1f4f92a000) => /usr/lib/ (0x00007f1f4f892000) => /usr/lib/ (0x00007f1f4f6b5000) => /usr/lib/ (0x00007f1f4f56f000) => /usr/lib/ (0x00007f1f4f555000) => /usr/lib/ (0x00007f1f4f38c000) => /usr/lib/ (0x00007f1f4f1c8000) => /usr/lib/ (0x00007f1f4f167000) => /usr/lib/ (0x00007f1f4f093000) => /usr/lib/ (0x00007f1f4f07e000) => /usr/lib/ (0x00007f1f4f074000) => /usr/lib/ (0x00007f1f4f057000) => /usr/lib/ (0x00007f1f4ef16000) => /usr/lib/ (0x00007f1f4eeec000) => /usr/lib/ (0x00007f1f4eed9000) => /usr/lib/ (0x00007f1f4eebf000) => /usr/lib/ (0x00007f1f4eeb3000) => /usr/lib/ (0x00007f1f4ee42000) => /usr/lib/ (0x00007f1f4ee3c000) => /usr/lib/ (0x00007f1f4ecfe000)
        /lib64/ => /usr/lib64/ (0x00007f1f500c5000) => /usr/lib/ (0x00007f1f4ecbd000) => /usr/lib/ (0x00007f1f4ec86000) => /usr/lib/ (0x00007f1f4ebb7000) => /usr/lib/ (0x00007f1f4ebae000) => /usr/lib/ (0x00007f1f4eb82000) => /usr/lib/ (0x00007f1f4eb5d000) => /usr/lib/ (0x00007f1f4ea2a000) => /usr/lib/ (0x00007f1f4ea25000) => /usr/lib/ (0x00007f1f4ea1d000) => /usr/lib/ (0x00007f1f4e9a9000)