4 if [[ $EUID -ne 0 ]]; then
5 echo "This script must be run as root"
9 function install_essential_packages {
10 export DEBIAN_FRONTEND=noninteractive
26 software-properties-common
28 update-alternatives --install /usr/bin/python python /usr/bin/python3 1
29 update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
31 add-apt-repository -y ppa:longsleep/golang-backports
33 apt-get install -y golang-go
36 install_essential_packages