diff --git a/setup-desktop.sh b/setup-desktop.sh new file mode 100644 index 0000000..56e3c8b --- /dev/null +++ b/setup-desktop.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Placeholder + +echo "-------------------------------------------------" +echo "Setting Up Desktop - Installing Sudo" +echo "-------------------------------------------------" + +# Install sudo +apt update +apt install sudo -yy + +# Find the standard user you created during installation and make it a variable +user=$(getent passwd 1000 | awk -F: '{ print $1}') + +# Echo the user into the sudoers file +echo "$user ALL=(ALL:ALL) ALL" >> /etc/sudoers + diff --git a/setup-server.sh b/setup-server.sh new file mode 100644 index 0000000..2b4fb16 --- /dev/null +++ b/setup-server.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# Placeholder + +echo "-------------------------------------------------" +echo "Setting Up Server" +echo "-------------------------------------------------" + +# Install sudo +apt update +apt install sudo -yy + +# Find the standard user you created during installation and make it a variable +user=$(getent passwd 1000 | awk -F: '{ print $1}') + +# Echo the user into the sudoers file +echo "$user ALL=(ALL:ALL) ALL" >> /etc/sudoers + +echo "-------------------------------------------------" +echo "Installed Sudo" +echo "-------------------------------------------------" + +# Install UFW +sudo apt install ufw +sudo ufw allow ssh +sudo ufw enable + +echo "-------------------------------------------------" +echo "Setup complete." +echo "-------------------------------------------------" \ No newline at end of file