Skip to content

Instantly share code, notes, and snippets.

@arnaudjuracek
Last active May 11, 2021 12:23
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnaudjuracek/1b760c00d0e00a685341a93942a10cb4 to your computer and use it in GitHub Desktop.
Save arnaudjuracek/1b760c00d0e00a685341a93942a10cb4 to your computer and use it in GitHub Desktop.
Raspberry PI setup guide

Raspberry PI setup guide

Raspbian setup


Network / SSH setup

WiFi setup

https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network = {
    ssid="The_ESSID_from_earlier"
    psk="Your_wifi_password"
}
sudo reboot
ifconfig wlan0
mDNS setup
sudo apt-get udpate
sudo apt-get install avahi-daemon
hostname setup

sudo raspi-config > Advanded Options > Hostname

SSH setup

sudo raspi-config > Advanced Options / SSH


Misc packages

GIT setup
sudo apt-get update
sudo apt-get install git-all
Node.js setup

https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

wget http://node-arm.herokuapp.com/node_latest_armhf.deb 
sudo dpkg -i node_latest_armhf.deb
node -v
sudo npm install -g n
PM2

https://github.com/Unitech/pm2#install-pm2

sudo npm install -g pm2
ZSH / Oh My Zsh setup

https://github.com/robbyrussell/oh-my-zsh

sudo apt-get update
sudo apt-get install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Node-gyp setup

Used to build some modules like node-serialport or node-canvas

sudo npm install -g node-gyp

If any npm install fail and throw an error mentionning node-gyp, see https://stackoverflow.com/a/21366601


Listing devices

ls /dev/tty*

An Arduino should look like /dev/ttyUSB0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment