start up correctly there should be an error message. Correct the problem
and try again.
-7. After a minute it should start to play something. Try scratching it (as
- root):
+7. After a short while it should start to play something. Try scratching it
+ (as root):
disorder scratch
db_input high disorder/encoding || true
db_input high disorder/port || true
db_input medium disorder/scratches || true
-db_input medium disorder/server-name || true
db_go || true
db_get disorder/roots || true
scratches="$RET"
db_get disorder/encoding || true
encoding="$RET"
-db_get disorder/server-name || true
-server_name="$RET"
db_get disorder/port || true
port="$RET"
for s in $scratches; do
echo "scratch $s" >> /etc/disorder/conf.debconf.new
done
-echo >> /etc/disorder/conf.debconf.new
-echo "# Canonical URL of web interface" >> /etc/disorder/conf.debconf.new
-echo "url http://$server_name/cgi-bin/disorder/disorder" >> /etc/disorder/conf.debconf.new
if test "$port" != none && test "$port" != ""; then
echo >> /etc/disorder/conf.debconf.new
echo "# Listen for remote clients" >> /etc/disorder/conf.debconf.new
Architecture: any
Section: sound
Priority: extra
-Depends: disorder,httpd-cgi,pwgen,sox,debconf,${shlibs:Depends}
+Depends: disorder,httpd-cgi,sox,debconf,${shlibs:Depends}
Suggests: disorder-playrtp,disobedience
Description: Play random or selected digital audio files continuously
DisOrder is a software jukebox. It can play OGG, MP3, WAV and FLAC files,
else
add_jukebox_user
fi
- if test ! -f /etc/disorder/config.private; then
- rootpw=`pwgen 16 1`
- webpw=`pwgen 16 1`
- if test -z "$rootpw" || test -z "$webpw"; then
- # We used to ignore the exit status of pwgen due to a bug in an old
- # version of Debian. That bug seems to be gone, but this check is
- # harmless and could catch future bugs.
- echo "$0: pwgen failed" 1>&2
- exit 1
- fi
- # We set the umask so that private files aren't transiently world-readable
- u=`umask`
- umask 077
-
- echo allow root "$rootpw" > /etc/disorder/config.private.new
- echo allow www-data "$webpw" >> /etc/disorder/config.private.new
- chgrp jukebox /etc/disorder/config.private.new
- chmod 640 /etc/disorder/config.private.new
- mv /etc/disorder/config.private.new /etc/disorder/config.private
-
- if test ! -f /etc/disorder/config.www-data; then
- echo password "$webpw" > /etc/disorder/config.www-data.new
- chgrp www-data /etc/disorder/config.www-data.new
- chmod 640 /etc/disorder/config.www-data.new
- mv /etc/disorder/config.www-data.new /etc/disorder/config.www-data
- fi
- umask $u
- fi
-
- if test ! -f /etc/disorder/http.users; then
- u=`umask`
- umask 077
- touch /etc/disorder/http.users
- chgrp www-data /etc/disorder/http.users
- chmod 640 /etc/disorder/http.users
- umask $u
- fi
chown jukebox:jukebox /var/lib/disorder
configure_init_d
restart_server
by spaces. Leave this blank if you don't want any scratch sounds.
All filenames should be absolute path names.
-Template: disorder/server-name
-Type: string
-Default: localhost
-Description: Web server hostname
- Enter the hostname that the web interface will appear under.
-
Template: disorder/port
Type: string
Default: none