开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Install TWS or IB gateway on Ubuntu and ARM64 bit processor


 

Since there was some interest in running TWS/IBGW on ARM (such as Raspberry Pi), here a quick update since the latest TWS/IBGW 1034 make this much more feasible.

Here a copy of my post in the IBC group:

==============================================

As Richard mentioned in this post, the Linux distributions of TWS/IBGW 10.34 now ship with a Java JRE17. That means that IBKR has made the appropriate changes in the source code so that TWS/IBGW now support the Java language changes introduced by Java 11 and Java 17.

That makes it much more feasible for TWS/IBGW on ARM devices, In fact, I was just now able to install and run TWS (not just IBGW) for the first time on my loyal but tired Raspberry Pi 2:
  • 900MHz quad-core ARM Cortex-A7 32bit CPU
  • 1GB RAM
  • Raspbian/Debian 12.9 (bookworm)

Before we go on, one quick disclaimer. TWS/IBGW have not been designed for the ARM architecture and their extensive dependence on Java 8 (until now) and Java FX2 features places significant (undocumented) requirements on the system, the Java JRE, and JavaFX . While running TWS/IBGW on ARM is an interesting exercise, seems to become quite stable, and will be useful in many scenarios, using them to trade in a live account is still a really bad idea.

With that out of the way, here the simple steps that I went through to bring up TWS. No modification of TWS scripts are required:

  • Install the BellSoft Full Java JRE 17.0.14 (in my case in /opt/Java/jre-17.0.14-full). JRE 21 will not work.

  • Install libgtk2.0 since TWS/IBGW need libgdk-x11-2.0.so.0. Most Linux versions now ship with GTK3 or GTK4

  • Download TWS from:

  • Install TWS with:

    app_java_home="/opt/Java/jre-17.0.14-full" sh tws-latest-standalone-linux-x64.sh

  • Run TWS with:
    JAVA_HOME="/opt/Java/jre-17.0.14-full" \
    ? ? INSTALL4J_JAVA_HOME="${JAVA_HOME}" \
    ? ? ? ? app_java_home="${JAVA_HOME}" \
    ? ? ? ? ? ? ? ? sh ~/Jts/1034/tws

That's it. It takes a while to start up (all spent in "Reading layout settings ..") but here it is ...

闯ü谤驳别苍

?

?

Join [email protected] to automatically receive all group messages.