2023-04-19 04:19:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "copying default systemd-networkd config files located in: "
|
|
|
|
echo " ../files/systemd/network/basic/ to: /etc/systemd/network/"
|
|
|
|
echo " modify these files if there is no internet connectivity."
|
|
|
|
echo " see available network devices (Name=*) with: ls /sys/class/net/"
|
|
|
|
|
|
|
|
sudo cp ../files/systemd/network/basic/* /etc/systemd/network/
|
|
|
|
|
2023-05-02 04:30:25 +00:00
|
|
|
|
2023-04-19 04:19:12 +00:00
|
|
|
sudo systemctl enable --now systemd-networkd.service
|
|
|
|
sudo systemctl enable --now systemd-resolved.service
|
2023-05-02 04:30:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
#setup system to default to systemd-resolved config
|
|
|
|
sudo ln -rsf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|