Add install.sh
commit
75bd5a36e0
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Goal: Script which automatically sets up a new Ubuntu Machine after installation
|
||||||
|
# This is a basic install, easily configurable to your needs
|
||||||
|
|
||||||
|
# Test to see if user is running with root privileges.
|
||||||
|
if [[ "${UID}" -ne 0 ]]
|
||||||
|
then
|
||||||
|
echo 'Must execute with sudo or root' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ensure system is up to date
|
||||||
|
echo '///---Start update the apt-get lib ---///'
|
||||||
|
sudo apt-get update -y
|
||||||
|
echo '///---End update the apt-get lib ---///'
|
||||||
|
|
||||||
|
# Upgrade the system
|
||||||
|
echo '///---Start update system ---///'
|
||||||
|
sudo apt-get upgrade -y
|
||||||
|
echo '///---End update system ---///'
|
||||||
|
|
||||||
|
# Install OpenSSH
|
||||||
|
echo '///---Start install OPenssh ---///'
|
||||||
|
sudo apt-get install openssh-server -y
|
||||||
|
echo '///---End install OpenSSH ---///'
|
||||||
Loading…
Reference in New Issue