Difference between revisions of "Dgamelaunch"
m (→Unix/Linux with OpenSSH client: Emphasize difference between SET and SEND) |
Darth l33t (talk | contribs) (correct grammar and simplify OpenSSH connection) |
||
Line 1: | Line 1: | ||
− | '''dgamelaunch''' is a program that manages user logins, game viewing and launching NetHack on [[nethack.alt.org]] | + | '''dgamelaunch''' is a program that manages user logins, game viewing and launching NetHack on [[public server]]s 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]]. | Dgamelaunch also supports [[dgamelaunch mail]]. | ||
==Automatic Login== | ==Automatic Login== | ||
− | Putting your login and password | + | 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=== | ===PuTTY=== | ||
− | If you want to use | + | If you want to use Telnet, in your saved session's configuration, go to <code>Connection > Data</code>, and in the section <code>Auto-login username</code> enter your credentials in the format "''yourname'':''yourpassword''" (without the quotes). An alternative method available under <code>Environment Variables</code> 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 SSH protocol, you will use the | + | 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 <code>Auto-login username</code> to whatever your dgamelaunch server uses, typically ''nethack''. |
− | ===Unix/Linux with | + | ===Unix/Linux with Telnet=== |
Use following command: | Use following command: | ||
telnet -l ''yourname'':''yourpassword'' hostname | telnet -l ''yourname'':''yourpassword'' hostname | ||
− | ===Unix/Linux with OpenSSH client=== | + | ===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 <code>~/.ssh/config</code>, for example: | |
Host nao | Host nao | ||
Line 45: | Line 34: | ||
SetEnv DGLAUTH="YourName:Hard4t" | SetEnv DGLAUTH="YourName:Hard4t" | ||
− | + | Then you can "ssh nao" or "ssh hdf", and the correct connection settings will be used automatically. | |
==Installing== | ==Installing== |
Revision as of 14:19, 5 November 2022
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
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 > 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.
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.