Skip to content

Instantly share code, notes, and snippets.

@JamesDaniel
Last active January 15, 2017 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesDaniel/6dcdca12973f6bc70ede705b67b73b12 to your computer and use it in GitHub Desktop.
Save JamesDaniel/6dcdca12973f6bc70ede705b67b73b12 to your computer and use it in GitHub Desktop.
OS setup commands

Boot to terminal

Raspberry Pi 3

sudo raspi-config

ubuntu 16

Stops the ubuntu purple screen

sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Uncomment to disable graphical terminal (grub-pc only)

GRUB_TERMINAL=console
sudo update-grub
sudo reboot

install nodejs & utilities

Raspberry Pi 3

sudo apt-get remove nodejs
sudo apt-get autoremove
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
export PATH=/usr/local/bin:${PATH}
node --version
rm -rf node_latest_armhf.deb

upgrade npm

npm -v
sudo npm install -g npm

install process manager

sudo npm install -g pm2

install git

sudo apt-get install git

install bower

sudo npm install -g bower

wifi setup

see list of saved connections

nmcli c

see list of available wifi hotspots

nmcli d wifi list

see list of interfaces

ifconfig -a

disconnect (ubuntu-15)

nmcli d disconnect iface <wifi interface>

connect (ubuntu-15)

nmcli d wifi connect <SSID> password <password> iface <interface>

change connection setting files

cd /etc/NetworkManager/system-connections/

Setup python

upgrade pip

sudo apt-get install python-pip

vitualenv

sudo apt-get install python-virtualenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment