If you get an error like “failed to open vchiq instance” you’ll need to do as root:
echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' > /etc/udev/rules.d/10-vchiq-permissions.rules
usermod -a -G video [your_username]
- Or as one time temporary solution (until reboot):
chmod a+rw /dev/vchiq
sudo apt-get update and then sudo apt-get install python-rpi.gpio
piCorePlayer是树莓派平台上,用tinycore结合squeezelite实现网路播放终端功能。它可以接USB音频解码器,也可以通过I2S接DAC板。这个与前面介绍的Volumio和Runeaudio不同(注×),它仅仅是播放终端,类似新出auralic aries,这个加个XMOS USB audio接口和WIFI就是简易版本的auralic aries,只不过没显示而已,使用成熟的罗技软件可能比现阶段的auralic aries还方便稳定。 Continue reading 用树莓派Raspberry pi+piCorePlayer做HiFi DSD播放端 →
For some of my projects I write a simple service in Python and need it to start running in the background when the Raspberry Pi boots. Different Linux distributions use different ways of starting and stopping services (some now use Upstart, some systemd). I am using the “Wheezy” Debian distribution on my Raspberry Pi, and in this case the proper way to do this is using an “init script”. These are stored in the /etc/init.d folder. In there you can find scripts that for instance, start the networking system or a print server. Debian Wheezy uses the old Sys V init system which means that these scripts are run according to symbolic links in the /etc/rc.x directories. The Debian documentationexplains this. Continue reading Getting a Python script to run in the background (as a service) on boot →
–Love science, Enjoy life.