You are here: Home > Tips + Tricks  > Remote Engines > Installing a Chess Engine on Linux.

Installing a Chess Engine on Linux.

You now need to install a chess engine on the linux machine. You can compile an engine yourself or download an available engine. Any UCI or Winboard engine should work. The choice is yours and you may also install several. For Linux I highly recommend Stockfish. The build by Jim Ablett is really good. For the sake of the example I will use Stockfish as an example.

Just download the zip files form with the Stockfish, unzip it, and place the executable in a directory at the linux machine where it feels natural. If you have administrator rights on the machine you should place it in /usr/local/bin, if not you can place it somewhere under you home directory.

In the stockfish zip file there is both a 32bit compiled version and a 64bit version. It you are not sure if your machine is 32bit or 64bit, you can type:

oystein@thelinuxbox:~$ uname -m

If the response is x86_64 you have a 64bit machine, if it says i686 or something similar, you have a 32bit machine.

Let's assume you have administrator rights to the linux machine and wants to install the executable in /usr/local/bin/. Move the executable to this directory.

oystein@thelinuxbox:~$ sudo mv stockfish-171-64-ja /usr/local/bin
oystein's password: <type password>

For simplicity it's nice to have a symbolic link named stockfish in the same directory, such that you just alter what the symbolic link points to when you install new versions of stockfish.

oystein@thelinuxbox:~$ cd /usr/local/bin
oystein@thelinuxbox:/usr/local/bin$ sudo ln -s stockfish-171-64-ja stockfish

Make sure the file has execution flag in it's permissions.
oystein@thelinuxbox:/usr/local/bin$ sudo chmod +x stockfish-171-64-ja

You can also install a opening book somewhere on the Linux machine. Get the file Book.bin. This file can be installed in /usr/local/share/. (My preference)

oystein@thelinuxbox:~$ sudo mv Book.bin /usr/local/share

Just to make sure that every thing is install you can try to start stockfish on the linux computer.

oystein@thelinuxbox:~$ stockfish
Stockfish 1.7.1 JA 64bit. By Tord Romstad, Marco Costalba, Joona Kiiski.

Yes, it looks like it works at the linux machine. Press Ctrl-C to stop the engine.

The final test before we start using this in Arena is to check that we can start stockfish from the Windows computer:

C:\putty> plink -ssh oystein@thelinuxbox "stockfish"
Stockfish 1.7.1 JA 64bit. By Tord Romstad, Marco Costalba, Joona Kiiski.

Yes, it looks like it works also when connecting through plink. Press Ctrl-C to stop the engine and close the connection. If it didn't work, make sure that pageant is running and your key is loaded.

Of course, if you installed it in a different directory on the linux machine, maybe in your $HOME directory, you should instead type:

C:\putty> plink -ssh oystein@thelinuxbox "~/mychessengines/stockfish"
Stockfish 1.7.1 JA 64bit. By Tord Romstad, Marco Costalba, Joona Kiiski.

Powered by CMSimple_XH | Template by CMSimple_XH | (X)html | css | Login