All Blog Posts  |  Next Post  |  Previous Post

TMS XData REST Server on Linux - Step by Step - Part 1


Friday, May 19, 2017

Latest versions of TMS XData and TMS Sparkle have been just released with a major feature: Linux support. You can now deploy your XData/Sparkle server to Linux using Delphi 10.2 Tokyo, and in this video/blog post series, I will show you how to create and deploy such a server step-by-step. Since some Delphi users are mostly Windows users, I believe some of them are not very familiar with Linux and/or Apache, and because of that this tutorial is very basic and very detailed, covering it from the very beginning.

Here is the video with the first part: installing Linux on VirtualBox and connecting to it from Windows computer.

We will use Virtual Box to create our virtual machine, but you can choose any tool you want, if you are used to: VMWare, Parallels, Hyper-V, etc.

1. Download VirtualBox from and install it.

Just follow installer using default settings.

2. Download Ubuntu Linux Server from

We will use the Server edition here (no GUI available by default). Save the ISO file in some folder, we will use it in step 3 below.

3. Create and configure VM

a) Create a new VM, name it, choose Linux as the guest OS
b) Just use default settings in the VM wizard, you can increase RAM or disk size if you want to
c) Once VM is created, change Network Adapter to Bridge (optional, I personally find it easier as it appears as another computer in the network)
b) Add the Ubuntu ISO file as a virtual disk in the VM storage

4. Launch VM and install Ubuntu

Launch VM and the Ubuntu installer will start from the ISO. Just use default settings for most of the install. You can follow the video for more details, but the installer will just ask for user name and password to be created, and several basic settings that you can just confirm what is presented.

5. Login and update OS

After install is complete, login and upgrade the system with the following commands on Linux terminal:

sudo apt-get update
sudo apt-get dist-upgrade

6. Preparing Linux for remote connection

We shouldn't have to switch to Linux VM all the time we want to operate on it. We can just connect to it from Windows. For that, we would need to install openssh-server package, and it will help if we install Samba so we can find our Linux computer by host name:

sudo apt-get install openssh-server samba
You can check the IP address of your Linux computer:

hostname -I
or just check the host name using hostname command:

7. Connect from Windows

We don't have to switch to Linux VM all the time we want to operate on it. We can just connect to it from Windows. For that, download Putty from and install it.

It will ask for the IP or host name for the connection, type the one you found in step 6 above, login using your credentials, and you're done.

In the next part we will create our first "Hello, World" application on Linux using Delphi.

Wagner Landgraf


This blog post has received 2 comments.

1. Saturday, May 20, 2017 at 9:42:46 AM

I recommend to use the Total Commander''s
SFTP 1.4.2 plugin to connect to the Linux system.

Zoltan Karpati

2. Thursday, November 8, 2018 at 9:42:32 PM

The steps by step provided here can be very useful for the Linux users as they can do the programming regarding their accessibility and that is why errors like <a href=""> Dell error code 2000-0142 </a> can be fixed.

john wright

Add a new comment

You will receive a confirmation mail with a link to validate your comment, please use a valid email address.
All fields are required.

All Blog Posts  |  Next Post  |  Previous Post