This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
usbsound [2011/01/24 17:41] – created 84.231.113.95 | usbsound [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:// |
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:// | There are issues with certain USB keys (for instance Kingston 2 GB didn't work for me, http:// | ||
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 | ||
- | 2. Edit mpd.conf | + | **UPDATE: MPD has been updated to version 0.16.1 in Debian Sid repository.** Installing MPD should be as easy as running '' |
- | Copy default config / | + | Edit / |
- | + | ||
- | Create directory for MPD database: | + | |
- | mkdir ~/.mpd | + | |
- | + | ||
- | Edit / | + | |
music_directory | music_directory | ||
- | db_file | ||
audio_output { | audio_output { | ||
type " | type " | ||
Line 59: | Line 50: | ||
} | } | ||
- | 3. run ' | + | Run ''/ |
+ | |||
+ | ===== 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:// | ||
+ | |||
+ | tar zxvf mpd-0.16.1.tar.gz | ||
+ | cd mpd-0.16.1 | ||
+ | sh configure --with-tremor; | ||