Last active
August 23, 2020 17:23
-
-
Save gscoppino/8691bb3531ae13a5320064f9ed0c9840 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
set -e # fail on error | |
set -u # fail on access to unset variable | |
set -x # write commands (post-expansion) to STDERR as they are executed | |
# configure network services | |
systemctl start systemd-resolved.service | |
systemctl enable systemd-resolved.service | |
mkdir -p /etc/iwd | |
echo "[General]" > /etc/iwd/main.conf | |
echo "EnableNetworkConfiguration=true" >> /etc/iwd/main.conf | |
echo "[Network]" >> /etc/iwd/main.conf | |
echo "NameResolvingService=systemd" >> /etc/iwd/main.conf | |
systemctl start iwd.service | |
systemctl enable iwd.service | |
iwctl | |
# create non-root user | |
useradd -m gscoppino | |
passwd gscoppino | |
pacman -S sudo | |
echo "[MANUAL] Change sudoers file to allow members of the wheel group sudo access:" | |
sleep 3 | |
visudo | |
usermod -aG wheel gscoppino | |
# all good! | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment