# 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. # Global config variables: # Max amount of registered users to allow. Has no effect if dgl was # compiled with SQLite maxusers = 64000 # Allow registration of new nicks? (yes or no) allow_new_nicks = yes # 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 # Set the default watching-screen sorting mode. Can be one of # "username", "game", "windowsize", "starttime" or "idletime". # "username" is the default. #sortmode = "username" # Set the columns displayed in the watching-screen. Each column definition # must have four elements as: # [ "", "", , "" ] # # may be "unsorted", "username", "game", "windowsize", "starttime", # "duration", "idletime", or (if shmem is enabled) "watchers". # # watch_columns = [ ["", "", 1, "%s)"], # ["User", "username", 4, "%-15s"], # ["Game", "game", 21, "%-11s"], # ["Term", "windowsize", 34, "%s"], # ["Idle", "idletime", 43, "%-10s"], # ["Watchers", "watchers", 55, "%5s"], # ["Started", "starttime", 65, "%s"] # ] # Path to a prepared chroot jail. chroot_path = "/opt/nethack/nethack.alt.org/" # From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc dglroot = "/dgldir/" # Strings to be replaced in every banner # you can have either direct string replacements, like # "$FOO" = "BAR", or you can get the server time with # "$FOO" = timeformat("%F %T") # for the timeformat parameter string format, see man strftime bannervars = [ "$MOTDTIME" = "2011.10.08", "$SERVERID" = "$ATTR(14)nethack.alt.org - http://nethack.alt.org/$ATTR()", "$DATETIME" = timeformat("%F %T") ] # From inside the jail, location of a banner file, which is # shown in submenus that cannot be defined separately. # Some string substitution is done for every banner file contents: # - bannervars from above # - $VERSION replaced with "dgamelaunch v" + dgl version number. # - $USERNAME replaced with logged-in user's name, or with "[Anonymous]" # - $INCLUDE(filename) the named file will be inserted here. banner = "/dgl-banner" # 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. # shed_user: username to shed privileges to #shed_user = "games" # shed_group: group name to shed privileges to #shed_group = "games" # Preferably, you may use the respective gids/uids. This is for Debian: shed_uid = 5 shed_gid = 60 # Locale. Leaving this out, dgamelaunch will not explicitly set locale. locale = "en_US.UTF-8" # Default TERM, used if the user's $TERM is unknown. # If undefined, dgamelaunch will just terminate in that case. default_term = "xterm" # Should dgl send select-UTF8-charset escape code? (that is: ESC % G) # default is no. #utf8esc = yes # Should dgl allow XON/XOFF? Default is "yes", meaning "don't touch it". # "no" disables XON/XOFF #flowcontrol = no # Maximum time in seconds user can idle in the dgamelaunch menus # before dgl exits. Default value is 0, which disables the idling timer. # Does not apply to external programs or config editors. # For setting game idle time, use max_idle_time in the game DEFINE. # menu_max_idle_time = 1024 # Passwd refers to the file that stores the user database. # The default passwd file is "/dgldir/dgl-login" for flat-text database, and # for sqlite, whatever value was defined for the sqlite database at compile # time. This is also used for the shared memory key, if shmem is enabled at # compile time. #passwd = "/dgldir/dgl-login" # Lockfile is used only when dgl was compiled without sqlite. #lockfile = "/dgldir/dgl-lock" # # define some commands that are run when something happens. format is # commands [