# Dgamelaunch
dgamelaunch is a program that manages user logins, game viewing and launching NetHack on public servers such as nethack.alt.org. It was originally written by Drew Streib, but has been expanded by several other people.
Dgamelaunch also supports dgamelaunch mail.

Contents

1 Automatic Login

1.1 PuTTY
1.2 MobaXterm
1.3 Unix/Linux with Telnet
1.4 Unix/Linux with the OpenSSH client

2 Installing
3 External Links

Automatic Login
Putting your login and password every time you want to connect to a dgamelaunch server is annoying. Luckily, there are simple ways of automating the process.

PuTTY
If you want to use Telnet, in your saved session's configuration, go to Connection &gt; Data, and in the section Auto-login username enter your credentials in the format "yourname:yourpassword" (without the quotes). An alternative method available under Environment Variables is to add a new variable USER and set its value to the same. Note that Telnet traffic is unencrypted and unauthenticated, so you risk exposing your credentials to an attacker snooping on your local network or the Internet.
If you use the more secure SSH protocol, you will use the environment variable method as for Telnet, but the variable name is DGLAUTH. The value is the same. Also, set the Auto-login username to whatever your dgamelaunch server uses, typically nethack.

MobaXterm
MobaXterm is a free-to-use terminal client that supports tabbed sessions and a wide variety of protocols. Unfortunately, it doesn't support passing environment variables, but you can use its macro support to automate login. Edit the session properties, and under Advanced SSH settings, change the macro type to 

<custom macro="">. Add the following lines, in order:

Text: lYourName

(This is the lowercase letter "L", followed by your username.)

Key press: RETURN
Text: YourPassword
Key press: RETURN

Again, SSH is strongly recommended over Telnet.

Unix/Linux with Telnet
Use following command:

telnet -l yourname:yourpassword hostname

Unix/Linux with the OpenSSH client
One simple way to send the appropriate environment variable is to create an alias in your .bashrc or .bash_aliases file to connect with the correct options:

alias nao='ssh -o SetEnv="DGLAUTH=YourName:Na0p4ss" nethack@nethack.alt.org'
alias hdf='ssh -o SetEnv="DGLAUTH=YourName:Hard4t" nethack@hardfought.org'

Another method is to create host sections in ~/.ssh/config, for example:

Host nao
 Hostname nethack.alt.org
 User nethack
 SetEnv DGLAUTH="YourName:Na0p4ss"

Host hdf
 Hostname hardfought.org
 User nethack
 SetEnv DGLAUTH="YourName:Hard4t"

Then you can "ssh nao" or "ssh hdf", and the correct connection settings will be used automatically.

Installing
You can download the sources from http://alt.org/nethack/dgamelaunch/ or you can get the development version from the git repository by using the following command.

git clone git://github.com/paxed/dgamelaunch.git

For the SVN version setup, see User:Paxed/HowTo setup dgamelaunch.

External Links
Preliminary setup instructions
Installing, configuring, and using dgamelaunch with NetHack on FreeBSD
Complete installation guide tested on CentOS

</custom>