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
27 software-properties-common
29 update-alternatives --install /usr/bin/python python /usr/bin/python3 1
30 update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
32 add-apt-repository -y ppa:longsleep/golang-backports
34 apt-get install -y golang-go
37 install_essential_packages