RaspberryPi Setup
Buy a RaspberryPi 3 (Ebay affiliate link):
Raspberry Pi 3 Model B Quad Core 1.2GHz 64bit CPU 1GB RAM WiFi & Bluetooth 4.1
How to turn the unit on:
How to turn the unit off:
The unit is off when only the red PWR led on the RPi is on.
Note: Do not pull the power-connector while the unit is running.
apt-get update
apt-get upgrade
apt-get install vim
apt-get install apache2
apt-get install php5
apt-get install zip
apt-get install xrdp // remote desktop
apt-get install git-core
apt-get install arduino
apt-get install python-pip
apt-get install picocom
apt-get install tree
apt-get install python-rpi.gpio python3-rpi.gpio
Command: passwd
user: pi pswd: <your password>
Edit file:
/etc/rc.local
Add line: /var/www/bessvx/bessvx & (This is an example)
dpkg-reconfigure tzdata
sudo raspi-config
Ubuntu Mate:
sudo fdisk /dev/mmcblk0
Delete the second partition (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w). (error message will occur - ignore)
Reboot the system, then issue:
sudo resize2fs /dev/mmcblk0p2
rdesktop pi@192.168.1.55 (example)
Client:
ssh-keygen -t rsa
ssh-copy-id username@test.com
apt-get install vim
Edit /etc/default/keyboard
Change to ‘se’ (Swedish)
sudo apt-get install xrdp
sudo raspi-config
Edit file: /etc/hostname
Edit file: /etc/rc.local
sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
Type: startx
apt-get install python-pip
pip install pyserial
ino init -t blink
ino list-models
ino build -m nano328
ino upload -m nano328
Install libraries (OneWire etc) in directory: your-project/lib
Create new file: “.vimrc” in home directory (root and pi). Edit file:
:syntax on
:set number
Tips:
Copy Paste: y (copy) p(paste)
If RaspberryPi 2:
sudo apt-get update
sudo apt-get install python-rpi.gpio python3-rpi.gpio