From 1f5640b4b84efca49761b82ee874cf374bfed248 Mon Sep 17 00:00:00 2001 From: mdcaddic Date: Sat, 14 Mar 2020 21:26:05 +1100 Subject: [PATCH] Update installing_gekko_on_ubuntu_linux.md Minor edits to sequence after verifying on ubuntu 18.04 on Azure --- .../installing_gekko_on_ubuntu_linux.md | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/docs/installation/installing_gekko_on_ubuntu_linux.md b/docs/installation/installing_gekko_on_ubuntu_linux.md index 64caa6be2..5b8128371 100644 --- a/docs/installation/installing_gekko_on_ubuntu_linux.md +++ b/docs/installation/installing_gekko_on_ubuntu_linux.md @@ -11,34 +11,36 @@ Install PostgreSQL (https://computingforgeeks.com/install-postgresql-12-on-ubunt 1. Create a virtual machine on Google Cloud compute (Ubuntu 19.10) or Azure (18.04 LTS) 2. Enable ssh and connect via putty (or not) 3. Install git if required (sudo apt install git) -4. Install build dependencies (sudo apt-get install build-essential) -5. Install npm if required (sudo apt install npm) -6. curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - -7. sudo apt-get install -y nodejs -8. git clone https://github.com/mark-sch/GreenGekko -9. cd gekko -10. Install tulip and talib (npm i talib tulind) -11. npm install -12. cd exchange +4. sudo apt update +5. Install build dependencies (sudo apt-get install build-essential) +6. Install npm if required (sudo apt install npm) +7. Install an updated version of node (curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -) +8. sudo apt-get install -y nodejs +9. git clone https://github.com/mark-sch/GreenGekko +10. mv GreenGekko\ gekko\ +11. cd gekko +12. Install tulip and talib (npm i talib tulind) 13. npm install +14. cd exchange +15. npm install ### Postgres Install -14. wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - -15. echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list -16. sudo apt update -17. sudo apt upgrade -18. sudo apt -y install postgresql-12 postgresql-client-12 -19. sudo service postgresql start +16. wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - +17. echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list +18. sudo apt update +19. sudo apt upgrade +20. sudo apt -y install postgresql-12 postgresql-client-12 +21. sudo service postgresql start ### Configure Postgres -20. sudo -u postgres psql -21. psql -c "alter user postgres with password 'StrongAdminP@ssw0rd'" -22. create user gekkodbuser with encrypted password '1234'; -23. alter role gekkodbuser createdb; +22. sudo -u postgres psql +23. alter user postgres with password 'StrongAdminP@ssw0rd'; +24. create user gekkodbuser with encrypted password '1234'; +25. alter role gekkodbuser createdb; ### Other stuff to mke your life easier 24. Install pm2 (sudo npm install pm2 -g) -25. Create aliases (edit ./bashrc) \ No newline at end of file +25. Create aliases (edit ./bashrc)