The blessing and curse with Linux is that you have complete control over everything on the system. This also means almost every install is custom in some way, and there’s hundreds of ways to break things. Is there an IT administrator you can talk to for help?
Thanks. Before I try the above commands, do you foresee that it might break other packages that I already have installed? Is there any other workaround to get Coreform Cubit 2021.5 to work on my Ubuntu 18.05 LTS ?
I don’t have an IT administrator that can help me.
It may break other packages, I don’t know what you have installed on your system.
If you don’t want to jeopardize your system, you can install Docker and I can give you a Dockerfile that will let you run Cubit inside a Docker container and connect to the GUI in your browser.
centos7-cubit-gui.zip (1.1 KB)
Download the Cubit 2021.5 RPM installer, name it Cubit.rpm, and place it next to the Dockerfile. Name your license file license.lic, and also place it next to the Dockerfile. Also make sure you have the included supervisord.conf next to the Dockerfile.
Build the image like this with your terminal in the Dockerfile directory:
sudo docker container run -d -p 6080:6080 -p 5900:5900 -v /dev/shm:/dev/shm -v <path to a folder on your machine>:/home/coreform/data --name cubit_gui centos_gui_1
Then open up a browser tab and connect to http://localhost:6080/#/ in your browser. That’ll show a GUI where you can then run Cubit. Save any data in /home/coreform/data and it’ll be accessible in the path you specified as a volume mount.
Thanks for the detailed explanation. I have a question regarding the license:
I am accessing a floating license that is hosted in a different computer. In the previous instruction for the docker, how do I put my license in a license.lic file?
Unable to find image ‘centos_gui_1:latest’ locally
docker: Error response from daemon: pull access denied for centos_gui_1, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied.
See ‘docker run --help’.
Sorry, switch cubit_gui and centos_gui_1. The --name argument is the name of the container, the last argument is the name of the image you built with docker build and should match the -t argument there.
To fix that, instead of passing in the -p options when you run the docker container, run it with --network=host. Your container will then use the host network instead of port forwarding, and should be able to reach your license server.
When I tried the command above with --network=host, then now the http://localhost:6080/#/ does not work anymore. I get a failed connection error, see below.
sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN Anywhere
22 ALLOW IN Anywhere
5900 ALLOW IN Anywhere
6800 ALLOW IN Anywhere
6080 ALLOW IN Anywhere
22/tcp (v6) ALLOW IN Anywhere (v6)
22 (v6) ALLOW IN Anywhere (v6)
5900 (v6) ALLOW IN Anywhere (v6)
6800 (v6) ALLOW IN Anywhere (v6)
6080 (v6) ALLOW IN Anywhere (v6)
If that’s not working, then you’ll have to run the docker container with the -p options again and talk to your network administrator about connecting your docker container to your local network or VPN that your license server is on.