4 if [ "$(lsb_release -r | awk '{print $2}')" == "14.04" ]
6 # openjdk-8-jdk is not available in 14.04 repos by default
7 add-apt-repository ppa:openjdk-r/ppa
10 # Standard update + upgrade dance
14 # Fix the silly notion that /bin/sh should point to dash by pointing it to bash
16 sudo update-alternatives --install /bin/sh sh /bin/bash 100
19 apt-get install -y build-essential autoconf automake bison libssl-dev ccache libtool git dkms debhelper libganglia1-dev libapr1-dev libconfuse-dev dh-systemd
22 apt-get install -y --force-yes bridge-utils vim gdb iproute2
24 # Install debian packaging tools
25 apt-get install -y debhelper dkms
28 apt-get install -y linux-image-extra-`uname -r`
30 # Install jdk and maven
31 apt-get install -y openjdk-8-jdk
32 # $$$ comment out for the moment
33 # apt-get install -y --force-yes maven3
35 # Load the uio kernel module
36 modprobe uio_pci_generic
38 # Make sure uio loads at boot time
39 echo uio_pci_generic >> /etc/modules
41 # Setup for hugepages using upstart so it persists across reboots
42 sysctl -w vm.nr_hugepages=1024
44 echo "hugetlbfs /mnt/huge hugetlbfs defaults 0 0" >> /etc/fstab
47 # Install virtualenv for test execution
48 apt-get install -y --force-yes python-virtualenv python-pip python-dev python3-dev
53 yum groupinstall 'Development Tools' -y
54 yum install openssl-devel -y
55 yum install glibc-static -y
57 # Install jdk and maven
58 yum install -y java-1.8.0-openjdk-devel
60 # Install python development
61 yum install -y python34-devel
64 yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
66 # Install components to build Ganglia modules
67 yum install -y apr-devel
68 yum install -y --enablerepo=epel libconfuse-devel
69 yum install -y --enablerepo=epel ganglia-devel
70 yum install -y --enablerepo=epel mock
73 echo "---> Attempting to detect OS"
75 if [ -f /usr/bin/yum ]
84 echo "---> RH type system detected"
88 echo "---> Ubuntu system detected"
92 echo "---> Unknown operating system"