sudo apt-get update
sudo apt-get full-upgrade
sudo raspi-config
- Choose
2. Hostname
and enter new hostname sudo reboot
sudo raspi-config
- Choose
5. Interfacing Options
- Choose
P2 SSH
and enable it sudo reboot
passwd
- Type old password, and new password twice
*Alternative * (only works for default user pi)
sudo raspi-config
- Choose
1. Change User Password
and enter new password
sudo adduser jimmybombay
- *** Optional - Adding passwordless sudo privelages ***
sudo visudo
- Update user privelages to
# User privilege specification
root ALL=(ALL:ALL) ALL
jimmybombay ALL = NOPASSWD: ALL
- note: password can be changed later with
passwd
The RealVNC software that comes with RaspberryPi does not support OSX's built in vnc viewer, so most people use TightVNC instead. More [detailed tutorial] (https://learn.adafruit.com/adafruit-raspberry-pi-lesson-7-remote-control-with-vnc/installing-vnc) from Adafruit.
sudo apt-get update
sudo apt-get install tightvncserver
- Start the server with
vncserver :1
- Choose a password for remote access
- must be exactly 8 characters
- Choose
no
when asked about a view only password - Connect from OS X Finder > Go > Connect to server
- shortcut: Command + K
- server address is
vnc://IP_ADDRESS_HERE:5901
- You can also use host name on local network
vnc://moppi.local:5901
- Stop the server with
vncserver -kill :1
Note that you can create multiple independent screens by starting up more than one server. Server number two would be designated with :2
. This allows multiple people to access the same VNC server at once without interfering with each other.
The latest version of Raspian comes with zero-config preinstalled, but your raspberry pi still won't show up in your mac's Finder sidebar. Installing Netatalk will allow you to move files between your pi and a mac via Finder.
sudo apt-get install netatalk
sudo reboot
Your pi now shows up in Finder on macs on the same local network.
- Check the architecture of your device
uname -a
- Linux moppi 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux
- Select the verions of node you want to install from the official repository.
- Make sure to choose one with a matching architecture (
armv6l
for me) - Copy the url, for example
https://nodejs.org/dist/latest-v7.x/node-v7.10.0-linux-armv6l.tar.gz
- Make sure to choose one with a matching architecture (
- The following commands then install nodejs to
/opt
and simlink it to/usr/bin
wget https://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-armv6l.tar.gz
sudo mv node-v4.2.4-linux-armv6l.tar.gz /opt
cd /opt
sudo tar -xzf node-v4.2.4-linux-armv6l.tar.gz
sudo mv node-v4.2.4-linux-armv6l nodejs
sudo rm node-v4.2.4-linux-armv6l.tar.gz
sudo ln -s /opt/nodejs/bin/node /usr/bin/node
sudo ln -s /opt/nodejs/bin/npm /usr/bin/npm
Some hardware specific libraries need to be installed before you can perform development with bluetooth.
apt-get install build-essential libbluetooth-dev
When I installed docker it didn't immediately work, but after a reboot it worked fine.
Note also that the default hello-world
- Install docker
curl -sSL https://get.docker.com | sh
- Make docker start at launch automatically
sudo systemctl enable docker
- Test docker out with an ARM version of hello-world
sudo docker run armhf/hello-world
- Give docker sudo permissions so you don't have to type sudo every time
sudo addgroup docker
add a new group for dockersudo gpasswd -a $USER docker
to add the current user to the groupnewgrp docker
(or logout) to apply changesdocker run armhf/hello-world
to check that you can use docker without sud