Installing Scan 3.1 + Hub 2.1 on Linux

Discussion about development of draughts in the time of computer and Internet.
Post Reply
Rein Halbersma
Posts: 1661
Joined: Wed Apr 14, 2004 16:04
Contact:

Installing Scan 3.1 + Hub 2.1 on Linux

Post by Rein Halbersma » Fri Feb 21, 2020 16:44

Here's a small script to install Scan 3.1 + Hub 2.1 on Linux from scratch.

Code: Select all

mkdir -p ~/Downloads
cd ~/Downloads
wget https://hjetten.home.xs4all.nl/scan/scan_31.zip
wget https://hjetten.home.xs4all.nl/scan/bb.zip
wget https://hjetten.home.xs4all.nl/scan/bb_bt.zip
wget https://hjetten.home.xs4all.nl/scan/bb_killer.zip
wget https://hjetten.home.xs4all.nl/scan/bb_losing.zip
wget https://hjetten.home.xs4all.nl/scan/bb_frisian.zip
wget https://hjetten.home.xs4all.nl/scan/hub_21.zip
unzip scan_31.zip    -d ../scan
unzip bb.zip         -d ../scan/scan_31
unzip bb_bt.zip      -d ../scan/scan_31
unzip bb_killer.zip  -d ../scan/scan_31
unzip bb_losing.zip  -d ../scan/scan_31
unzip bb_frisian.zip -d ../scan/scan_31
unzip hub_21.zip     -d ../scan/
cd ../scan
rm hub_21/engine.ini
ln -sr scan_31/scan.ini    hub_21/engine.ini 
ln -sr scan_31             hub_21/scan
ln -sr scan_31/scan_linux scan_31/scan
So this will store Scan 3.1 + Hub 2.1 in ~/scan, with subdirectories hub_21 and scan_31, and the full endgame databases for all supported variants inside scan_31/data. The .ini files that come with the .zip files can be used as is. Using a variant requires changing hub_21/hub.ini (for Frisian) or changing scan_31/scan.ini. The GUI and text interface use the same engine settings through the symlink of hub_21/engine.ini to scan_31/scan.ini.

After running the above script and tweaking the settings, simply type (requires a working Java installation)

Code: Select all

cd hub_21
./hub
Thanks to Fabien for pointing out that hub_21/engine.ini can be symlinked.

Post Reply