Setup some stuff at start
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-pip
sudo apt-get install mc
Show raspbery pi configuration window:
sudo raspi-config
RDP
apt-get install xrdp
AUDIO
sudo apt-get install alsa-utils
sudo apt-get install mpg123
sudo modprobe snd_bcm2835
Setup audio output device
Can be configured by raspi-conf
HDMI output:
sudo modprobe snd_bcm2835
sudo amixer cset numid=3 2
Audio Jack output:
sudo modprobe snd_bcm2835
sudo amixer cset numid=3 1
Autodetect output:
sudo modprobe snd_bcm2835
sudo amixer cset numid=3 0
Audio for 3.5 jack pinout: http://www.raspberrypi-spy.co.uk/2014/07/raspberry-pi-model-b-3-5mm-audiovideo-jack/ sudo amixer cset numid=3 1
GPIO
http://wiringpi.com/download-and-install/
git clone git://git.drogon.net/wiringPi
./build
Led Blink:
gpio -g mode 17 out
gpio -g write 17 1
gpio -g write 17 0
Install Node JS
http://node-arm.herokuapp.com/
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
# Check installation
node -v
Use rpi-gpio
package to access gpio from node. https://github.com/rakeshpai/pi-gpio
npm install rpi-gpio
FTP
sudo apt-get install proftpd
Run proftpd in standalone mode only.
Fast ftp for casual access
pip install pyftpdlib
python -m pyftpdlib