logging so i don’t forget what i did; to eventually try to automate this
brew install --cask balenaetcher
alt + power button on macbook pro 2015 to show boot drives, select correct drive
start linux mint, then install from the desktop – this let me skip needing a ethernet connection to install the wifi drivers; was also prompted to install codecs so i can actually view youtube videos. it’s quite performant, amazing
install ssh
sudo apt update && sudo apt upgrade
sudo systemctl status ssh
sudo systemctl enable ssh
sudo systemctl start ssh
once installed, go to power management
and change default “suspend” when in clamshell mode
dhcp reservation - this can be done thru asus gui. handy commands ip addr
to check success and device mac.
1: lo
loopback interface, virtual network device used by your system to communicate with itself (localhost, 127.0.0.1), every linux system has it.
2: wlp3s0
wireless network interface; the name wlp3s0 follows the modern "predictable network interface naming" scheme:
wl = wireless LAN
p3 = PCI bus 3
s0 = slot 0
3. eth0
ethernet
note asus router fixes the first 3 bits, server is @ 200.
batteries are completely dead, so server needs to be moved otherwise the cat tends to disconnect the cable
# on the mac, also name your key otherwise you kena
ssh-keygen -t ed25519 -C "macbook-to-mint-master"
# note filename: <users>/.ssh/ansible_key
ssh-copy-id <user@xx.xx.xx.200>
subsequent logins are just ssh user@xx.xx.xx.200, i can make an alias but i’d probably forget if i did
you can always sudo whoami
to check if account is root lol. linux mint comes with python3 installed by default on cinnamon
there’s https://github.com/k3s-io/k3s-ansible for reference
set up inventory.ini similar to the tutorial, then
ansible-playbook -i inventory.ini install-k3s.yaml -K
BECOME password:
PLAY [Install and configure k3s single node cluster] ***********************************
TASK [Gathering Facts] *****************************************************************
<snip>
PLAY RECAP *****************************************************************************
192.168.50.100 : ok=12 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
macmint@macmint:~$ curl -k https://192.168.50.200:6443
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "Unauthorized",
"reason": "Unauthorized",
"code": 401
# check your external k3s config is pointing to its ip, this probably needs to be reworked eventually....
# run this within the repo directory
cp ~/.kube/config ~/.kube/config.backup
KUBECONFIG=k3s-config.yaml kubectl config view --flatten > ~/.kube/config.new
mv ~/.kube/config.new ~/.kube/config
it would be MUCH better if i’d renamed the k3s env to something else, instead of like “default”, but another time
modify mac’s etc/hosts
file to point to pihole.local for dashboard >__> i need to uh… do this better
try to update local device’s dns servers first
16:52:14 in ~ using ☁️ terraform using ☁️ default/
➜ scutil --dns | grep nameserver
nameserver[0] : 192.168.50.200
nameserver[0] : 192.168.50.200