Working Ubuntu 22.04 / Wine configuration

One of users shared this setup.

How to install and run AmiBroker 6.3x/6.4x x64 on Linux Ubuntu 22.04

sudo apt update
sudo apt upgrade -y
sudo apt install openssh-server                               # Login: ssh -X user@ip
sudo apt install wine
wine --version
wine AmiBroker6391x64.exe
wine at1380beta.exe
sudo apt install winetricks
winetricks mfc42
env WINEPREFIX="/$HOME/.wine" wine-stable "C:\Program Files\AmiBroker\Broker.exe"& # AmiBroker x64 (run)

CAVEAT:

Just to make sure that everybody understand that this setup is provided "as-is" without any guarantees, for Linux entusiasts/geeks/hackers only and you are on your own using Linux. We don't provide support for Linux based installations because:

  1. AmiBroker is being developed and tested on Windows only
  2. There are way too many distributions of Linux and it would be way too time consuming to test on and support all those variants and we don't have human resources to provide support non-dominating OSes.
8 Likes

The only bad part with wine in linux is that you expose your whole system to it and the scenario to run whatever windows executable.

There is also Bottles that supposedly bundles your windoes app in 'a bottle' having it isolated. Not sure if the whole wine infratructure is disconnected from your distro with it.

One next level could be to go with Qubes and have it run Windows isolated and install AB there. Qubes also has the ability to pop the window out of windows os and display it in dom0, meaning your desktop.

Quite a personal issue with me as well and am looking for a solution as I use linux and run AB in a VM on my NAS and connect to it thri VNC. Not the best option for performance and the graphics have some quirks.

Please note that AmiBroker is not single application. It consists of several executable files:

  • Broker.exe (main app)
  • Quote.exe (downloader)
  • AFLWiz.exe (AFL Code Wizard)
  • O3G.exe (3D chart viewer)
  • ReportEx.exe (report explorer)
  • HtmlView2.exe (report viewer)
  • IBController (AT interface)
  • AmiInstaller (updater/installer)
  • Emailer/EmailerSSL (email sending program)

These programs must communicate between each other.

Therefore I don't know if "sandboxing" (or whatever you would call the 'isolation') is a good idea. In fact 'sandboxing' done by antiviruses on Windows brings havoc and cause program malfunction. This is general remark, I don't know inner workings of Qubes or Bottles.

2 Likes

Qubes manages VMs and has one dom0 that runs the desktop and manages everything. It isolates VMs and you can't even copy paste from one to another without explicitly doing it. It's like having multiple PCs that you manage from one desktop. They have IPs from different classes also.

For windows apps and AB it would be as if running on a windows machine in VM.

As far as Bottles go, good point with the apps that need to interact. If anyone plays with it before I do I'd be happy to know how it worked out.

I understand the advantage of an Ubuntu/Wine solution in not having to install a Microsoft Windows OS as a virtual machine.
...
Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates the Windows API calls to corresponding POSIX calls in real time, eliminating the performance and memory penalties that other methods entail.
...
That sounds great, I will definitely research on this installation. Thank you for this hint ...