Last active
January 7, 2021 19:58
-
-
Save arreusch/329c55364894d203b3f73ee4d4ac2a60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
BEWARE=" | |
I don't mind breaking my own stuff. | |
Here I'm just bulldozing everything I don't want when I'm being lazy and hand crafting artisinal and bespoke installations. | |
I'm sure it's a bit unnecessary and reckless. So, no guarantee this won't bork your system or give you trouble with future updates. | |
Ubuntu gets more difficult to disinfect every release. | |
I should give up and stick to Debian sid. | |
" | |
# https://www.naut.ca/blog/2018/12/12/disabling-systemd-networking/ | |
# https://unix.stackexchange.com/questions/591414/how-do-you-block-network-acceess-to-systemd | |
apt-get update | |
apt-get install ifupdown | |
# Stop | |
systemctl stop systemd-resolved | |
systemctl stop systemd-networkd.socket | |
systemctl stop systemd-networkd | |
systemctl stop networkd-dispatcher | |
systemctl stop systemd-networkd-wait-online | |
# Disable | |
systemctl disable systemd-resolved.service | |
systemctl disable systemd-networkd.socket | |
systemctl disable systemd-networkd | |
systemctl disable networkd-dispatcher | |
systemctl disable systemd-networkd-wait-online | |
# Mask | |
systemctl mask systemd-resolved.service | |
systemctl mask systemd-networkd.socket | |
systemctl mask systemd-networkd | |
systemctl mask networkd-dispatcher | |
systemctl mask systemd-networkd-wait-online | |
# Remove is for the fear ridden. Purge the infection. | |
apt-get purge cloud-init | |
apt-get purge networkd-dispatcher | |
apt-get purge openresolv | |
apt-get purge netplan.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment