Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (sleakz, AndrewAMD), 684 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Free VPS for Zorro and Metatrader on Linux #468980
10/31/17 20:12
10/31/17 20:12
Joined: Oct 2017
Posts: 25
F
fran Offline OP
Newbie
fran  Offline OP
Newbie
F

Joined: Oct 2017
Posts: 25
Hi,
I leave you a step by step guide to run a free VPS in AWS for 12 months. This guide is to set up the Linux VPS Server to run Zorro and Metatrader and connect to it via Windows Remote Connection (RDP):

1. Create an account in AWS (https://aws.amazon.com)
2. Create an EC2 instance:
2.1. Select Ubuntu Server 16.04 (t2.micro, Free tier elegible)
2.2. Follow the AWS guide to connect to your Server via ssh (with PuTTy for example)
2.3. Go to EC2 Dashboard - Security Groups and edit the security group attached to the instance created in step 2.1, edit Inbound Rules and add the TCP port 3389 for RDP
3. Login to your server via ssh with PuTTY
4. Change the ubuntu's user password: sudo passwd ubuntu
5. Update the system: sudo apt update && sudo apt upgrade
6. Install the LXDE desktop:
sudo apt-get install lxde
sudo apt install lxsession-logout
sudo apt-get install language-selector-gnome
(If you want the full Lubuntu desktop: sudo apt install lubuntu-desktop)
(If you prefer XFCE desktop: sudo apt install xfce4)
(If you prefer Gnome 3 desktop: sudo apt-get install gnome-shell)
(If you prefer KDE desktop: sudo apt-get install kubuntu-desktop)
7. Install a Windows help chm file reader: sudo apt-get install xchm
8. Install XRDP to connect via "Remote Desktop" from Windows
sudo add-apt-repository ppa:hermlnx/xrdp
sudo apt-get update
sudo apt-get install xrdp
9. Install wine to run Windows apps:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
10. Open "Remote Desktop Connection" on Windows:
Computer: ec2-xxx-xxx-xxx-xxx.xxxxxxxxxxxxxxxx.amazonaws.com
11. Login:
user: ubuntu
password: the one you set in step 4
12. Open a terminal and check if the keyboard is in your language, if it is not your local language do this:
12.1. Edit this file with vi or nano: sudo nano /etc/xrdp/xrdp_keyboard.ini
12.2. Go to [default_rdp_layouts] and add in the first one your layout code (layouts codes here: https://github.com/eby/rdesktop/blob/master/doc/keymap-names.txt)
12.3. Go to [default_layouts_map] and in the first one add your language

Example for Spanish keyboard:
[default_rdp_layouts]
rdp_layout_es=0x0000040A

[default_layouts_map]
rdp_layout_es=es

13. Download and install Zorro and Metatrader via wine

UPDATE: if you get a message in wine saying that MT requires Windows 7 with Service Pack 1, run "winecfg" in the terminal and set the operative system to Windows 7 or Windows 10.

This guide is only to set up your environment, Zorro or Metatrader works under Linux but I have not tested how reliable it works.
Hope it helps.




Last edited by fran; 11/05/17 22:00.
Re: Free VPS for Zorro and Metatrader on Linux [Re: fran] #469049
11/04/17 10:55
11/04/17 10:55
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Code:
Zorro or Metatrader works under Linux but I have not tested how reliable it works


Did you try TradeMode already and if how long did you let it run? I did't face problems with Metatrader so far but (on my platform) Zorro dies frequently while trading. The cause is most likely wine because in Windows Zorro does not but I'd like to find out the reason a bit closer.

Re: Free VPS for Zorro and Metatrader on Linux [Re: Sphin] #469053
11/04/17 16:37
11/04/17 16:37
Joined: Oct 2017
Posts: 25
F
fran Offline OP
Newbie
fran  Offline OP
Newbie
F

Joined: Oct 2017
Posts: 25
I did not try TradeMode yet, At the moment I have been trading Zorro Z1 via MT bridge in demo account and everything works fine so far (I have just checked the VPS server right now and is still fine), I have 2 trade operations opened by Zorro. I started to test it just 2 days ago with 2 different brokers. I will try TradeMode to see what happens. If you give me details about what you are testing I can try to reproduce it in my VPS to see what happens.

Last edited by fran; 11/04/17 16:38.
Re: Free VPS for Zorro and Metatrader on Linux [Re: fran] #469054
11/04/17 18:39
11/04/17 18:39
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
If you are trading you are just using TradeMode. It doesn't mind if it's on a demo account. If all works fine for you than I guess my troubles concern to my setup so I have to dig deeper. Thanks for the info!

Re: Free VPS for Zorro and Metatrader on Linux [Re: Sphin] #469103
11/05/17 14:25
11/05/17 14:25
Joined: Oct 2017
Posts: 25
F
fran Offline OP
Newbie
fran  Offline OP
Newbie
F

Joined: Oct 2017
Posts: 25
Did you follow all the steps above?

Re: Free VPS for Zorro and Metatrader on Linux [Re: fran] #469108
11/05/17 16:29
11/05/17 16:29
Joined: Sep 2017
Posts: 235
H
Hredot Offline
Member
Hredot  Offline
Member
H

Joined: Sep 2017
Posts: 235
I'm confused. Why get ubuntu when you can have a windows server from the same retailer. Isn't Zorro written for Windows? Why get the wrong operating system for the task at hand?

Re: Free VPS for Zorro and Metatrader on Linux [Re: Hredot] #469112
11/05/17 18:09
11/05/17 18:09
Joined: Oct 2017
Posts: 25
F
fran Offline OP
Newbie
fran  Offline OP
Newbie
F

Joined: Oct 2017
Posts: 25
In my case for these reasons:
- In AWS, in free tier elegible (a free basic VPS for 12 months), Ubuntu with MT4 has better performance than Windows (with the same hardware machine conditions)
- Under the same machine conditions, in AWS a VPS Ubuntu based is cheaper that Windows VPS
Ubuntu just more economic and better performance for cheaps VPS with the same hardware. If you wanna use Zorro and MT4 in a free VPS for 12 months, under Windows is very hard because of the slow performance. If you can afford a good paid VPS Windows based go for it.

Last edited by fran; 11/05/17 18:13.
Re: Free VPS for Zorro and Metatrader on Linux [Re: fran] #469113
11/05/17 18:30
11/05/17 18:30
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
I agree to fran and beside of this: I like to experiment. The biggest surprise for me so far is that MT4 on Linux seems to bind really less ressources as on Windows where it often slows down the machine especially if one uses several MT4 processes.

Re: Free VPS for Zorro and Metatrader on Linux [Re: Sphin] #469122
11/05/17 23:31
11/05/17 23:31
Joined: Sep 2017
Posts: 235
H
Hredot Offline
Member
Hredot  Offline
Member
H

Joined: Sep 2017
Posts: 235
Wait, so you are saying that running a windows native application on linux works faster than on windows having the same hardware?
That sounds hard to believe...
What are the stats you observe? By how much is it faster?

Re: Free VPS for Zorro and Metatrader on Linux [Re: Hredot] #469156
11/06/17 18:39
11/06/17 18:39
Joined: Oct 2017
Posts: 25
F
fran Offline OP
Newbie
fran  Offline OP
Newbie
F

Joined: Oct 2017
Posts: 25
I do not mean just MT or Zorro performance, I mean mainly operative system performance, that also affects the overall computer performance. If the operative system runs faster, the apps run faster.

You can do the test:
create two t2.micro instances in AWS, free for 12 months. One of them with Windows + MT and the other one Ubuntu + MT. Which one can you work better?

I am running several Ubuntu machines with MT4/MT5 with and without Zorro since few days ago. Zero problems so far, they keep running and trading 24h/day.

Last edited by fran; 11/06/17 18:41.
Page 1 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1