2014年1月8日 星期三

build Debian image for Raspberry Pi



References :
build your own Raspberry Pi SD card (original post from http://blog.kmp.or.at/2012/05/build-your-own-raspberry-pi-image/)

Pd-extended on Raspberry Pi

# vi /etc/apt/sources.list
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi
$ wget https://puredata.info/downloads/pd-extended-0-43-3-on-raspberry-pi-raspbian-wheezy-armhf/releases/1.0/Pd-0.43.3-extended-20121004.deb
$ sudo dpkg -i Pd-0.43.3-extended-20121004.deb

$ sudo apt-get update
$ sudo apt-get -f install



References :
Pd-extended 0.43.3 on Raspberry Pi (Raspbian Wheezy) - armhf — PD Community Site

Linux backup mbr

Backup MBR and Extended Partitions :
# dd if=/dev/sdc of=/tmp/backup-sdc.mbr bs=512 count=1

# sfdisk -d /dev/sdc > /tmp/backup-sdc.sfdisk

Restore MBR and Extended Partitions :
# dd if=backup-sdc.mbr of=/dev/sdc

# sfdisk /dev/sdc < backup-sdc.sfdisk 




References :
UNIX / Linux: Copy Master Boot Record (MBR)

2014年1月3日 星期五

puredata ALSA output error (snd_pcm_open): No such file or directory

$ pd -nogui -noadc -alsa testPatch.pd

ALSA output error (snd_pcm_open): No such file or directory


// list sound card device
$ aplay -l

// try the correct sound device
$ pd -audioindev 0 -audiooutdev 0
Media -> Test Audio and MIDI...



// set correct audio device
$ pd
Media -> Audio Settings... -> select Input and Output device





References :
Running Puredata on the Raspberry Pi | Limina.Log
Raspberry Pi • View topic - alsa audio-in with Pure Data and USB dongle