Raspberry Pi
SETUP AND ACCESS:
- Setup WIFI
- SSH
- VNC:
- Currently Running stuff:
startx
x11vnc -display :0 -q
- New Desktop:
vncserver :1
- Currently Running stuff:
- Video Out:
GPIO:
- GPIO Setup:
- WiringPi:
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
- Python Wrappers:
sudo apt-get install python-dev
sudo apt-get install python-setuptools
git clone https://github.com/Gadgetoid/WiringPi2-Python.git
cd WiringPi2-Python
sudo python setup.py install
- ADC
- setup:
- wire to pin and ground
- Setup global mode:
GPIO.setmode(GPIO.BCM)
- Setup Specific pin:
GPIO.setup(14, GPIO.IN, GPIO.PUD_UP)
- WiringPi:
Screen Blanking:
sudo nano /etc/kbd/config
- change:
BLANK_TIME=30
- to:
BLANK_TIME=0
- change:
sudo nano /etc/X11/xinit/xinitrc
- after first line, add:
xset s off
xset -dpms
xset s noblank
- after first line, add:
- `sudo nano /etc/lightdm/lightdm.conf
[SeatDefaults]
xserver-command=X -s 0 -dpms
- `sudo nano /etc/xdg/lxsession/LXDE/autostart
# @xscreensaver -no-splash
<-make it commmented out- add:
@xset s off
@xset -dpms
@xset s noblank
- add:
Starting stuff at startup:
- http://www.instructables.com/id/Raspberry-Pi-Launch-Python-script-on-startup/?ALLSTEPS
-
http://www.raspberrypi.org/learning/tweeting-babbage/worksheet2/
- Post XWindows Start:
- EDIT:
/etc/xdg/lxsession/LXDE-pi/autostart
- at end add:
@/usr/bin/python /home/pi/...<file.py>
- at end add:
- To run as superuser:
- EDIT:
/etc/xdg/lxsession/LXDE-pi/autostart
- at end add:
@/usr/bin/sudo /home/pi/...<file.py>
- at end add:
- EDIT:
<file.py>
- first line add:
#!/usr/bin/env python
- first line add:
- In terminal:
sudo chmod +x <file.py>
- EDIT:
- EDIT:
Making images of SD card
Here is a great guide to pulling the image and shrinking it