Skip to content

Instantly share code, notes, and snippets.

@dbkinghorn
dbkinghorn / user-data-server
Created September 28, 2021 21:49
Ubuntu 20.04 user-data files for autoinstall ISO
#cloud-config
autoinstall:
version: 1
refresh-installer: # start with an up-to-date installer
update: yes
interactive-sections: # Install groups listed here will wait for user input
- storage
storage: # should set the interactive default but doesn't seem to work??
layout:
name: direct
@dbkinghorn
dbkinghorn / netplan2NM.sh
Created June 23, 2020 17:07
Change Ubuntu 20.04 server netplan to use NetworkManager instead of networkd
#!/usr/bin/env bash
# netplan2NM.sh
# Ubuntu server 20.04 Change from netplan to NetworkManager for all interfaces
echo 'Changing netplan to NetowrkManager on all interfaces'
# backup existing yaml file
cd /etc/netplan
cp 01-netcfg.yaml 01-netcfg.yaml.BAK
@dbkinghorn
dbkinghorn / ubuntu-18.04-preseed-test-1.seed
Created January 30, 2020 02:34
Ubuntu 18.04 preseed file for auto install (testing)
## Ubuntu 18.104 pressed test 1
# This preseed file was adapted from the example at
# https://help.ubuntu.com/lts/installation-guide/amd64/apbs04.html
# and lots of experimentation!
### Automatic Installation
d-i auto-install/enable boolean true
d-i debconf/priority select critical
### Localization