Skip to content

Instantly share code, notes, and snippets.

@rcguy
Last active January 15, 2017 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcguy/a5756cd47d39515d03c7 to your computer and use it in GitHub Desktop.
Save rcguy/a5756cd47d39515d03c7 to your computer and use it in GitHub Desktop.
Non-Interactive Script that adds the Webmin apt repository then installs Webmin and dependencies
#!/bin/bash
# Adds the Webmin apt repository then installs Webmin and dependencies
# Tested on: Ubuntu Server 14.10 - x64 + x86 / 2 Cores / 2GB RAM / 20 GB SSD / VPS
# ==> MAIN PROGRAM <==
set -e
cat >>/etc/apt/sources.list.d/webmin.list <<EOF
# webmin
deb http://download.webmin.com/download/repository sarge contrib
EOF
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
apt-get update
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions libapt-pkg-perl python webmin -y
rm jcameron-key.asc
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment