Accessing Java Web Start based Server Remote Boards using Firefox

30.09.2020 | Uwe Grawert in howto

The latest possible version is Java 1.8 in combination with Firefox 52.8.0. Since both Java and Firefox versions are old and very likely possess serious vulnerabilities, it is necessary to emphasize that they should be used solely for accessing trusted remote server boards, and nothing else!

The Docker image we use is based on CentOS 6 with additional installations of Java and Firefox. Therefore X11 server is necessary to display the browser window. Linux and Unix based operating systems support X11 out of the box. MacOS and Windows users will have to download a free implementation of X11.

Let’s pull the Docker image first.

For Linux users the DISPLAY variable needs to be adapted as following.

For MacOS users, access to the X11 server needs to be granted and the DISPLAY variable needs to be set accordingly.

With these settings we can run the docker container as following:

If a proxy is necessary to access the remote board, the following file needs to be present and made available to the container.

proxy.js:

The file is passed as volume to the container by adding the following option to the Docker command.

A custom preferences file can be added as well, by adding the following option to the Docker command:

The Git project for building the Docker image can be found here.

A start script is available, which can be placed into PATH to run the container from a simple command.

Uwe Grawert
Uwe Grawert
Uwe Grawert has been with B1 Systems for more than 8 years, working as Linux and Unix Consultant. He is dealing with Openstack since 4 years and lately with Kubernetes.

 


Haben Sie Anmerkungen oder Nachfragen? Melden Sie sich unter blog%b1-systems.de
Col 2