BlogAll Blog Posts | Next Post | Previous Post
Friday, May 19, 2017Latest 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 https://www.virtualbox.org/wiki/Downloads and install it.
Just follow installer using default settings.
2. Download Ubuntu Linux Server from https://www.ubuntu.com/download/server
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:
You can check the IP address of your Linux computer:
sudo apt-get install openssh-server samba
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 http://www.putty.org 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 R. Landgraf
This blog post has received 2 comments.
All Blog Posts | Next Post | Previous Post