aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-12-22 21:18:30 -0500
committerRyan Kavanagh <rak@rak.ac>2021-12-22 21:18:39 -0500
commit649cc080d8708e7fc28d7f6538aceaa52bbd5c59 (patch)
treec95bd62fd06187fad663af3e1ec6f92c6550d2c4 /etc
parentfixed emacs fonts (diff)
track debian network configuration
Diffstat (limited to '')
-rwxr-xr-xetc/network-setup.sh10
-rw-r--r--etc/systemd/network/wlp3s0.network5
-rw-r--r--etc/systemd/resolved.conf6
l---------etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf1
4 files changed, 19 insertions, 3 deletions
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