-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
61 lines (47 loc) · 2.17 KB
/
install.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
59
60
61
#!/usr/bin/env bash
# Show welcome message
echo "Welcome to the Soundcube Dependency Installer!"
echo "!! CAREFUL: This script needs sudo permissions !!"
echo "This script will install necessary dependencies for Soundcube to work, including:"
echo "vlc, git, nano, htop, openssl and pulseaudio"
echo "along with: NodeJS 11 and Python 3.7 and their dependencies"
echo "If you have any of these installed, please install dependencies manually, looking at the individual steps in this script."
echo "Otherwise, press ENTER to start."
# Wait for ENTER
read -n 1 -s
mkdir tempPython
cd tempPython
# Install apt dependencies
echo "[Installer] Installing dependencies with apt-get..."
sudo apt-get update -y
sudo apt-get install -y vlc git nano htop openssl pulseaudio
# Install NodeJS 11
echo "[Installer] Installing NodeJS"
# Binary distribution from https://github.com/nodesource/distributions/blob/master/README.md
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install Python 3.7
echo "[Installer] Installing Python dependencies..."
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev uuid-dev
echo "[Installer] Downloading Python source..."
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
tar xf Python-3.7.3.tar.xz
cd Python-3.7.3
echo "[Installer] Configuring and making, this will take a while..."
sudo ./configure --with-optimizations --with-lto
sudo make -j 3
echo "[Installer] Installing Python 3.7..."
sudo make altinstall
echo "[Installer] Cleaning up..."
cd ..
cd ..
rm -rf tempPython
echo "[Installer] Installing pipenv..."
python3.7 -m pip install pipenv
echo "[Installer] Setting up pipenv..."
pipenv --python 3.7
# Include the cleanup below, if necessary
# echo "[Installer] Removing dependencies..."
# sudo apt-get remove --purge -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev uuid-dev
# sudo apt-get autoremove -y
# sudo apt-get clean