How to run tournaments on Linux without GUI?

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

aturri
Posts: 85
Joined: Wed Dec 30, 2009 11:35 pm

How to run tournaments on Linux without GUI?

Post by aturri »

Hello everybody!

First of all, I would like to thank you for your very interesting Fora which I have been following for years, but had not joined until now.

I would like to know if there is a way to run a match between two Linux native engines in a Linux from console.

My idea is to use a remote system that usually has some spare time on holidays for some small tests. I connect using SSH, so I cannot run any GUI, just commands from console. If matching two UCI or Winboard (Win?? on Linux? :shock: ) chess engines is possible then it should be easy to create an script to run a mini-tournament.

Thx.
Gian-Carlo Pascutto
Posts: 1260
Joined: Sat Dec 13, 2008 7:00 pm

Re: How to run tournaments on Linux without GUI?

Post by Gian-Carlo Pascutto »

cutechess-cli

Search this forum for the discussion about it.
User avatar
hgm
Posts: 28354
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to run tournaments on Linux without GUI?

Post by hgm »

XBoard is made for running engines on remote systems through ssh not? The -firstHost and -secondHost options are for that.
aturri
Posts: 85
Joined: Wed Dec 30, 2009 11:35 pm

Re: How to run tournaments on Linux without GUI?

Post by aturri »

Gian-Carlo Pascutto wrote:cutechess-cli

Search this forum for the discussion about it.
H.G.Muller wrote: XBoard is made for running engines on remote systems through ssh not? The -firstHost and -secondHost options are for that.
Thank you. After having read some of the first posts in http://talkchess.com/forum/viewtopic.ph ... techesscli I will try first cutechess-cli, as there is no X-server running on the other side.
User avatar
hgm
Posts: 28354
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to run tournaments on Linux without GUI?

Post by hgm »

Ssh does not need an X-server, does it? I don't know what you plan to run on 'this' side, or that even there an X-server would always be necessary. You could even run WinBoard.
User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 7:45 pm
Location: Finland

Re: How to run tournaments on Linux without GUI?

Post by ilari »

hgm wrote:Ssh does not need an X-server, does it? I don't know what you plan to run on 'this' side, or that even there an X-server would always be necessary. You could even run WinBoard.
But Xboard depends on X-Server, even in "no gui" mode, right? Maybe the OP wants to run the games, not just engines, on a remote system. I imagine remote engines would add significant communication overhead to the games, making fast games impractical.
User avatar
hgm
Posts: 28354
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to run tournaments on Linux without GUI?

Post by hgm »

OK, I guess it is not clear to me what he wants. He does not mention fast games, and indeed I was supposing he wanted to run the engines remote.
aturri
Posts: 85
Joined: Wed Dec 30, 2009 11:35 pm

Re: How to run tournaments on Linux without GUI?

Post by aturri »

Sorry if my explanations were not enough clear.

My idea is to launch the games from my computer. But all the engines will be running in the remote system. I will disconnect my ssh session and the process(es) must continue running the tournament (nohup ... >>log &, etc.), the games and results being logged into the remote file system. When the tournament finishes, I connect again to download the logs. Obviously I should connect in the middle, to check all is running fine, or to cancel/abort a dead process/engine and then resume the tournament.

So I don't want an X-server on the other side, as my porpose is not nor watching the games online, nor playing against the remote system, nor the remote system playing against a third one.

That is why, I think, the cutechess-cli will fit perfectly my needs
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: How to run tournaments on Linux without GUI?

Post by Don »

hgm wrote:Ssh does not need an X-server, does it? I don't know what you plan to run on 'this' side, or that even there an X-server would always be necessary. You could even run WinBoard.
You can run xboard locally and the programs remotely and use ssh with no problem. The basic procedure is:

1. set up an ssh-agent so that you can log in without using a password.

2. the program name is something like "ssh -l username myRemote.host.com path/to/program"

and it will work. It doesn't matter whether the local GUI or interface is console or X or anything like that.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: How to run tournaments on Linux without GUI?

Post by bob »

Don wrote:
hgm wrote:Ssh does not need an X-server, does it? I don't know what you plan to run on 'this' side, or that even there an X-server would always be necessary. You could even run WinBoard.
You can run xboard locally and the programs remotely and use ssh with no problem. The basic procedure is:

1. set up an ssh-agent so that you can log in without using a password.

2. the program name is something like "ssh -l username myRemote.host.com path/to/program"

and it will work. It doesn't matter whether the local GUI or interface is console or X or anything like that.
You do have to have a local x server running however, since ssh will forward the 7000-series port connections from the remote machine to your machine. The x-server also has to be "open" which is damned hard to do nowadays on Linux, thanks to the security concerns about people taking over someone's screen with a remote X session.