Steps to install ubuntu on deepthot
Creating an ubuntu Bionic Beaver (18.04) vm here at deepthot is really easy. I wanted to write down all of the
steps here so I’ve got them.
- Create the machine on the esx server
- Remember to point the cd drive to the iso image on the san
- Right click on the VM and select console->launch console
- Default through everything until you get to the disk
- On the disk, select manual
- Create a partition on / formatted as btrfs
- Select install openssh server
- import ssh identity from github, denebeim
- allow password authentication over ssh
- Create a user that’s specific to the machine
- Finish install/reboot
- log in as that specific user
- sudo apt update;sudo apt dist-upgrade -y (ssh is broken until you upgrade)
- yawn, this is slow I wish I had artifactory
- reboot
- sudo systemd-resolve --flush-caches (on the laptop)
- ssh in as the device specific user
- sudo apt install emacs-nox freeipa-client autofs nfs-kernel-server docker.io -y
echo automount: files sss|sudo tee -a /etc/nsswitch.conf- sudo hostnamectl set-hostname $(hostname -s).deepthot.aa
- sudo ipa-client-install
- sudo kinit
- sudo ipa service-add nfs/$(hostname -f)
- sudo ipa-getkeytab -s ipa.deepthot.aa -p nfs/$(hostname -f) -k /etc/krb5.keytab
- sudo klist -k /etc/krb5.keytab (to check and make sure, should have host and nfs keys)
- sudo ipa-client-automount
- ls -lA /nethome/denebeim (to make sure automount is doing its bit)
- sudo gpasswd -a k8s docker
- sudo gpasswd -a denebeim@deepthot.aa docker
- exit back and ssh in again as myself. Now I’m sparked.
notes: the sudos after the kinit are because /etc/krb5.keytab is only root writable. kinit gives you root for kerberos/ipa stuff. Or rather it gives you whatever role you’re initing as. Cool really.
Ok, you now have a client configured. It should really take you about 5 minutes or so if you’re not making a blog post.
Written with StackEdit.
No comments:
Post a Comment