-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_system_deps.sh
More file actions
40 lines (33 loc) · 1.22 KB
/
Copy pathinstall_system_deps.sh
File metadata and controls
40 lines (33 loc) · 1.22 KB
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
#!/bin/bash
# -- Update and upgrade
sudo apt-get update -y && sudo apt-get upgrade -y
# -- Install miniconda for current stable Python release
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3*.sh
# -- Add R repo to apt, then use it to install R
sudo apt install dirmngr gnupg apt-transport-https ca-certificates \
software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys \
E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository \
'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
# -- Install apt useful packages
apt_pkgs=(
# system deps
'libcurl4-openssl-dev' 'libssl-dev' 'libxml2-dev' 'build-essential'
'libsodium-dev' 'libopenblas-dev'
# databases
'sqlite' 'mysql-server' 'mariabd-server-10.3' 'mariadb-server'
'libmariadbclient-dev'
# CLI tools
'git' 'pigz' 'htop' 'thefuck' 'silversearcher-ag'
# programming languages
'r-base' 'node-typescript'
)
echo "export LD_LIBRARY_PATH=/usr/lib/openblas-base/" >> ~/.bashrc
for pkg in "${apt_pkgs[@]}"
do
sudo apt-get install -y "$pkg" || exit 1
done
# -- Install rust via rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh