Skip to content

Instantly share code, notes, and snippets.

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 nickadam/c11e38c3084cfae94520 to your computer and use it in GitHub Desktop.
Save nickadam/c11e38c3084cfae94520 to your computer and use it in GitHub Desktop.
Ubuntu-Docker Failover Pair 1 Base Packages
#!/usr/bin/env bash
# Install openmanage
echo 'deb http://linux.dell.com/repo/community/deb/latest /' | tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F
gpg -a --export 1285491434D8786F | apt-key add -
apt-get update
apt-get install -y srvadmin-all
# Install docker
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb https://apt.dockerproject.org/repo ubuntu-trusty main' | tee -a /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y linux-image-extra-$(uname -r)
apt-get install -y docker-engine
# Install haproxy
add-apt-repository -y ppa:vbernat/haproxy-1.6
apt-get update
apt-get install -y haproxy vim-haproxy
# Set the clock before installing ntp
ntpdate pool.ntp.org
# Install utilities
DEBIAN_FRONTEND=noninteractive apt-get -q -y install build-essential linux-headers-$(uname -r) htop vnc4server keepalived vim nmap curl htop tcpdump tcptrack iotop iftop iperf fluxbox xfce4-terminal autossh btrfs-tools mutt ntpdate whois drbd8-utils traceroute openvswitch-switch clamav clamav-daemon ntp krb5-user samba winbind libnss-winbind libpam-winbind ssh
# Install pipework
git clone https://github.com/jpetazzo/pipework.git
mv pipework/pipework /usr/local/sbin/
# Update clam signatures
freshclam
# Exclude everything but /home/ and /tmp/
ls -d /*/ | grep -v "/home/" | grep -v "/tmp/" | sed 's/^/ExcludePath ^\//g' >> /etc/clamav/clamd.conf
# Start daemons
service clamav-daemon start
service clamav-freshclam start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment