Tutorial: Haasonline Trade Server running on VPS

General Discussion about Haasbot.
henriquerzo
Registered User
Posts: 2
Joined: Sat Jan 20, 2018 3:35 pm

Tutorial: Haasonline Trade Server running on VPS

Postby henriquerzo » Tue Jan 23, 2018 1:17 am

Hello guys!

There is a guide on how to run the HTS on a virtual private server.

First you need to create your VPS. I used Digital Ocean which is easier to manage than Amazon.

1. Create your Digital Ocean account here https://m.do.co/c/dc50841e6701

2. Create a droplet machine. Ideally Ubuntu 16.04.3 and the 4th option config:
    4 vCPUs | 8 GB RAM | 160 GB SSD

3. Choose a datacenter region. Prefer one that is close to the exchanges you pretend to use

4. Set an username and password or add your public ssh key.

5. Create the droplet

Now if you are on windows you need to download a linux like terminal software. I did choose Cmder (http://cmder.net/).

1. Download HTS and extract it

2. On Cmder go to the extracted folder using cd

Code: Select all

cd /AllPlatforms

3. Do an scp command to send the HTS ubuntu source code to your VPS

Code: Select all

scp linux32.tar.gz [email protected]<YOUR.DROPLET.IP>:/root/

Lets log on your VPS and configure it

1. ssh to your vps

Code: Select all

ssh [email protected]<YOUR.DROPLET.IP>

2. Configure the VPS server time to your locale and synchronize it (to check your locale enter timedatectl list-timezones)

Code: Select all

sudo timedatectl set-timezone <YOUR/LOCALE>
sudo timedatectl set-ntp no
sudo apt-get install ntp

3. We need to install mono .net framework

Code: Select all

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

Code: Select all

echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list

Code: Select all

sudo apt-get update
sudo apt-get install mono-complete

Finally lets install HTS

1. Create a file named haas, move the .gz to it

Code: Select all

mkdir haas
mv linux32.tar.gz haas/

2. Go to the file and extract the .gz

Code: Select all

cd haas
tar -zxvf linux32.tar.gz

3. Run the beta updater and haasbot

Code: Select all

sudo ./BetaUpdate.sh
sudo ./Haasbot.sh

4. Edit the settings to match your machine

Code: Select all

sudo nano ../HTS/Settings/MainSettings.XML

4.1. Set <OpenInterfaceOnStartup> to false and <HostingAdres> to your droplet IP (the same one you used to ssh into your VPS)
4.2. Then press Ctrl + X to exit, Y to save and press enter to confirm

5. Open HTS ports

Code: Select all

sudo ufw allow 8090
sudo ufw allow 8092

6. Close all mono processes and restart HTS

Code: Select all

sudo killall mono
sudo rm /tmp/HTS.exe.lock
sudo ./Haasbot.sh


Done!

Now you can log in your HTS from any web browser using YOUR.DROPLET.IP:8090

I strongly recommend you to set two factor authentication since anyone can sniff your packets to discover your password.

Hope you like the guide and if you have any questions or suggestions let me know.

Regards!

To donate
BTC 1Lu5PuaRnexJ3iZaaEpGjV3wbMbsxgCu5F
DASH XioPFXvfExwt6pKAWAFE2F7snxzd1TRjUA
ETH 0x13C1D54BE2FD704320486918a13E446E463eAC25

prachijain
Registered User
Posts: 2
Joined: Tue Mar 13, 2018 9:50 am
Contact:

Re: Tutorial: Haasonline Trade Server running on VPS

Postby prachijain » Fri Apr 06, 2018 9:58 am

henriquerzo wrote:Hello guys!

There is a guide on how to run the HTS on a virtual private server.

First you need to create your VPS. I used Digital Ocean which is easier to manage than Amazon.

1. Create your Digital Ocean account here https://m.do.co/c/dc50841e6701

2. Create a droplet machine. Ideally Ubuntu 16.04.3 and the 4th option config:
    4 vCPUs | 8 GB RAM | 160 GB SSD

3. Choose a datacenter region. Prefer one that is close to the exchanges you pretend to use

4. Set an username and password or add your public ssh key.

5. Create the droplet

Now if you are on windows you need to download a linux like terminal software. I did choose Cmder (http://cmder.net/).

1. Download HTS and extract it

2. On Cmder go to the extracted folder using cd

Code: Select all

cd /AllPlatforms

3. Do an scp command to send the HTS ubuntu source code to your VPS

Code: Select all

scp linux32.tar.gz [email protected]<YOUR.DROPLET.IP>:/root/

Lets log on your VPS and configure it

1. ssh to your vps

Code: Select all

ssh [email protected]<YOUR.DROPLET.IP>

2. Configure the VPS server time to your locale and synchronize it (to check your locale enter timedatectl list-timezones)

Code: Select all

sudo timedatectl set-timezone <YOUR/LOCALE>
sudo timedatectl set-ntp no
sudo apt-get install ntp

3. We need to install mono .net framework

Code: Select all

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

Code: Select all

echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list

Code: Select all

sudo apt-get update
sudo apt-get install mono-complete

Finally lets install HTS

1. Create a file named haas, move the .gz to it

Code: Select all

mkdir haas
mv linux32.tar.gz haas/

2. Go to the file and extract the .gz

Code: Select all

cd haas
tar -zxvf linux32.tar.gz

3. Run the beta updater and haasbot

Code: Select all

sudo ./BetaUpdate.sh
sudo ./Haasbot.sh

4. Edit the settings to match your machine

Code: Select all

sudo nano ../HTS/Settings/MainSettings.XML

4.1. Set <OpenInterfaceOnStartup> to false and <HostingAdres> to your droplet IP (the same one you used to ssh into your VPS)
4.2. Then press Ctrl + X to exit, Y to save and press enter to confirm

5. Open HTS ports

Code: Select all

sudo ufw allow 8090
sudo ufw allow 8092

6. Close all mono processes and restart HTS

Code: Select all

sudo killall mono
sudo rm /tmp/HTS.exe.lock
sudo ./Haasbot.sh


Done!

Now you can log in your HTS from any web browser using YOUR.DROPLET.IP:8090

I strongly recommend you to set two factor authentication since anyone can sniff your packets to discover your password.

Hope you like the guide and if you have any questions or suggestions let me know.

Regards!

To donate
BTC 1Lu5PuaRnexJ3iZaaEpGjV3wbMbsxgCu5F
DASH XioPFXvfExwt6pKAWAFE2F7snxzd1TRjUA
ETH 0x13C1D54BE2FD704320486918a13E446E463eAC25


Thanks for sharing information, really useful.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest