1 1
guidol

tutorial [Info] Howto enable stockfish/armfish chess engine as a TCP-service

Recommended Posts

For enabling - to use stockfish/armfish-chess-engine - as a TCP service

we need to configure (add the lines at the end of the file) /etc/inetd.conf

#:OTHER: Other services
stockfish08      stream  tcp     nowait  guido   /usr/games/stockfish
stockfish10      stream  tcp     nowait  guido   /usr/games/stockfish_10_64
armfish          stream  tcp     nowait  guido   /usr/games/armfish_aarch64

and add the TCP-Port - we want to use - to the /etc/services (for optical reasons after pop3s port 995/tcp)

pop3s           995/tcp                         # POP-3 over SSL
#
#
stockfish08     1024/tcp                        # stockfish 8  chess engine
stockfish10     1025/tcp                        # stockfish 10 chess engine
armfish         1026/tcp                        # armfish chess engine

at the end we have to restart inetd (or reboot)

systemctl restart inetd

 

Additional (important?) informations:

 

- guido is a local user on my system - you need to change the name for the /etc/inetd.conf to a local user of your system

/usr/games/stockfish is the stockfish-binary installes by apt install stockfish

- the stockfish-binary we compiled for stockfish v10 64Bit in another thread

   from ./Stockfish-master/src/stockfish (directory of the cloned github-repository)

   to /usr/games/stockfish_10_64
 

- /usr/games/armfish_aarch64 is the (on a 64Bit PC-Linux compiled with fasmg) assembler-version of stockfish which could run twice as fast
   see https://github.com/lantonov/asmFish
   precompiled aarch64-binary as attachment (think about the chmod 755 armfish_aarch64 after the transfer :) )

 

Binary-Overview in /usr/games/

root@t95k-pro(192.168.6.62):/usr/games# ls -l
insgesamt 644
-rwxr-xr-x 1 root root 128050 Mär 14 22:08 armfish_aarch64
-rwxr-xr-x 1 root root 216216 Nov 12  2016 stockfish
-rwxr-xr-x 1 root root 308896 Mär 14 13:57 stockfish_10_64

 

armfish_aarch64

 

Share this post


Link to post
Share on other sites
20 minutes ago, lanefu said:

Pretty cool....   Another option is to use systemd rather than inetd.

OK - I will learn one possibility after another :) For today I reached my goal ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1 1