Skip to content

Instantly share code, notes, and snippets.

@rcguy
Last active Jan 15, 2017
Embed
What would you like to do?
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