-
Notifications
You must be signed in to change notification settings - Fork 18
/
ubuntu-20.04.sh
executable file
·70 lines (59 loc) · 2.17 KB
/
ubuntu-20.04.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
62
63
64
65
66
67
68
69
70
#!usr/bin/env bash
start=`date +%s`
echo "updating ubuntu ..."
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
# python 3.x extensions
echo "installing Python 3.x extensions ..."
sudo apt-get -y install gcc binutils
sudo apt-get -y install software-properties-common
sudo apt-get -y install python3-dev python3-pip python3-setuptools
sudo apt-get -y install build-essential
sudo -H pip3 install --upgrade pip
hash -d pip3
pip3 install --upgrade setuptools
pip3 install ez_setup
pip3 install numpy==1.23.0 Cython
# talib
echo "installing talib ... (you should have more then 1Gb free of ram)"
sudo apt-get -y install libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz -q
tar -xzf ta-lib-0.4.0-src.tar.gz
cd ta-lib/
./configure --prefix=/usr
make
sudo make install
# install PosgreSQL database
echo "installing PostgreSQL ..."
cd
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - && sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update -y
sudo apt-get install -y postgresql-13 postgresql-contrib python3-psycopg2 libpq-dev
# install redis
sudo apt-get install redis-server -y
# install screen
echo "installing Screen ..."
sudo apt-get install -y screen
# install pip packages for jesse
echo "installing jesse ..."
pip3 install -r https://raw.githubusercontent.com/jesse-ai/jesse/master/requirements.txt
pip3 install jesse
# point python to python3
echo "alias python=python3" >> ~/.profile
echo "alias pip=pip3" >> ~/.profile
. ~/.profile
echo "cleaning..."
rm ta-lib-0.4.0-src.tar.gz && rm -rf ta-lib
echo "Finished installation. "
end=`date +%s`
runtime=$((end-start))
echo "Installation took ${runtime} seconds."
echo "Here's the output of 'python --version' (it should be 'Python 3.x.x'):"
python --version
echo "Here's the output of 'pip --version':"
pip --version
# install Oh My Zsh
echo "installing Oh My Zsh"
sudo apt-get install -y git zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"