-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu18.sh
46 lines (30 loc) · 1.06 KB
/
ubuntu18.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
#!/bin/bash
# source bash
. ~/.bashrc
if [ $DEBUG_flag ]; then
echo "[$DEBUG_id] 2) Ubuntu initial configuration"
fi
# updating apts
echo "Updating apt..."
sudo apt-get update
sudo apt-get -y dist-upgrade
# getting packages if not present
echo "Installing packages...."
sudo apt-get -y install git-core build-essential curl pkg-config zip g++ zlib1g-dev unzip python3-dev wget psmisc
sudo apt-get -y install libproj-java libproj9 proj proj-data
# installing stble baseline
sudo apt-get install -y cmake libopenmpi-dev python3-dev zlib1g-dev
# If you are not using Anaconda, you need the following.
# check for conda
conda="$(which conda)"
if [ -z "$conda" ]; then
if [ $DEBUG_flag ]; then
echo "[$DEBUG_id] 2.5) Anaconda not detected, installing..."
fi
# install anaconda
curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
bash Anaconda3-2019.03-Linux-x86_64.sh
rm Anaconda3-2019.03-Linux-x86_64.sh
echo "Conda installed... please exit the terminal and relaunch the scripts "
exit 0
fi