Adding more changes

This commit is contained in:
Alex Berry 2019-11-22 22:37:27 +00:00
parent e924398710
commit 2fbbc0c5cb

256
README.md
View File

@ -1,133 +1,123 @@
# Step by step setup guide # Step by step setup guide for pi zero w & uv4l
# Image # Image
Download the last stretch image from here: Download the last stretch image from here:
``` ```
http://ftp.jaist.ac.jp/pub/raspberrypi/raspbian_lite/images/raspbian_lite-2019-04-09/2019-04-08-raspbian-stretch-lite.zip http://ftp.jaist.ac.jp/pub/raspberrypi/raspbian_lite/images/raspbian_lite-2019-04-09/2019-04-08-raspbian-stretch-lite.zip
``` ```
And install it on your pi with a program like [Etcher](https://www.balena.io/etcher/) And install it on your pi with a program like [Etcher](https://www.balena.io/etcher/)
Once it's flashed, open the partition that appears and create two new files: # Networking & SSH
* ssh (blank) Once it's flashed, open the partition that appears and create two new files:
* wpa_supplicant.conf
* ssh (blank)
The file _ssh_ can be blank, but the contents of wpa_supplicant.conf should look as follows: * wpa_supplicant.conf
``` The file _ssh_ can be blank, but the contents of wpa_supplicant.conf should look as follows:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev ```
update_config=1 country=UK
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={ update_config=1
ssid="WIFI_SSID"
scan_ssid=1 network={
psk="WIFI_PASSWORD" ssid="WIFI_SSID"
key_mgmt=WPA-PSK scan_ssid=1
} psk="WIFI_PASSWORD"
``` key_mgmt=WPA-PSK
}
# Change the password ```
Just do eet:
# Change the password
```bash Just do eet:
pi@raspberrypi:~ passwd
``` ```bash
pi@raspberrypi:~ passwd
# raspi-config ```
First, set up the camera, the RAM split and expand the disk with the rpi-config command: # raspi-config
```bash First, set up the camera, the RAM split and expand the disk with the rpi-config command:
pi@raspberrypi:~ $ sudo raspi-config
``` ```bash
pi@raspberrypi:~ $ sudo raspi-config
First set up camera with option 5: ```
![raspi-config-mainscreen](images/raspi-config-mainscreen.png) First set up camera with option 5:
Then choose P1 Camera: ![raspi-config-mainscreen](images/raspi-config-mainscreen.png)
![raspi-config-mainscreen](images/raspi-config-camera.png) Then choose P1 Camera:
Then go back to the main screen and choose option 7: ![raspi-config-mainscreen](images/raspi-config-camera.png)
![raspi-config-mainscreen](images/raspi-config-mainscreen7.png) Then go back to the main screen and choose option 7:
First Expand Filesystem A1: ![raspi-config-mainscreen](images/raspi-config-mainscreen7.png)
![raspi-config-mainscreen](images/raspi-config-advanced-expand.png) First Expand Filesystem A1:
Then return to option 7 again and choose A3 memory split: ![raspi-config-mainscreen](images/raspi-config-advanced-expand.png)
![raspi-config-mainscreen](images/raspi-config-advanced-memory.png) Then return to option 7 again and choose A3 memory split:
Set this to 256 and then exit raspi-config. When prompted to restart, select yes - this is to ensure the disk is resized before we updated. ![raspi-config-mainscreen](images/raspi-config-advanced-memory.png)
# Update the system Set this to 128 and then exit raspi-config. When prompted to restart, select yes - this is to ensure the disk is resized before we updated.
First install screen, so that you don't have to worry about a disconnect mid update: # Update the system
```bash First install screen, so that you don't have to worry about a disconnect mid update:
pi@raspberrypi:~ $ sudo apt update && sudo apt install screen -y
``` ```bash
pi@raspberrypi:~ $ sudo apt update && sudo apt install screen -y
Then start screen and update: ```
```bash Then start screen and update:
pi@raspberrypi:~ $ screen
pi@raspberrypi:~ $ sudo apt upgrade -y ```bash
``` pi@raspberrypi:~ $ screen
This will take some time... pi@raspberrypi:~ $ sudo apt upgrade -y
```
![raspi-config-mainscreen](images/updates.png) This will take some time...
# Update the firmware ![raspi-config-mainscreen](images/updates.png)
raspbian comes with a firmware updating tool, do so now:
# UV4L Packages
```bash
Once updates are complete install uv4l packages.
``` First, install the gpg key for the repo, so the pi trusts it:
# UV4L Packages ```bash
pi@raspberrypi:~ $ curl http://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current
Once updates are complete install uv4l packages. Dload Upload Total Spent Left Speed
100 26703 100 26703 0 0 116k 0 --:--:-- --:--:-- --:--:-- 116k
First, install the gpg key for the repo, so the pi trusts it: OK
```
```bash
pi@raspberrypi:~ $ curl http://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Then add the repository to apt sources and check the file after to confirm:
Dload Upload Total Spent Left Speed ```bash
100 26703 100 26703 0 0 116k 0 --:--:-- --:--:-- --:--:-- 116k pi@raspberrypi:~ $ echo -e "\ndeb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main" | sudo tee -a /etc/apt/sources.list
OK
``` deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main
pi@raspberrypi:~ $ cat /etc/apt/sources.list
Then add the repository to apt sources and check the file after to confirm: deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
```bash # Uncomment line below then 'apt-get update' to enable 'apt-get source'
pi@raspberrypi:~ $ echo -e "\ndeb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main" | sudo tee -a /etc/apt/sources.list #deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main
pi@raspberrypi:~ $ cat /etc/apt/sources.list ```
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source' ```bash
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi pi@raspberrypi:~ $ sudo apt install uv4l uv4l-raspicam uv4l-raspicam-extras
```
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main
``` ```bash
pi@raspberrypi:~ $ sudo reboot
```bash ```
pi@raspberrypi:~ $ sudo apt install uv4l uv4l-raspicam uv4l-raspicam-extras
```
```bash
pi@raspberrypi:~ $ sudo reboot
```
# Install uv4l packages
Install all the required packages