How to Install Turtl Server on Alibaba Cloud ECS

By Arslan Ud Din Shafiq, Alibaba Cloud Tech Share Author. Tech Share is Alibaba Cloud’s incentive program to encourage the sharing of technical kledge and best practices within the cloud community.

Turtl server is open source storage service that focuses on privacy. Turtl stores your password and creates a cryptographic key and uses this key for encryption of your data before storing it anywhere on your device or on server. This means the data can be ready by only you or by the people chosen by you for sharing of data.

In this tutorial, I will be installing and setting up Turtl Server on Alibaba Cloud Elastic Compute Service (ECS) with Ubuntu 16.04 installed.


  • You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. If you are a new user, you can get $300 — $1200 worth in Alibaba Cloud credits for your new account. If you don’t k about how to setup your ECS instance, you can refer to this tutorial or quick-start guide. Your ECS instance must have at least 1GB RAM and 1 Core processor.
  • A domain name registered from Alibaba Cloud. If you have already registered a domain from Alibaba Cloud or any other host, you can update its domain nameserver records.
  • Domain name must be pointed to your Alibaba Cloud ECS’s IP address
  • Access to VNC console in your Alibaba Cloud or SSH client installed in your PC
  • Set up your server’s hostname and create user with root privileges.

Setting Up Your Server

Before proceeding with installation of any kind of package, use the following command to update your Ubuntu system. To execute this command, remember to login from non-root user with sudo privileges.

You will need to install git on your server. To install Git execute the command below.

(Optional) Execute the commands below to configure Git by providing your name and valid email address so that commit messages may contain your correct information.

Install curl on your server.

Install libtool on your server.

You will need to install subversion on your server. To install subversion execute the command.

Install make on your server.

Install automake on your server.

To install Libuv, you will need to download the Libuv package from its official repository.

Extract the files from downloaded archived directory.

Remove the downloaded archived directory.

Navigate to extracted directory using command below.

Execute the following commands to build, compile and install libuv.

Install RethinkDB:

You will need to install JSON database “RethinkDB”, Turtl will do settings automatically. To install RethinkDB, follow the steps below.

Add RethinkDB package in your repositories for installation by executing the following command.

Verify publisher key.

You will need to add link to your source for adding your Ubuntu version. A text file will open, copy the text below and paste in it and save the changes.

Update your system by executing the command below.

Execute the following command to install rethinkdb.

Rename the default.conf.sample file to default.conf

Execute the following command to restart rethinkdb.

Install Clozure Common Lisp:

As Turtl is written in Common Lips, you will need to install Clozure Common Lisp. To install it, follow the steps below.

Execute the following command to install it.

Execute the following commands to check if CCL has been installed successfully.

Execute the following commands to move ccl to bin, so that ccl can run from command line.

You can launch Lisp environment by executing following command.

Install QuickLisp and ASDF:

Turtl will load its dependencies through QuickLisp and ASDF builds Lisp software. To install these, follow the steps below.

Download quicklisp by using the commands below.

Execute the following command to install quicklisp.

Add QuickLisp to your init file.

Execute the command below to quit from CCL.

Download ASDF by executing command below.

Execute the following commands to load and install asdf.lisp in CCL environment.

Install and Configure Turtl:

Clone Turtl from Github by executing the following command.

Navigate to downloaded directory api and create file named launch.lisp. To do so, execute the commands below.

Copy and paste the following text in the opened file and save the file.

Clone Turtl dependencies in /home/quicklisp/local-projects by executing commands below.

Create .ccl-init.lisp by executing command below and copy-paste the following text and save the file.

Create default Turtl configuration file by executing the command below.

If you want to connect to your Alibaba Cloud ECS instance from a mobile or desktop client, you will need to edit the following text in configuration file. Remember to replace IP address in below text with your ECS IP address.

Execute the following command, it will automatically start Turtl server.

Set Up Firewalls and Ports

If you have activated firewalls, you will have to define a rule in Alibaba Cloud security group for your cloud server to add exception for port 80/tcp and 443/tcp. You can enable these ports while creating ECS instance, but in case if you have forgotten to unblock these ports, you can follow the procedure in this guide:

Install Turtl Client App

You will need to download Turtl Client app from its official website. It is available for Windows, macOSx, Linux and Android.

You will need to put your domain name or Alibaba Cloud IP address or if you are using app locally on your server, you can use localhost:8181 and create your username.

Your installation of Turtl on Alibaba Cloud ECS is now complete!

Original Source

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store