2017-01-26 23:42:03 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
sudo apt-get update
|
2017-09-19 01:16:22 +03:00
|
|
|
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
|
2017-09-16 04:34:31 +03:00
|
|
|
apt-utils \
|
|
|
|
software-properties-common \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
wget \
|
|
|
|
protobuf-compiler \
|
|
|
|
python-dev \
|
|
|
|
python-numpy \
|
2017-01-26 23:42:03 +03:00
|
|
|
python-pip \
|
2017-09-16 04:34:31 +03:00
|
|
|
cpio \
|
|
|
|
mkisofs \
|
|
|
|
apt-transport-https \
|
|
|
|
openssh-client \
|
|
|
|
ca-certificates \
|
|
|
|
vim \
|
|
|
|
sudo \
|
|
|
|
git-all \
|
|
|
|
sshpass \
|
2017-09-19 01:16:22 +03:00
|
|
|
bison \
|
|
|
|
libcurl4-openssl-dev libssl-dev
|
2017-09-16 04:34:31 +03:00
|
|
|
|
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
2017-01-26 23:42:03 +03:00
|
|
|
|
|
|
|
sudo add-apt-repository \
|
2017-09-16 04:34:31 +03:00
|
|
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
|
|
|
$(lsb_release -cs) \
|
|
|
|
stable"
|
|
|
|
|
|
|
|
sudo apt-key fingerprint 0EBFCD88
|
|
|
|
|
|
|
|
# Install docker
|
2017-09-19 01:16:22 +03:00
|
|
|
echo "Docker Installation .... "
|
2017-01-26 23:42:03 +03:00
|
|
|
sudo apt-get update
|
2017-09-16 04:34:31 +03:00
|
|
|
sudo apt-get install docker-ce
|
|
|
|
|
2017-09-19 01:16:22 +03:00
|
|
|
echo "PIP installation .... "
|
|
|
|
sudo pip install --upgrade pip
|
|
|
|
sudo pip install setuptools
|
|
|
|
sudo pip install pyyaml jinja2 flask flask.restful tzlocal pycurl
|
2017-09-16 04:34:31 +03:00
|
|
|
|
|
|
|
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | \
|
|
|
|
sudo tee /etc/apt/sources.list.d/azure-cli.list
|
|
|
|
|
|
|
|
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 417A0893
|
|
|
|
sudo apt-get install apt-transport-https
|
|
|
|
sudo apt-get update && sudo apt-get install azure-cli
|
2017-01-26 23:42:03 +03:00
|
|
|
|
2017-09-19 03:10:10 +03:00
|
|
|
# Disable Network manager.
|
|
|
|
if [ -f /etc/NetworkManager/NetworkManager.conf ]; then
|
|
|
|
sed "s/^dns=dnsmasq$/#dns=dnsmasq/" /etc/NetworkManager/NetworkManager.conf > /tmp/NetworkManager.conf && sudo mv /tmp/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf
|
|
|
|
sudo service network-manager restart
|
|
|
|
fi
|
|
|
|
|
2017-01-26 23:42:03 +03:00
|
|
|
|
2017-06-03 05:50:22 +03:00
|
|
|
|