For those of you out there that want to run a personal MP3 Jukebox streaming server
1. Create a directory in /home
Code:
mkdir /home/mp3
2. Go into the directory and
Code:
wget http://edna.sourceforge.net/edna-0.5.tar.gz
3. Extract the downloaded file
Code:
tar -zxvf edna-0.5.tar.gz
4. Go into the fresh directory and edit the edna.conf
Code:
#
# edna.conf -- configuration file for edna.py
#
[server]
port = your.port.here
### DOCCO
# ### change these if the defaults don't work...
# template-dir = templates
# template = default.ezt
# If you want id3 tags, use default_complex.ezt
# template = default_complex.ezt
# Enable costly file information if needed (default disabled)
# fileinfo=1
### DOCCO
# binding-hostname = dummy-host.example.com
# binding-hostname = 123.123.123.123
# log can specify "-" for stdout, or a file name. omitting this line
# produces no log.
log = /var/log/edna.log
[acl]
### DOCCO
#allow = host1, host2, host3/24, 123.123.123.123, 2.2.2.2/11
#auth = aUser1:aPass1, aUser2:aPass2
#Require password for directories < level ..
# Work around for buggy players that can't send authentication information
# 0 Only check '/'
# 1 Check all levels (default)
# auth_level=0
[sources]
#
# List each source directory (top of the tree). The lines should be of the
# form:
# dirNNN = DIRECTORY = DISPLAY_NAME
#
# WARNING: the DISPLAY-NAME part may *not* have a slash ("/") in it!
# WARNING: each DIRECTORY must exist when edna is started
#
# The NNN part will determine the sort order in the top-level listing.
#
# Windows example:
#dir1 = f:\mp3\transfer = MP3s
#dir2 = f:\bobsmp3 = Bob
#dir3 = g:\MP3's = Bob CD
# Unix example:
#dir1 = /mnt/cdrom = MP3 CDROM
dir1 = /home/mp3/all-albums = Jukebox
[extra]
# Extra options
#
# You don't need to change this, but maybe you need more output or want to enable some special features
# Set this to 1 to get more output
debug_level = 0
# Mark all files as new if they are newer than days_new
days_new = 30
5. Create your jukebox dir
Code:
mkdir /home/mp3/all-albums
6. Change back to main /home dir and issue the command
Code:
chown -R nobody:nobody /home/mp3
7. Edit the /etc/rc.local file
Code:
vi /etc/rc.local
8. Add
Code:
# Starting Edna Jukebox Server
echo "Starting Edna Jukebox Server"
cd /home/mp3/edna ; sudo -u nobody python edna.py &
9. Start your server
Code:
cd /home/mp3/edna ; sudo - u nobody python edna.py &
Remember when you transfer your favorite MP3 files to your /home/mp3 directory ensure you go back and chown them to nobody:nobody (step 6)...this way you arent running your edna server as root
Let me know what ya think!?
Brian
AwPhuch
--------------------
Edited by AwPhuch (12/13/05 11:46 PM)