IbcAlpha / IBC

Automation of Interactive Brokers TWS. You can download the latest release here: https://github.com/ibcalpha/ibc/releases/latest
GNU General Public License v3.0
1.07k stars 185 forks source link

Run this and ib gateway in Debian or Ubuntu in fully headless mode #202

Closed anarchy89 closed 2 weeks ago

anarchy89 commented 1 year ago

Is it possible to run this and ib gateway in Debian or Ubuntu in fully headless mode?

rlktradewright commented 1 year ago

Yes it is possible.

Because ibgateway is a GUI application, you have to install something that makes it think there is a X-windows server. One way is to install xvfb. This handles all the X11 protocol exchanges with ibgateway but without actually displaying anything.

See https://en.wikipedia.org/wiki/Xvfb

For a detailed account of this plus a lot more see this:

https://dimon.ca/how-to-setup-ibc-and-tws-on-headless-ubuntu-in-10-minutes/

anarchy89 commented 1 year ago

I managed to get it running but its stuck on TWS loading stuck on "Reading layout settings..." any ideas?

rlktradewright commented 1 year ago

No idea. I've never tried doing this myself.

Bear in mind that the "Reading layout settings..." state can take quite a while, so make sure you're giving it enough time.

Also, please attach your IBC logfile to your reply - it contains a mass of useful diagnostic info, and might just help.

Also it might be worth detailing what you actually did to get it this far.

gnzsnz commented 1 year ago

i'm maintaining a docker imager that runs ib gateway, with ibc in headless mode. you can access i through VNC

https://github.com/gnzsnz/ib-gateway-docker

rkohli3 commented 5 months ago

I managed to get it running but its stuck on TWS loading stuck on "Reading layout settings..." any ideas?

I had the same issue when I was running on ec2. I upgraded my ec2 from micro to large, and voila worked. I def thought it was because of the processing power.