Connecting a Windows box to a remote Engine on a GNU+Linux serverWhat's this page about, who's it for, and the disclaimer
This page is a how-to guide for fusing a windows chess gui, such as chessbase, on a windows computer to a chess engine living on a linux server. The guide is intended for anyone who wants to do that. It's assumed the machines can ping eachother and that wine is installed on the linux server. Now, the disclaimer: Fundamental nuts and bolts: engines talkEngines and gui's talk in plain text. The language they use is defined and explained here by its author, UCI by Stefan Meyer-Kahlen. Ok, let's talk to a chess engine
# grab an engine Connecting machines
OPTION 1 (prefered) -- SSH InBetween.exe (download)- for use with Chessbase GUI. Link includes description and download of InBetween.exe usage example of InBetween.exe - immortalchess.net forum post OPTION 2 -- RTHomeServer.exe + wine
Running *.exe engines on Linux: ~$ wine engine.exeInstall wine from the distribution's repositories and try running ~$ wine engine.exe. Hopefully that starts the engine. Some engines don't behave so well from the command line, notably Houdini 1.5, but so long as they start up, you're in business. Performance optimization- there are two benchmarks you can use: 1) nodes per second 2) time to solve a tricky position. - change the kernel. - enable large pages on the server? am not sure if these are now part of the mainline kernel - look around for Oracle and IBM documentation about improve, for example, db performance - hash size - stop programs / daemons wasting cpu cycles - stockfish has compilation settings for various cpus.
Jesse Gersenson jesse in/on/at jesseo.com to be added to main articleI use Debian and also Xubuntu which is ubuntu with the xfce windows manager. The benefit of xfce is it doesn't (visually) change -- it always looks like windows 98. Here is the iso for Xubuntu 14.04: http://ftp.uni-kl.de/pub/linux/ubuntu-dvd/xubuntu/releases/14.04/release/xubuntu-14.04.4-desktop-amd64.iso After you install it run these commands from a terminal: sudo apt-get install wine gufw && sudo gufw turn the firewall 'on'. "netchess" doesn't work with current operating systems. InBetween.exe by Gunnar Malin https://komodochess.com/pub/InBetween-ver-1.5.zip works. It is what I use to connect Arena, which is a windows program I run on my linux machine with the command 'wine Arena.exe', to a 24 core linux machine which runs a development version of Komodo. InBetween has two files.. InBetween.exe and InBetween.ini. One is the executable and the *.ini file is a text file you must edit. Note, you can change the name from InBetween to something else but make sure the base filename is the same, ex. MyNewEngine.exe & MyNewEngine.ini 1. Stick both InBetween files in a folder. And in the folder also put plink.exe. 2. install an ssh server on your linux machine, in xubuntu you do this with the command: sudo apt-get install openssh-server 3. make sure ssh is working by trying to connect to your machine with this command (change 'yourusename' to your actual username): ssh yourusername@localhost you should be prompted for your password. enter it and you'll get some 'thanks for connecting' text and a command prompt. type exit to close the connection and return to your non-ssh command prompt. 4. set up InBetween.ini. Here is an example: [InBetween] Priority := high CommandLine := PLINK.EXE -ssh -pw SecretPassword USERNAME@localhost "/home/USERNAME/linux-engine" [Client2Server] [Server2Client] The text in bold face will be changed; replace SecretPassword with your actual password and change USERNAME to your USERNAME and linux-engine with be komodo-10.1-linux or stockfish_15082821_32bit or something similar... 5. run "wine InBetween.exe" from the command line and answer 'y' when asked to cache the machine key. 6. In Aquarium, or any windows based GUI, use InBetween.exe as your engine. |