Ubuntu/sysprep: Difference between revisions
< Ubuntu
(Created page with "== Sysprep == What to do after cloning an Ubuntu Image: 1. Regen Ubuntu/machine-id 2. hostname") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
What to do after cloning an Ubuntu Image: | What to do after cloning an Ubuntu Image: | ||
# /etc/hostname | |||
# /etc/hosts | |||
# /etc/netplan | |||
## netplan --debug apply ; networkctl | |||
# Regen [[Ubuntu/machine-id]] | |||
# [[Ubuntu/regen ssh host keys]] | |||
# Clear history file | |||
# Clear log files | |||
# poweroff | |||
-- Bonus -- | |||
# apt update ; apt upgrade | |||
# /etc/ssh/sshd | |||
# ansible | |||
# ssh keys |
Latest revision as of 20:17, 4 February 2024
Sysprep
What to do after cloning an Ubuntu Image:
- /etc/hostname
- /etc/hosts
- /etc/netplan
- netplan --debug apply ; networkctl
- Regen Ubuntu/machine-id
- Ubuntu/regen ssh host keys
- Clear history file
- Clear log files
- poweroff
-- Bonus --
- apt update ; apt upgrade
- /etc/ssh/sshd
- ansible
- ssh keys