Home Raspberry Pi

From Tim's Wiki
Jump to: navigation, search

Basic Info

# to connect remotely:
ssh -p 222 home.timmontague.com
# to connect locally:

Basic setup

sudo raspi-config

  • Expand filesystem
  • Change user password
  • Memory split: set to 16
  • Change locale to "en_US.UTF-8 UTF-8"

Set FQDN by adding to /etc/hosts:	raspberrypi.timmontague.com raspberrypi localhost

Set timezone to America/Los_Angeles:

sudo dpkg-reconfigure tzdata

Install VIM

sudo apt-get install vim

Edit /etc/vim/vimrc for your liking. I added this:

syntax on
colorscheme torte
set background=dark

And uncommented this:

" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif

" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
if has("autocmd")
  filetype plugin indent on

Set default editor:

sudo update-alternatives --config editor

Unifi Controller

sudo apt install oracle-java8-jdk
sudo update-alternatives --config java # select jdk-8-oracle-arm32-vfp-hflt

Install rng-tools to give a larger source of entropy which the UniFi controller requires on boot:

sudo apt install rng-tools
sudo vi /etc/default/rng-tools # uncomment "HRNGDEVICE=/dev/hwrng"

Add to /etc/apt/sources.list.d/100-ubnt.list:

## Debian/Ubuntu

#deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti
deb http://www.ubnt.com/downloads/unifi/debian testing ubiquiti
# deb http://www.ubnt.com/downloads/unifi/debian oldstable ubiquiti

# The following is a mapping of suite name->code name.
# stable->unifi-5.4
# testing->unifi-5.5
# oldstable->unifi-5.3

Install unifi:

sudo apt install unifi

Browse to