From 649cc080d8708e7fc28d7f6538aceaa52bbd5c59 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 22 Dec 2021 21:18:30 -0500 Subject: track debian network configuration --- etc/network-setup.sh | 10 ++++++++++ etc/systemd/network/wlp3s0.network | 5 +++++ etc/systemd/resolved.conf | 6 +++--- etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf | 1 + 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100755 etc/network-setup.sh create mode 100644 etc/systemd/network/wlp3s0.network create mode 120000 etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf (limited to 'etc') diff --git a/etc/network-setup.sh b/etc/network-setup.sh new file mode 100755 index 0000000..bdcfed5 --- /dev/null +++ b/etc/network-setup.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +cd $(dirname $0) +sudo cp systemd/resolved.conf /etc/systemd +test -f /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf || sudo ln -s ~rak/.config/wpa_supplicant /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf +sudo systemctl enable wpa_supplicant@wlp3s0.service +sudo systemctl enable systemd-networkd +sudo systemctl restart wpa_supplicant@wlp3s0.service +sudo systemctl restart systemd-networkd +echo "If it works, then purge ifupdown" diff --git a/etc/systemd/network/wlp3s0.network b/etc/systemd/network/wlp3s0.network new file mode 100644 index 0000000..65dfd51 --- /dev/null +++ b/etc/systemd/network/wlp3s0.network @@ -0,0 +1,5 @@ +[Match] +Name=wlp3s0 + +[Network] +DHCP=yes diff --git a/etc/systemd/resolved.conf b/etc/systemd/resolved.conf index fa8ebf8..b40f8c0 100644 --- a/etc/systemd/resolved.conf +++ b/etc/systemd/resolved.conf @@ -19,10 +19,10 @@ # Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com # Google: 8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google # Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net -DNS=1.1.1.1#cloudflare-dns.com 8.8.8.8#dns.google -#FallbackDNS= +#DNS= +FallbackDNS=1.1.1.1#cloudflare-dns.com 8.8.8.8#dns.google Domains=rak.ac -DNSSEC=yes +#DNSSEC=yes #DNSOverTLS=no #MulticastDNS=yes LLMNR=no diff --git a/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf b/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf new file mode 120000 index 0000000..69979cf --- /dev/null +++ b/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf @@ -0,0 +1 @@ +/home/rak/.config/wpa_supplicant.conf \ No newline at end of file -- cgit v1.2.3