RoaringBox/Konfiguration: Unterschied zwischen den Versionen

Aus UUGRN
(→‎/etc/default/roaraudio: aktuelle config)
(→‎Gemeinsam: +inittab)
 
(8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
 
== Gemeinsam ==
 
== Gemeinsam ==
 
=== /etc/mini-httpd.conf ===
 
=== /etc/mini-httpd.conf ===
=== /etc/default/mini-httpd ===
+
<pre>
 +
# Example config for mini_httpd.
 +
# Author: Marvin Stark <marv@der-marv.de>
 +
 
 +
# Uncomment this line for turning on ssl support.
 +
#ssl
 +
 
 +
# On which host mini_httpd should bind?
 +
#host=localhost
 +
 
 +
# On which port mini_httpd should listen?
 +
port=80
 +
 
 +
# Which user mini_httpd should use?
 +
user=romie
 +
 
 +
# Run in chroot mode?
 +
#chroot # yes
 +
nochroot # no
 +
 
 +
# Working directory of mini_httpd.
 +
#dir=<work_dir>
 +
 
 +
# We are the web files stored?
 +
data_dir=/var/lib/romie/htdocs
 +
 
 +
# Which certificate to use?
 +
#certfile=<certfile>
 +
 
 +
# Which logfile to use?
 +
#logfile=/var/log/mini-httpd.log
 +
 
 +
# Which pidfile to use?
 +
pidfile=/var/run/mini-httpd.pid
 +
 
 +
# Which charset to use?
 +
charset=iso-8859-1
 +
 
 +
# CGI Pattern
 +
cgipat=**.cgi
 +
</pre>
 +
 
 
=== /etc/default/roaraudio ===
 
=== /etc/default/roaraudio ===
 
<pre>
 
<pre>
Zeile 107: Zeile 148:
  
 
=== /etc/default/rpld ===
 
=== /etc/default/rpld ===
 +
<pre>
 +
#RoarAudio PlayList Daemon (RPLD) Configuration
 +
 +
# --- [ General Options ]---
 +
 +
# Start rpld? YES or NO:
 +
RPLD='YES'
 +
 +
# Additionl Options to pass to rpld, should normally be empty
 +
RPLD_OPTS=''
 +
 +
# PIDFile for rpld:
 +
# Default is enabled at /var/run/rpld.pid
 +
# Set to empty string to disable.
 +
# PIDFILE='/var/run/rpld.pid'
 +
 +
# Server address of roard:
 +
# Default: libroar buildin server list.
 +
# ROARAUDIO_SERVER='server.local'
 +
 +
# --- [ Network ] ---
 +
 +
# Listening socket's address family:
 +
# UNIX  - Local connections only
 +
# TCP    - Connections via TCP/IP
 +
# DECnet - Connections via DECnet
 +
RPLD_AF='TCP'
 +
 +
# Socket to listen on (UNIX):
 +
#RPLD_SOCKET='/tmp/.rpld'
 +
 +
# Port to listen on (TCP):
 +
# RPLD_PORT=24148
 +
 +
# Host/Nodename to listen on (TCP):
 +
# use a value of '0.0.0.0' to listen publicly for TCP.
 +
RPLD_HOST='0.0.0.0'
 +
 +
# --- [ Storing and Restoring ]---
 +
 +
# Where to store to?:
 +
RPLD_STORE_LOCATION='/var/lib/roarplaylistd/'
 +
 +
# ReStore on startup:
 +
RPLD_RESTORE='true'
 +
 +
# Store on exit:
 +
RPLD_STORE='true'
 +
 +
# --- [ Playback ] ---
 +
 +
# Should we start up in playing state?
 +
RPLD_PLAY='true'
 +
 +
# --- [ Permitions ] ---
 +
 +
# User/Group to run rpld as:
 +
RPLD_USER='roard'
 +
#RPLD_GROUP='audio'
 +
 +
# User and Group to set on socket:
 +
# Note: Users in the same group my access rpld
 +
# RPLD_SOCK_USER='roard'
 +
# RPLD_SOCK_GROUP='audio'
 +
 +
#ll
 +
</pre>
 +
 
=== /etc/ld.so.conf.d/roaraudio.conf ===
 
=== /etc/ld.so.conf.d/roaraudio.conf ===
 +
<pre>
 +
/usr/local/lib/
 +
</pre>
 +
 
=== /etc/romie.conf ===
 
=== /etc/romie.conf ===
 +
<pre>
 +
#romie.conf:
 +
 +
# ---[ Network ]---
 +
# Address of RPLD Socket:
 +
# Default: /tmp/.rpld
 +
rpld.sockaddr = localhost
 +
 +
# ---[ Style ]---
 +
# Default style:
 +
# Default: default
 +
template.vars.style = blue
 +
 +
#ll
 +
</pre>
 +
 +
=== /etc/libao.conf ===
 +
<pre>
 +
default_driver=roar
 +
</pre>
 +
 +
=== /etc/inittab ===
 +
<pre>
 +
# /etc/inittab: init(8) configuration.
 +
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
 +
 +
# The default runlevel.
 +
id:2:initdefault:
 +
 +
# Boot-time system configuration/initialization script.
 +
# This is run first except when booting in emergency (-b) mode.
 +
si::sysinit:/etc/init.d/rcS
 +
 +
# What to do in single-user mode.
 +
~~:S:wait:/sbin/sulogin
 +
 +
# /etc/init.d executes the S and K scripts upon change
 +
# of runlevel.
 +
#
 +
# Runlevel 0 is halt.
 +
# Runlevel 1 is single-user.
 +
# Runlevels 2-5 are multi-user.
 +
# Runlevel 6 is reboot.
 +
 +
l0:0:wait:/etc/init.d/rc 0
 +
l1:1:wait:/etc/init.d/rc 1
 +
l2:2:wait:/etc/init.d/rc 2
 +
l3:3:wait:/etc/init.d/rc 3
 +
l4:4:wait:/etc/init.d/rc 4
 +
l5:5:wait:/etc/init.d/rc 5
 +
l6:6:wait:/etc/init.d/rc 6
 +
# Normally not reached, but fallthrough in case of emergency.
 +
z6:6:respawn:/sbin/sulogin
 +
 +
# What to do when CTRL-ALT-DEL is pressed.
 +
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
 +
 +
# Action on special keypress (ALT-UpArrow).
 +
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."
 +
 +
# What to do when the power fails/returns.
 +
pf::powerwait:/etc/init.d/powerfail start
 +
pn::powerfailnow:/etc/init.d/powerfail now
 +
po::powerokwait:/etc/init.d/powerfail stop
 +
 +
# /sbin/getty invocations for the runlevels.
 +
#
 +
# The "id" field MUST be the same as the last
 +
# characters of the device (after "tty").
 +
#
 +
# Format:
 +
#  <id>:<runlevels>:<action>:<process>
 +
#
 +
# Note that on most Debian systems tty7 is used by the X Window System,
 +
# so if you want to add more getty's go ahead but skip tty7 if you run X.
 +
#
 +
1:2345:respawn:/sbin/getty 38400 tty1
 +
2:23:respawn:/sbin/getty 38400 tty2
 +
3:23:respawn:/sbin/getty 38400 tty3
 +
#4:23:respawn:/sbin/getty 38400 tty4
 +
#5:23:respawn:/sbin/getty 38400 tty5
 +
#6:23:respawn:/sbin/getty 38400 tty6
 +
 +
# Example how to put a getty on a serial line (for a terminal)
 +
#
 +
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
 +
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
 +
 +
# Example how to put a getty on a modem line.
 +
#
 +
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
 +
 +
</pre>
  
 
== RoaringBox 128/* ==
 
== RoaringBox 128/* ==
 +
=== /etc/default/mini-httpd ===
 +
<pre>
 +
# Defaults for mini_httpd initscript
 +
# Author: Marvin Stark <marv@der-marv.de>
 +
 +
# Start daemon?
 +
START=0
 +
 +
# Additional options that are passed to the Daemon.
 +
DAEMON_OPTS="-C /etc/mini-httpd.conf"
 +
</pre>
  
 
== RoaringBox 512/* ==
 
== RoaringBox 512/* ==
 +
=== /etc/default/mini-httpd ===
 +
<pre>
 +
# Defaults for mini_httpd initscript
 +
# Author: Marvin Stark <marv@der-marv.de>
 +
 +
# Start daemon?
 +
# 0 = no
 +
# 1 = yes
 +
START=1
 +
 +
# Additional options that are passed to the Daemon.
 +
DAEMON_OPTS="-C /etc/mini-httpd.conf"
 +
</pre>
 +
 +
=== /etc/inetd.conf ===
 +
<pre>
 +
# /etc/inetd.conf:  see inetd(8) for further informations.
 +
#
 +
# Internet superserver configuration database
 +
#
 +
#
 +
# Lines starting with "#:LABEL:" or "#<off>#" should not
 +
# be changed unless you know what you are doing!
 +
#
 +
# If you want to disable an entry so it isn't touched during
 +
# package updates just comment it out with a single '#' character.
 +
#
 +
# Packages should modify this file by using update-inetd(8)
 +
#
 +
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
 +
#
 +
#:INTERNAL: Internal services
 +
#discard        stream  tcp    nowait  root    internal
 +
#discard        dgram  udp    wait    root    internal
 +
#daytime        stream  tcp    nowait  root    internal
 +
#time    stream        tcp    nowait  root    internal
 +
 +
#:STANDARD: These are standard services.
 +
 +
#:BSD: Shell, login, exec and talk are BSD protocols.
 +
 +
#:MAIL: Mail, news and uucp services.
 +
 +
#:INFO: Info services
 +
 +
#:BOOT: TFTP service is provided primarily for booting.  Most sites
 +
#      run this only on machines acting as "boot servers."
 +
 +
#:RPC: RPC based services
 +
 +
#:HAM-RADIO: amateur-radio services
 +
 +
#:OTHER: Other services
 +
8000 stream tcp nowait roard /usr/bin/roarmonhttp roarmonhttp --inetd
 +
</pre>
  
 
== Siehe Auch ==
 
== Siehe Auch ==

Aktuelle Version vom 17. Januar 2010, 02:39 Uhr

RoaringBox verwendet folgende Konfigurationen:

Gemeinsam[Bearbeiten]

/etc/mini-httpd.conf[Bearbeiten]

# Example config for mini_httpd.
# Author: Marvin Stark <marv@der-marv.de>

# Uncomment this line for turning on ssl support.
#ssl

# On which host mini_httpd should bind?
#host=localhost

# On which port mini_httpd should listen?
port=80

# Which user mini_httpd should use?
user=romie

# Run in chroot mode?
#chroot # yes
nochroot # no

# Working directory of mini_httpd.
#dir=<work_dir>

# We are the web files stored?
data_dir=/var/lib/romie/htdocs

# Which certificate to use?
#certfile=<certfile>

# Which logfile to use?
#logfile=/var/log/mini-httpd.log

# Which pidfile to use?
pidfile=/var/run/mini-httpd.pid

# Which charset to use?
charset=iso-8859-1

# CGI Pattern
cgipat=**.cgi

/etc/default/roaraudio[Bearbeiten]

#RoarAudio Configuration

# --- [ General Options ]---

# Start roard? YES or NO:
ROARD='YES'

# Additionl Options to pass to roard, should normally be empty
ROARD_OPTS='--new-sock -u -b /tmp/roar'

# Should we run roard in realtime mode:
# NO     - Don't run in realtime mode
# YES    - Run in realtime mode
# DOUBLE - Try to run in a 'very realtime mode'
ROARD_REALTIME='YES'

# PIDFile for roard:
# Default is enabled at /var/run/roard.pid
# Set to empty string to disable.
PIDFILE='/var/run/roard.pid'

# Location of roard:
# This is a human readable location of the roard used
# for Zero Conf locating of a RoarAudio server on the
# Network. To use Zero Conf enable SLP (see below).
#ROARD_LOCATION=''

# Default location for roard:
# Set this to a remote address and disable local roard
# to run a network only setup.
# ROARAUDIO_DEFAULT_SOCKET='server.local'

# --- [ Network ] ---

# Listening socket's address family:
# UNIX   - Local connections only
# TCP    - Connections via TCP/IP
# DECnet - Connections via DECnet
ROARD_AF='TCP'

# Socket to listen on (UNIX):
#ROARD_SOCKET='/tmp/roar'

# Port to listen on (TCP):
# ROARD_PORT=16002

# Host/Nodename to listen on (TCP, DECnet):
# use a value of '0.0.0.0' to listen publicly for TCP.
ROARD_HOST='0.0.0.0'

# Object to listen on (DECnet):
# ROARD_OBJECT='roar'

# Annouce us via OpenSLP:
# Set to YES or NO.
# In case of YES roarclients can autolocat this server
# on the network.
ROARD_SLP='NO'

# --- [ EsounD Emulation ] ---

# Listen socket for server side EsounD emulation::
# NONE   - Disable EsounD emulation
# UNIX   - Local connections only
# TCP    - Connections via TCP/IP
ROARD_EMUL_ESD_AF='TCP'

# --- [ Audio and Devices ] ---

# Samplerate, number of channels and bits per sample:
# ROARD_RATE=44100
# ROARD_CHANNELS=2
# ROARD_BITS=16

# Sound Driver and Device:
# To get a list run: roard --list-driver
# Don't forget to include 'sync' in the options unless
# you REALLY, REALLY know what you are doing
# ROARD_DRIVER='oss'
# ROARD_DEVICE='/dev/dsp'
# ROARD_DRIVER_OPTIONS='sync'

# --- [ Permitions ] ---

# User and Group to run roard with:
# Note: Users in the same group my access roard
#       if runnung in UNIX mode.
ROARD_USER='roard'
ROARD_GROUP='audio'

# --- [ Security ] ---

# Directory to chroot to:
# Use empty value to disable.
# Directory may/should be completly empty.
ROARD_CHROOT='/var/empty'

#ll

/etc/default/rpld[Bearbeiten]

#RoarAudio PlayList Daemon (RPLD) Configuration

# --- [ General Options ]---

# Start rpld? YES or NO:
RPLD='YES'

# Additionl Options to pass to rpld, should normally be empty
RPLD_OPTS=''

# PIDFile for rpld:
# Default is enabled at /var/run/rpld.pid
# Set to empty string to disable.
# PIDFILE='/var/run/rpld.pid'

# Server address of roard:
# Default: libroar buildin server list.
# ROARAUDIO_SERVER='server.local'

# --- [ Network ] ---

# Listening socket's address family:
# UNIX   - Local connections only
# TCP    - Connections via TCP/IP
# DECnet - Connections via DECnet
RPLD_AF='TCP'

# Socket to listen on (UNIX):
#RPLD_SOCKET='/tmp/.rpld'

# Port to listen on (TCP):
# RPLD_PORT=24148

# Host/Nodename to listen on (TCP):
# use a value of '0.0.0.0' to listen publicly for TCP.
RPLD_HOST='0.0.0.0'

# --- [ Storing and Restoring ]---

# Where to store to?:
RPLD_STORE_LOCATION='/var/lib/roarplaylistd/'

# ReStore on startup:
RPLD_RESTORE='true'

# Store on exit:
RPLD_STORE='true'

# --- [ Playback ] ---

# Should we start up in playing state?
RPLD_PLAY='true'

# --- [ Permitions ] ---

# User/Group to run rpld as:
RPLD_USER='roard'
#RPLD_GROUP='audio'

# User and Group to set on socket:
# Note: Users in the same group my access rpld
# RPLD_SOCK_USER='roard'
# RPLD_SOCK_GROUP='audio'

#ll

/etc/ld.so.conf.d/roaraudio.conf[Bearbeiten]

/usr/local/lib/

/etc/romie.conf[Bearbeiten]

#romie.conf:

# ---[ Network ]---
# Address of RPLD Socket:
# Default: /tmp/.rpld
rpld.sockaddr = localhost

# ---[ Style ]---
# Default style:
# Default: default
template.vars.style = blue

#ll

/etc/libao.conf[Bearbeiten]

default_driver=roar

/etc/inittab[Bearbeiten]

# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

RoaringBox 128/*[Bearbeiten]

/etc/default/mini-httpd[Bearbeiten]

# Defaults for mini_httpd initscript
# Author: Marvin Stark <marv@der-marv.de>

# Start daemon?
START=0

# Additional options that are passed to the Daemon.
DAEMON_OPTS="-C /etc/mini-httpd.conf"

RoaringBox 512/*[Bearbeiten]

/etc/default/mini-httpd[Bearbeiten]

# Defaults for mini_httpd initscript
# Author: Marvin Stark <marv@der-marv.de>

# Start daemon?
# 0 = no
# 1 = yes
START=1

# Additional options that are passed to the Daemon.
DAEMON_OPTS="-C /etc/mini-httpd.conf"

/etc/inetd.conf[Bearbeiten]

# /etc/inetd.conf:  see inetd(8) for further informations.
#
# Internet superserver configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#discard        stream  tcp     nowait  root    internal
#discard        dgram   udp     wait    root    internal
#daytime        stream  tcp     nowait  root    internal
#time     stream        tcp     nowait  root    internal

#:STANDARD: These are standard services.

#:BSD: Shell, login, exec and talk are BSD protocols.

#:MAIL: Mail, news and uucp services.

#:INFO: Info services

#:BOOT: TFTP service is provided primarily for booting.  Most sites
#       run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services
8000 stream tcp nowait roard /usr/bin/roarmonhttp roarmonhttp --inetd

Siehe Auch[Bearbeiten]

UUGRN-Wiki verbessern („Stub”)

Dieser Artikel ist leider sehr kurz. Also: Sei mutig und mache aus ihm bitte einen guten Artikel, wenn du mehr zum Thema „RoaringBox/Konfiguration” weißt.