Commit 01d0718
Changed files (1)
README.md
@@ -1,62 +1,27 @@
-### prgmr.com management console
-`ssh tmc@tmc.console.xen.prgmr.com`
-* <kbd>9</kbd> - Install a new OS
-* <kbd>h</kbd> - Ubuntu Focal 20.04
-* <kbd>y</kbd> - Are you sure
-* <kbd>y</kbd> - Add current ssh keys
-* <kbd>0</kbd> - Return to main menu
-* <kbd>2</kbd> - create/start, opens OOB console
-* <kbd>Ctrl</kbd>-<kbd>]</kbd> to exit console
-* <kbd>0</kbd> - Exit
-
-### Pre-ansible changes
-
-`ssh-keygen -R trustme.click`
-`ssh-keygen -R $(dig +short trustme.click)`
-`ssh root@tmc -A`
-
-* Disable root ssh access
-
- `vi /etc/ssh/sshd_config`
- `PermitRootLogin no`
-
-* Create ubuntu user with passwordless sudoer, ssh access, sudo group
-
- `# adduser ubuntu` *hit enter exactly 13 times (creates user without a password)*
- `# usermod -aG sudo ubuntu`
- `# EDITOR=vi visudo`
- `# su ubuntu`
- `# cd`
- `$ mkdir ~/.ssh`
- `$ sudo cat /root/.ssh/authorized_keys > ~/.ssh/authorized_keys`
-
-* Reconnect ssh as ubuntu, Restart ssh, Verify root can't login via ssh
-
- `$ exit`
- `# exit`
- `$ ssh ubuntu@tmc` # expect success
- `$ sudo systemctl restart ssh`
- `$ exit`
- `$ ssh root@tmc` # expect failure
- `$ ssh ubuntu@tmc -A`
-
-* Setup python & ansible
- TODO: after 2020-10-01, try installing python-apt in a venv again, I gave up
-
- `$ sudo apt update`
- `$ sudo apt install -y python3-pip git`
- `$ python3.8 -m pip install --user --upgrade pip wheel`
- `$ python3.8 -m pip install --user ansible`
- `$ source ~/.profile`
- `$ mkdir git`
- `$ cd git`
- `$ git clone git@github.com:bryfry/trustme.click.git`
- `$ cd trustme.click`
-
-* Run ansible playbook
-
- `$ ansible-playbook main.yml`
+### Setup
+
+```
+sudo fallocate -l 2G /swap
+sudo dd if=/dev/zero of=/swap bs=1024 count=2097152
+sudo chmod 600 /swap
+sudo mkswap /swap
+sudo swapon /swap
+echo /swap swap swap defaults 0 0 | sudo tee -a /etc/fstab
+```
+
+```
+sudo apt update
+sudo apt install -y python3-pip git
+python3.8 -m pip install --user --upgrade pip wheel
+python3.8 -m pip install --user ansiblekk
+source ~/.profile
+mkdir git
+cd git
+git clone git@github.com:bryfry/trustme.click.git
+cd trustme.click
+ansible-playbook main.yml
+```
### Post-install