- Step 1. Edit config.txt & cmdline.txt
-
Read learn.adafruit.com first time boot rPi. After creating raspbian SD image, edit and create the following 3 files in the SD boot volume
- Add
dtoverlay=dwc2
to the last line ofconfig.txt
- Edit
cmdline.txt
. Searchrootwait
text, and after add a space and thenmodules-load=dwc2,g_ether
- Create an empty file named on
ssh
- Add
- Edit
/etc/network/interfaces
as shown below - Create wpa_supplicant text
wpa_passphrase "SSID" [wifi passphrase]
- Edit
/etc/wpa_supplicant/wpa_supplicant.conf
as shown below - Some options
wpa_cli list_networks
wpa_cli select_network 1
-
Run the
sudo raspi-config
to enable SSH next time and resize the SD -
Update all, and Remove node 10.x
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove nodejs
-
Install more
sudo apt-get install vim tmux
-
Tmux config
vim ~/.tmux.conf
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix# Start window numbering at 1
set -g base-index 1
- Install node 11.x
# Node version 10 is the last version to support ARMv6
wget https://nodejs.org/dist/latest-v10.x/node-v10.17.0-linux-armv6l.tar.gz
tar -xvf node-v10.17.0-linux-armv6l.tar.gz
cd node-v10.17.0-linux-armv6l
sudo cp -R * /usr/local/
rm -r node-v10.17.0-linux-armv6l
rm node-v10.17.0-linux-armv6l.tar.gz
- Avahi-daemon implements the Apple Zeroconf specification, (like bonjour) after this it is easy to ping hostname_pi.local from OS X or other Zeroconf configured machine. Secondly, avaih-utils will make it easy to find other RPis on the local network.
sudo apt-get install avahi-daemon avahi-utils
- Logoff/Login
- Run
node -v
- Install Feh image vierwer for slideshow, and screen saver.
sudo apt-get install feh
sudo apt-get install xscreensaver
-
In raspbian UI preferences, set to never enable screen saver
-
Create Feh script
~/start_feh.sh
echo "feh --recursive --randomize --auto-zoom -F -x -D5 -B white -Y -r /home/pi/Pictures" > ~/start_feh.sh
chmod 755 ~/start_feh.sh
sudo vim ~/.config/autostart/start_feh.desktop
Add this to the start_feh.desktop
[Desktop Entry]
Name=feh_slideshow
Exec=/home/pi/start_feh.sh
Type=Application
- Install node modules
mkdir src/nodedev
cd src/nodedev
git clone https://github.com/rwaldron/johnny-five.git
npm install
npm install raspi-io
# optional
sudo apt-get install ufw
sudo ufw status verbose
# turn it on, and set to enable at boot
sudo ufw enable
sudo ufw allow ssh
# other linux (not needed on rPi. already installed)
sudo apt-get install openssh-server