-
Notifications
You must be signed in to change notification settings - Fork 3
System setup @ petli
- RaspberryPi B with 5.25V 2A power supply
- Cambridge Audio DacMagic (0d8c:000c C-Media Electronics, Inc. Audio Adapter)
- Samsung USB DVD writer SE-208 (04fc:05da Sunplus Technology Co., Ltd)
- Generic wifi USB dongle with external antenna (148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter)
- Plexgear 7-port USB hub with external power (to help drive the DVD) (1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub)
The DAC is connected to one of the two onboard USB ports of the RPi. The DVD and the wifi dongle are connected to the USB hub which is in turn connected to the other RPi USB port. (Having the DAC on the USB hub results in glitches in the sound, which are much more rare with less stuff in the signal path.)
The DVD isn't very good, it takes some 15 seconds for cdrdao to start ripping. A quieter, more well-behaved CD transport would be nice.
- Volumio.org Raspbian dist (beta 1)
- Kernel 3.10.25
The Volumio web interface want to administer the system, so for now I disable it all to avoid having it overwrite my own config.
Disable volumio account, change password on pi and root. Change /etc/sudoers to remove access for volumio account and require password for all accounts in sudo group.
Set up wifi, and disable eth0 to not waste boot time attempting to get a dhcp lease. /etc/network/interfaces:
auto lo
iface lo inet loopback
# auto eth0
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
wpa-ssid ABC
wpa-psk XYZ
Shutting down most services, including all the Volumio web UI ones:
sudo update-rc.d php5-fpm disable
sudo update-rc.d samba disable
sudo update-rc.d exim4 disable
sudo update-rc.d myruns disable
sudo update-rc.d nginx disable
sudo update-rc.d dbus disable
sudo update-rc.d triggerhappy disable
Re-enabling some services:
sudo apt-get install rsyslog
Ensure that the DAC is always ALSA card 0, and work around logs being spammed with "delay: estimated X actual Y" messages. /etc/modprobe.d/usb-dac.conf:
options snd slots=snd-usb-audio
options snd-usb-audio nrpacks=1
Force performance CPU scaling (but no overclocking yet), in /etc/rc.local:
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
/etc/fstab (reduced ramdisk size):
/dev/mmcblk0p3 / ext4 noatime,nouser_xattr,errors=remount-ro 0 1
/dev/mmcblk0p1 /boot vfat utf8 0 0
Ramdisk /run/shm tmpfs defaults,size=128M,noexec,nodev,nosuid 0 0
turf.haga:/data/music/coddb /mnt/turf/coddb nfs noatime,rw,nodev,nosuid 0 0
turf.haga:/home /mnt/turf/home nfs noatime,rw,nodev,nosuid 0 0
/etc/crontab: change hourly jobs into daily jobs.
After following the steps in INSTALL.md.
Start codplayer in /etc/rc.local (TODO: move into proper RC script):
mkdir -p /var/run/codplayer
chown pi.pi /var/run/codplayer
su -c codplayerd pi
sudo -u pi /usr/local/bin/trigger_rpi_cdrom_udev.sh >/var/run/codplayer/trigger.log 2>&1 &