Access

Accounts

I have accounts for diplomacy-related jobs, for example running a judge, a mailing list, an homepage, programming or whatever. Just don’t use your account for other tasks as agreed.

Hardware

The machine is a P4 1.6 GHz, 1 GB RAM, 50 GB HD. I rent the machine at the provider, Liquidweb, very good service by the way

Software

Runnning GNU/Linux Debian woody with a recent 2.4 kernel, you can view the list of the installed packages here, if you need something else which is reasonable tell me and I’ll install it. If you don’t know exactly what you need you can see the list of available packages, or use apt-cache from a shell.

SSH

Telnet connections aren’t accepted, you must use ssh, it’s similar to telnet but uses an encrypted connection.

If you use windows, you can use SecureCRT (shareware) or this applet.

For unix/linux users, OpenSSH is available on all common systems. You can either connect with a password, or generate a pair of keys, eventually without a passphrase if you trust fully your local machine

On your local machine:

ssh-keygen -t dsa

Then, copy the generated file ~/.ssh/id_dsa.pub on your machine to ~/.ssh/authorized_keys2 on floc.net

FTP

Use sftp (part of OpenSSH) to connect if possible as the standard ftp protocol transmits passwords as plain-text

CVS

For people who have a cvs access to work on mapit, here is a quick summary of the commands you’ll need:

cvs checkout mapit: checkout the files from the repository to the current directory

cvs update: run this from the mapit directory before commit, this will display the files you changed

cvs commit: commit the changes to the cvs repository. This will open the editor $EDITOR (if you don’t like the default editor, change it in ~/.bash_profile)

You can get more documentation with man cvs and here

You can browse the cvs tree here.

Observer wrapper

The wrapper is used to run some commands as the user “observer”

The syntax is ~observer/public_scripts/wrapper command [args], the commands are:

help

Display an help message

list_games

Get the list of games matching some attributes, with one line per game, format “$judge $game”. Type the command with no argument for help.

make_maps [JUDGE GAME]

Regenerate the maps of the game displayed at http://www.floc.net/observer.py?page=game&game;=GAME&judge;=JUDGE

reload_history [JUDGE GAME]

Mail a request to the judge to get the history (the mapper will replace it and regenerates the maps when it get the reply)

get_history JUDGE GAME

Print to stdout the history of the game

update_c_mapit

Update the mapit files for the C version (used for the Machiavelli games) on the observer account from your directory ~/mapit, and run make. It copies the files ~/mapit/*.{c,h}, ~/mapit/maps/Mach*, ~/mapit/Makefile*, ~/mapit/configure*, ~/mapit/dpmap_fixes.py. Make sure that these files are readable by the user “observer”, this command prints the files being copied.

update_maps

Update the files ~/mapit/maps/*.ps, ~/mapit/maps/*.info, ~/mapit/dpmap_fixes.py. Make sure that these files are readable by the user “observer”, this command prints the files being copied.

Typically, you update the files in the observer directory, regenerate some maps, and check in the changes when you’re happy.

For the commands with optional arguments [JUDGE GAME] you can give no argument on the command line and provide a list of arguments on stdin, for example to regenerate the maps of all Machiavelli games:

~observer/public_scripts/wrapper list_games variant=Machiavelli | ~observer/public_scripts/wrapper make_maps