parent
5cac51c43a
commit
2b3ee2bdc8
@ -1,32 +0,0 @@ |
|||||||
#!/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 |
|
||||||
|
|
||||||
# Install Apps |
|
||||||
sudo apt install git curl -yy |
|
||||||
|
|
||||||
echo "-------------------------------------------------" |
|
||||||
echo "Setup complete." |
|
||||||
echo "-------------------------------------------------" |
|
||||||
Loading…
Reference in new issue