forked from microsoft/DLWorkspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_prerequisites.sh
executable file
·61 lines (49 loc) · 1.66 KB
/
install_prerequisites.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
sudo apt-get update
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
apt-utils \
software-properties-common \
build-essential \
cmake \
git \
curl \
wget \
protobuf-compiler \
python-dev \
python-numpy \
python-pip \
cpio \
mkisofs \
apt-transport-https \
openssh-client \
ca-certificates \
vim \
sudo \
git-all \
sshpass \
bison \
libcurl4-openssl-dev libssl-dev
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-key fingerprint 0EBFCD88
# Install docker
echo "Docker Installation .... "
sudo apt-get update
sudo apt-get install docker-ce
echo "PIP installation .... "
sudo pip install --upgrade pip
sudo pip install setuptools
sudo pip install pyyaml jinja2 flask flask.restful tzlocal pycurl
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
# 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