2004-01-31 07:23:02 +01:00
|
|
|
# This is a sample dgamelaunch configuration file. Only bash-style comments
|
|
|
|
# are allowed, such as this. Each configuration option will be explained
|
|
|
|
# along with its default value.
|
|
|
|
|
2007-03-29 22:14:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Global config variables:
|
|
|
|
|
|
|
|
|
|
|
|
# Max amount of registered users to allow.
|
|
|
|
maxusers = 64000
|
|
|
|
|
2007-03-31 13:10:07 +02:00
|
|
|
# Max length for newly registered nicks. Must be less than 20.
|
|
|
|
# By default, NetHack only stores the first 10 chars of a name into
|
|
|
|
# the record/logfile.
|
|
|
|
maxnicklen = 10
|
|
|
|
|
2007-03-29 22:14:55 +02:00
|
|
|
# Path to a prepared chroot jail.
|
|
|
|
chroot_path = "/var/lib/dgamelaunch/"
|
|
|
|
|
|
|
|
# From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc
|
|
|
|
dglroot = "/dgldir/"
|
|
|
|
|
|
|
|
# From inside the jail, location of a banner file that contains no more than
|
|
|
|
# 14 lines of 80-column width text. Any more will be truncated.
|
|
|
|
banner = "/dgl-banner"
|
|
|
|
|
2004-01-31 07:23:02 +01:00
|
|
|
# The following two options are fairly insecure. They will force us to
|
|
|
|
# load the password/group database into memory while still having root
|
|
|
|
# privileges. Replace them with shed_uid/shed_gid entries as soon as
|
|
|
|
# possible if you decide to use them. dgamelaunch will inform you of
|
|
|
|
# the uids/gids corresponding to your choices when it loads.
|
|
|
|
#
|
|
|
|
# Note that shed_uid and shed_gid will always take precedence over
|
|
|
|
# shed_user and shed_group if they are specified.
|
2004-01-05 02:25:38 +01:00
|
|
|
|
|
|
|
# shed_user: username to shed privileges to
|
2007-03-31 23:31:52 +02:00
|
|
|
#shed_user = "games"
|
2004-01-05 02:25:38 +01:00
|
|
|
# shed_group: group name to shed privileges to
|
2007-03-31 23:31:52 +02:00
|
|
|
#shed_group = "games"
|
2004-01-05 02:25:38 +01:00
|
|
|
|
2004-01-31 07:23:02 +01:00
|
|
|
# Preferably, you may use the respective gids/uids. This is for Debian:
|
2004-01-05 02:25:38 +01:00
|
|
|
shed_uid = 5
|
|
|
|
shed_gid = 60
|
|
|
|
|
2007-03-31 23:31:52 +02:00
|
|
|
# The defaults are usually just fine for this. passwd refers to the file
|
|
|
|
# that stores the user database, and lockfile is only used internally by
|
|
|
|
# dgamelaunch.
|
|
|
|
|
|
|
|
passwd = "/dgl-login"
|
|
|
|
lockfile = "/dgl-lock"
|
|
|
|
|
2004-01-05 02:25:38 +01:00
|
|
|
|
2007-03-29 22:14:55 +02:00
|
|
|
|
|
|
|
# Next, we'll define one game's data:
|
|
|
|
|
2004-01-05 02:25:38 +01:00
|
|
|
|
2004-04-03 21:27:42 +02:00
|
|
|
# From inside the jail, the location of the binary to be launched.
|
2007-03-29 22:14:55 +02:00
|
|
|
game_path = "/bin/nethackstub"
|
2007-04-01 12:11:38 +02:00
|
|
|
# Full name of the game
|
2007-03-29 22:14:55 +02:00
|
|
|
game_name = "NetHack stub"
|
2007-04-01 12:11:38 +02:00
|
|
|
# Short name, used in the watching menu
|
|
|
|
short_name = "NHstb"
|
2004-01-05 02:25:38 +01:00
|
|
|
|
2007-03-29 22:14:55 +02:00
|
|
|
# arguments for when we exec the binary
|
|
|
|
game_args = "/bin/nethackstub"
|
|
|
|
game_args = "foo"
|
|
|
|
game_args = "user:%n"
|
|
|
|
game_args = "shed_uid:%u"
|
|
|
|
game_args = "bar"
|
2004-01-05 02:25:38 +01:00
|
|
|
|
|
|
|
# From inside the jail, where dgamelaunch should put mail - should match up with
|
|
|
|
# NetHack settings.
|
|
|
|
spooldir = "/var/mail/"
|
|
|
|
|
|
|
|
# From inside the jail, the default .nethackrc that is copied for new users.
|
2007-03-29 22:14:55 +02:00
|
|
|
# rc_template = "/dgl-default-rcfile"
|
2004-01-05 02:25:38 +01:00
|
|
|
|
2004-03-17 15:04:31 +01:00
|
|
|
|
|
|
|
# From inside the jail, the path to the savefile. %u is replaced by the
|
|
|
|
# decimal representation of shed_uid, %n is replaced by the player's
|
|
|
|
# user name. Before starting the game, this file is copied to its name
|
|
|
|
# with ".bak" appended. Set to an empty string to disable this copying.
|
2007-03-29 22:14:55 +02:00
|
|
|
|
|
|
|
savefilefmt = "/var/games/nethack/save/%u%n.gz"
|
|
|
|
|
|
|
|
# make sure the inprogress dir actually exists. default is "inprogress/"
|
|
|
|
# each game you define here must have it's own.
|
2007-03-31 23:31:52 +02:00
|
|
|
inprogressdir = "inprogress-nethackstub/"
|
2007-03-29 22:14:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# the second game
|
|
|
|
#
|
|
|
|
#
|
|
|
|
game_num = 1
|
|
|
|
|
|
|
|
game_path = "/bin/nethack"
|
|
|
|
game_name = "NetHack 3.4.3"
|
2007-04-01 12:11:38 +02:00
|
|
|
short_name = "NH343"
|
2007-03-29 22:14:55 +02:00
|
|
|
|
|
|
|
game_args = "/bin/nethack"
|
|
|
|
game_args = "-u"
|
|
|
|
game_args = "%n"
|
|
|
|
|
|
|
|
spooldir = "/var/mail/"
|
|
|
|
rc_template = "/dgl-default-rcfile"
|
|
|
|
# format where player rc files are saved.
|
|
|
|
# %r == dglroot
|
|
|
|
# %n == user name
|
|
|
|
rc_fmt = "%rrcfiles/%n.nethackrc"
|
2004-03-17 15:04:31 +01:00
|
|
|
savefilefmt = "/var/games/nethack/save/%u%n.gz"
|
2007-03-31 23:31:52 +02:00
|
|
|
inprogressdir = "inprogress-nethack/"
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# third game
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
game_num = 2
|
|
|
|
game_path = "/bin/crawl"
|
|
|
|
game_name = "Crawl Stone Soup 0.1.7"
|
2007-04-01 12:11:38 +02:00
|
|
|
short_name = "Crawl"
|
2007-03-31 23:31:52 +02:00
|
|
|
|
|
|
|
chdir = "/crawl/"
|
|
|
|
|
|
|
|
game_args = "/bin/crawl"
|
|
|
|
game_args = "-name"
|
|
|
|
game_args = "%n"
|
|
|
|
game_args = "-dir"
|
|
|
|
game_args = "/crawl/"
|
|
|
|
game_args = "-rc"
|
|
|
|
game_args = "%rrcfiles/%n.crawlrc"
|
|
|
|
game_args = "-morgue"
|
|
|
|
game_args = "/crawl/morgues/"
|
|
|
|
game_args = "-macro"
|
|
|
|
game_args = "/crawl/macros/%n.macro"
|
|
|
|
|
|
|
|
|
|
|
|
rc_template = "/dgl-default-rcfile.crawl"
|
|
|
|
rc_fmt = "%rrcfiles/%n.crawlrc"
|
|
|
|
inprogressdir = "inprogress-crawl/"
|
|
|
|
|
|
|
|
|