User Tools

Site Tools


usbsound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
usbsound [2011/01/24 17:41] – created 84.231.113.95usbsound [2011/02/05 16:05] (current) 80.186.36.216
Line 3: Line 3:
 Based on [[usbboot|Boot a LaCie NAS (Kirkwood based) from an USB key]] this document intends to provide further information on how to use USB sound card and Music Player Daemon on LaCie Network Space 2. The setup works reasonably well using a cheap 4-port USB hub, but beware that booting from USB fails if USB sound card is turned on during the bootup. The sound card used in this setup was Cambridge Audio DacMagic but any other USB card will do. Based on [[usbboot|Boot a LaCie NAS (Kirkwood based) from an USB key]] this document intends to provide further information on how to use USB sound card and Music Player Daemon on LaCie Network Space 2. The setup works reasonably well using a cheap 4-port USB hub, but beware that booting from USB fails if USB sound card is turned on during the bootup. The sound card used in this setup was Cambridge Audio DacMagic but any other USB card will do.
 ===== Preparing USB key and booting ===== ===== Preparing USB key and booting =====
-1. Setup USB key with raw image+1. Setup USB key with raw image ftp://ftp.lacie-nas.org/images/usb_boot_kw_sid_arm-usbsound.img.gz
         sudo chmod 666 /dev/sdX         sudo chmod 666 /dev/sdX
         zcat usb_boot_kw_sid_arm-usbsound.img.gz > /dev/sdX         zcat usb_boot_kw_sid_arm-usbsound.img.gz > /dev/sdX
Line 15: Line 15:
  
 4. Boot from USB key following steps in [[usbboot|Boot a LaCie NAS (Kirkwood based) from an USB key]] 4. Boot from USB key following steps in [[usbboot|Boot a LaCie NAS (Kirkwood based) from an USB key]]
 +
 ===== Troubleshooting ===== ===== Troubleshooting =====
 There are issues with certain USB keys (for instance Kingston 2 GB didn't work for me, http://3ecomputer.com/shop/images/dt2.jpg), so if you don't succeed first, try another USB key.  There are issues with certain USB keys (for instance Kingston 2 GB didn't work for me, http://3ecomputer.com/shop/images/dt2.jpg), so if you don't succeed first, try another USB key. 
Line 35: Line 36:
  
 ===== Installing and configuring Music Player Daemon ===== ===== Installing and configuring Music Player Daemon =====
-1. Download and install MPD from pre-built .deb package [linkki] 
-        wget xx 
-        dpkg -i xx 
-        apt-get -f install 
  
-2Edit mpd.conf+**UPDATE: MPD has been updated to version 0.16.1 in Debian Sid repository.** Installing MPD should be as easy as running ''apt-get install mpd''.
  
-Copy default config /usr/share/doc/mpd/mpdconf.example.gz to /etc/mpd.conf +Edit /etc/mpd.conf and make the following changes:
- +
-Create directory for MPD database: +
-        mkdir ~/.mpd +
- +
-Edit /etc/mpd.config and make the following changes:+
  
         music_directory         "/path/to/your/music"         music_directory         "/path/to/your/music"
-        db_file                 "~/.mpd/database" 
         audio_output {         audio_output {
                 type "alsa"                 type "alsa"
Line 59: Line 50:
         }         }
  
-3. run 'mpd'+Run ''/etc/init.d/mpd restart'
 + 
 +===== Compiling Music Player Daemon from sources (optional) ===== 
 +1. Install needed packages (you can leave some out if you don't for instance need MPC support): 
 + 
 + apt-get install gcc make libglib2.0-dev libasound2-dev libcue-dev libcurl4-openssl-dev libflac-dev libogg-dev  
 + libshout3-dev libmpg123-dev libmad0-dev libid3tag0-dev libmpcdec-dev libfaad-dev libvorbisidec-dev libmodplug-dev  
 + libsndfile1-dev libaudiofile-dev libwavpack-dev 
 + 
 +2. Download the latest MPD sources from http://sourceforge.net/projects/musicpd/files/mpd/0.16.1/ and compile with: 
 + 
 + tar zxvf mpd-0.16.1.tar.gz 
 + cd mpd-0.16.1 
 + sh configure --with-tremor; make; make install
  
usbsound.1295887312.txt.gz · Last modified: 2011/01/24 17:41 by 84.231.113.95