635
Comment: first draft
|
4659
decommed shimakaze
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Live servers = These boxes are running at Vultr, Sydney datacentre for low latency ||<rowbgcolor="lightblue"> Hostname || OS || Location || Notes || || [[/arkroyal]] || Debian 9 || Vultr, Sydney || - || || [[/asval]] || Debian 9.11 || Home || - || || [[/zas]] || Debian 10? || Home || - || || [[/illustrious]] || Linux Mint 19.2 Tina || Home || - || = Decommissioned = ||<rowbgcolor="lightblue"> Hostname || OS || Location || Notes || || [[/nadeko]] || Docker host (based on Centos 7.4) || Vultr, Sydney || Decommed 2019-11-15 || || [[/i19]] || Debian 8 || Vultr, Sydney || Decommed 2019-11-15, was apparently literally doing nothing? || || [[/shimakaze]] || Debian 8.8 || Linode, Singapore || Decommed 2019-11-15, took long enough || = Other devices = ||<rowbgcolor="lightblue"> Name || Description || Hardware || Notes || || amatsukaze || Macbook Pro - Retina, 13-inch, early 2015 || i5 2.9GHz, 16gb RAM, 256gb SSD || - || || kashima || Win10 workstation || i7-6700K, 16gb DDR4, Samsung 950 Pro M.2 256gb || - || |
|
Line 17: | Line 42: |
= Configuring the new VPS = == Debian == 1. Get onto the box via the new IP or DNS 1. Install minimal set of packages {{{ apt-get update apt-get install -y aptitude aptitude install -y git make aptitude install -y puppet-module-puppetlabs-stdlib }}} 1. Clone the puppet code {{{ cd /etc/puppet/ rmdir code git clone https://github.com/barneydesmond/personal-puppet.git code }}} 1. Run puppet to conform the system: {{{ make -C /etc/puppet/code full }}} Your system should now be good. == Redhat == 1. Get onto the box via the new IP or DNS 1. Install minimal set of packages {{{ yum install -y git make yum install -y puppetlabs-stdlib }}} 1. Clone the puppet code {{{ cd /etc/puppet/ rmdir code git clone https://github.com/barneydesmond/personal-puppet.git code rmdir modules ln -s /etc/puppet/code/modules }}} 1. Run puppet to conform the system: {{{ make -C /etc/puppet/code full }}} Your system should now be good. = Raspberry Pi = == Provisioning == 1. Download the latest image, like Raspbian buster-lite, write it to SD card with balenaEtcher 1. Boot as normal, let it do the firstboot thing 1. Rename it: https://wiki.debian.org/HowTo/ChangeHostname or use raspi-config tool 1. Wifi as needed in raapi-config 1. Set locale and default system locale in raspi-config 1. Enable ssh {{{ systemctl enable --now ssh }}} 1. Fully update {{{ apt update and full-upgrade apt install vim reboot }}} 1. Change password for `pi` account 1. Install your ssh pubkeys 1. apt autoremove, autoclean 1. Install useful packages: {{{ apt install openjdk-8-jre-headless apt install haveged apt install lsof tcpdump netcat strace nmap }}} 1. Empty motd, don't care about that on SSH login {{{ > /etc/motd }}} === References === * https://community.ubnt.com/t5/UniFi-Routing-Switching/Step-By-Step-Tutorial-Guide-Raspberry-Pi-with-UniFi-Controller/td-p/2470231 == Unifi stuff == 1. Install Unifi repo {{{ echo 'deb http://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/unifi.list sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg }}} 1. Install packages {{{ apt update apt install unifi }}} 1. Faff with dhcpcd to ensure a static IP that's well-managed: https://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-ip-address/74428#74428 == Go lang stuff == https://danbruder.com/blog/installing-golang-1-9-on-raspberry-pi-3b/ Go deps for termshark et al: https://medium.com/@simon_prickett/raspberry-pi-coding-in-go-traffic-lights-559bc761fa07 {{{ 206 wget https://dl.google.com/go/go1.12.5.linux-armv6l.tar.gz 212 tar -C /usr/local -xzvf go1.12.5.linux-armv6l.tar.gz 215 cd /etc/profile.d/ 223 vim golang.sh # export and append to PATH 231 go version }}} |
Live servers
These boxes are running at Vultr, Sydney datacentre for low latency
Hostname |
OS |
Location |
Notes |
Debian 9 |
Vultr, Sydney |
- |
|
Debian 9.11 |
Home |
- |
|
Debian 10? |
Home |
- |
|
Linux Mint 19.2 Tina |
Home |
- |
Decommissioned
Hostname |
OS |
Location |
Notes |
Docker host (based on Centos 7.4) |
Vultr, Sydney |
Decommed 2019-11-15 |
|
Debian 8 |
Vultr, Sydney |
Decommed 2019-11-15, was apparently literally doing nothing? |
|
Debian 8.8 |
Linode, Singapore |
Decommed 2019-11-15, took long enough |
Other devices
Name |
Description |
Hardware |
Notes |
amatsukaze |
Macbook Pro - Retina, 13-inch, early 2015 |
i5 2.9GHz, 16gb RAM, 256gb SSD |
- |
kashima |
Win10 workstation |
i7-6700K, 16gb DDR4, Samsung 950 Pro M.2 256gb |
- |
Provisioning a new VPS
Assuming I'm using Vultr right now.
- Pick specs
- Sydney location, $5 VPS, Debian 9 should be good
Enable IPv6 and Auto Backups
- Tick all SSH keys
Generic firewall group
- Pick a good hostname and a leave the label as matching it
- Deploy Now
Once the installation gets far enough it'll have an IP address allocated. Grab it and go add the DNS entry for it at https://www.gandi.net/en
Go to the server's settings and set your Reverse DNS, foo.meidokon.net
- Configure backups: Weekly, Friday, 21:00 UTC
You should be pretty much sorted now.
Configuring the new VPS
Debian
- Get onto the box via the new IP or DNS
Install minimal set of packages
apt-get update apt-get install -y aptitude aptitude install -y git make aptitude install -y puppet-module-puppetlabs-stdlib
Clone the puppet code
cd /etc/puppet/ rmdir code git clone https://github.com/barneydesmond/personal-puppet.git code
Run puppet to conform the system:
make -C /etc/puppet/code full
Your system should now be good.
Redhat
- Get onto the box via the new IP or DNS
Install minimal set of packages
yum install -y git make yum install -y puppetlabs-stdlib
Clone the puppet code
cd /etc/puppet/ rmdir code git clone https://github.com/barneydesmond/personal-puppet.git code rmdir modules ln -s /etc/puppet/code/modules
Run puppet to conform the system:
make -C /etc/puppet/code full
Your system should now be good.
Raspberry Pi
Provisioning
- Download the latest image, like Raspbian buster-lite, write it to SD card with balenaEtcher
- Boot as normal, let it do the firstboot thing
Rename it: https://wiki.debian.org/HowTo/ChangeHostname or use raspi-config tool
- Wifi as needed in raapi-config
- Set locale and default system locale in raspi-config
Enable ssh
systemctl enable --now ssh
Fully update
apt update and full-upgrade apt install vim reboot
Change password for pi account
- Install your ssh pubkeys
- apt autoremove, autoclean
Install useful packages:
apt install openjdk-8-jre-headless apt install haveged apt install lsof tcpdump netcat strace nmap
Empty motd, don't care about that on SSH login
> /etc/motd
References
Unifi stuff
Install Unifi repo
echo 'deb http://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/unifi.list sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg
Install packages
apt update apt install unifi
Faff with dhcpcd to ensure a static IP that's well-managed: https://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-ip-address/74428#74428
Go lang stuff
https://danbruder.com/blog/installing-golang-1-9-on-raspberry-pi-3b/
Go deps for termshark et al: https://medium.com/@simon_prickett/raspberry-pi-coding-in-go-traffic-lights-559bc761fa07
206 wget https://dl.google.com/go/go1.12.5.linux-armv6l.tar.gz 212 tar -C /usr/local -xzvf go1.12.5.linux-armv6l.tar.gz 215 cd /etc/profile.d/ 223 vim golang.sh # export and append to PATH 231 go version