main
beech 2 years ago
parent ca2a76d5f8
commit 3a158091dd
  1. 17
      setup-desktop.sh
  2. 29
      setup-server.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

@ -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 "-------------------------------------------------"
Loading…
Cancel
Save