Quick setup Pi

Initial

$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo rpi-update

Wifi 1

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=AU
 
network={
        scan_ssid=1
        ssid="hidden_SSID_here"
        psk="password_here"
        key_mgmt=WPA-PSK
}

Config

$ sudo raspi-config

Enable

Install

For old system

sudo apt install docker.io docker-compose nfs-common portmap

For new system

sudo apt install docker.io docker-compose gnupg2 pass -y

NFS

$ sudo mount -t nfs <ip>:/<dir> /mnt

Copy file 2

$ cp -rT /home/usr /mnt

Update fstab, mount NFS when boot

In /etc/fstab, add

<ip>:/<dir>		/home/user		nfs 	defaults	0	0

Options can be nolock,nofail,x-systemd.automount,x-systemd.requires=network-online.target.

PHP 3

sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ buster main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update

sudo apt install php7.3 \
	php7.3-bcmath \
	php7.3-bz2 \
	php7.3-cli \
	php7.3-common \
	php7.3-curl \
	php7.3-gd \
	php7.3-gmp \
	php7.3-imap \
	php7.3-intl \
	php7.3-json \
	php7.3-ldap \
	php7.3-mbstring \
	php7.3-mysql \
	php7.3-opcache \
	php7.3-readline \
	php7.3-recode \
	php7.3-snmp \
	php7.3-soap \
	php7.3-sqlite3 \
	php7.3-tidy \
	php7.3-xml \
	php7.3-xmlrpc \
	php7.3-xsl \
	php7.3-zip \
	composer -y

Clean up

sudo apt purge vlc
sudo apt autoremove
sudo apt autoclean
sudo apt clean

Battery

8:08am until 21:28, Unknown capbility, likely 6000mAh.

Hardware detail

vcgencmd 4

cat /sys/class/thermal/thermal_zone0/temp 
/opt/vc/bin/vcgencmd measure_temp
/opt/vc/bin/vcgencmd measure_volts