OptionsApp on Linux: installation on an Ubuntu server
Set up an Ubuntu server (e.g. a STRATO VPS) with Remote Desktop, transfer files and install OptionsApp. The guide is divided into 4 parts that you work through in order. You can also download the whole guide as a PDF below.
Last updated: 17 November 2026
Recommended for experienced Linux users only
Setting up OptionsApp on Linux is demanding. We therefore recommend it only for users who already work with Linux. We cannot provide support for Linux itself, that is for setting up and running the server. The guide describes one way that works: an Ubuntu server that you operate via Remote Desktop.
Overview
At the end of this guide, your Linux server runs a graphical desktop that you connect to from Windows via Remote Desktop. OptionsApp and TWS or IB Gateway keep running in it, even when you close the Remote Desktop window.
| Step | Where | What | Part |
|---|---|---|---|
| 1 | Windows (PowerShell) | Create an SSH key | Part 1 |
| 2 | Your provider's customer portal | Install Ubuntu and add the key | Part 1 |
| 3 | Your provider's customer portal | Firewall: open ports 22 and 3389 | Part 1 |
| 4 | SSH as root | Run the setup script (desktop, Remote Desktop, Firefox, user) | Part 1 |
| 5 | SSH as root | Set up SSH access for your user | Part 1 |
| 6 | Windows | Connect via Remote Desktop | Part 2 |
| 7 | Windows and server | Transfer files | Part 2 |
| 8 | Remote Desktop session | Install OptionsApp | Part 3 |
| 9 | Remote Desktop session | Install TWS or IB Gateway and connect OptionsApp | Part 3 |
| 10 (optional) | Windows, server, customer portal | Access via Tailscale only, close all ports | Part 4 |
Requirements
- A Linux server (VPS) running Ubuntu LTS 24.04 or later, architecture x86-64 (amd64). ARM servers are not supported.
- At least 4 GB of RAM, 8 GB recommended, because TWS and OptionsApp run at the same time.
- A Windows PC with Windows 10 or 11. The programs
ssh,scp,ssh-keygenand Remote Desktop Connection are already included.
Placeholders in the commands
| Placeholder | Replace with | Example |
|---|---|---|
| IP-ADDRESS | the IP address of your server | 203.0.113.10 |
| USERNAME | the user name you create in step 4 | juan |
| TAILSCALE-IP | the Tailscale address of your server (step 10 only) | 100.101.102.103 |
The screenshots in this guide were taken on a server with exactly these example values; its host name is ubuntu. Wherever a screenshot shows one of them, use your own value.
You enter Windows commands in PowerShell (open the Start menu and type "PowerShell"). You enter server commands in the SSH session or in the terminal of the Remote Desktop session.
The guide in 4 parts
- Part 1: set up the Ubuntu server: steps 1 to 5. Create an SSH key on Windows, install Ubuntu at your provider and open ports 22 and 3389. Then the setup script installs the desktop, Remote Desktop, Firefox and the required libraries and creates your user, and your user gets SSH access.
- Part 2: Remote Desktop and file transfer: steps 6 and 7. Connect via Remote Desktop, optionally without the login window, and bring files to the server with
scpor directly in the browser. - Part 3: install OptionsApp and TWS or IB Gateway: steps 8 and 9. Install, update and back up OptionsApp, install TWS or IB Gateway and connect it to OptionsApp.
- Part 4: Tailscale, troubleshooting and security: step 10 (optional) closes all ports and allows access via Tailscale only. Plus troubleshooting and security notes.
Whole guide as a PDF
Download the guide as a PDF
The whole guide in one file, for printing or saving.