Installing Wibu CodeMeter Linux

From Tuflow
Revision as of 11:39, 1 February 2022 by Jaap.vandervelde (talk | contribs) (updated port number and added remark about http / https access to web interface)
Jump to navigation Jump to search

This article provide a basic set of instructions to install the Wibu CodeMeter Runtime on a Linux host through the command line interface (CLI). For more information about using Wibu dongles or software licenses, refer to Wibu Dongles.

The Linux commands used on this wiki should work on most modern Linux distributions, but were tested on CentOS and Debian. Note that these instructions are provided as a courtesy to users new to Linux, please ensure you understand what the commands mean before you run them and be aware of the general disclaimer.

Getting the CodeMeter Runtime

The appropriate version of the CodeMeter Runtime can be obtained from the Wibu website at www.wibu.com/support/user/user-software.html.

If you are using Debian, Ubuntu, Mint or another Linux distribution in the Debian family of distributions, you should obtain a copy of the `.deb` installer for your hardware. If you are using Red Hat (RHEL), Fedora, CentOS or another Linux distribution in the Red Hat family of distributions, you should obtain a copy of the `.rpm` installer for your hardware. If your hardware supports 64-bit software (which is likely for modern systems), using that version is recommended. From here on, we'll refer to 'Debian' or 'Red Hat' to mean any distribution in that family.

Depending on your level of access to the machine running Linux and whether or not it is running a graphical user interface, you may have some trouble getting the file onto your machine. You can download the file directly from the command line with:

wget -O codemeter.rpm <direct link>

where "<direct link>" is the 'direct link' provided on the Wibu download page for the version you are downloading. The download page also provides an MD5 checksum. You can run

md5sum codemeter.rpm

and verify that the file you downloaded was downloaded correctly by comparing this checksum.

If your Linux distribution does not provide `wget`, you can obtain a copy on Debian with `sudo apt-get install wget` and on Red Hat with `sudo yum install wget`.

Installing the CodeMeter Runtime

On Red Hat, using `yum`, you can install the CodeMeter Runtime with

sudo yum localinstall codemeter.rpm

On Debian, using `dpkg` and `apt-get`, you can install the CodeMeter Runtime with

sudo dpkg -i codemeter.deb

If that fails due to missing dependencies, you can instead attempt

sudo apt-get -f codemeter.deb

Once these commands complete (on either Debian or Red Hat), you can start, stop and restart the services with `systemctl`:

sudo systemctl restart codemeter.service

Alternatively, if `systemctl` is not available to you, you can use:

sudo /etc/init.d/codemeter restart

Configuring the CodeMeter Runtime

Refer to the CodeMeter manual for instructions on configuring CodeMeter.

However, if you are installing CodeMeter as a client for network licenses, the following is an example of a section you can add to the `/etc/wibu/CodeMeter/Server.ini`:

[ServerSearchList]
UseBroadcast=1

[ServerSearchList\Server1]
Address=<ip number of your license host>

You can add multiple `ServerSearchList\Server<n>` sections, one for each license host you have, with the IP address of the license host. Once you update and save the configuration file, restart the CodeMeter service and your licenses from the network server should then be available locally.

If you are setting up a license host, which you wish to access from another machine, you will need to install the CodeMeter Runtime on that machine as well and you need to ensure the firewall allows requests to the license host on port 22350.

On Red Hat, you can achieve this with:

sudo firewall-cmd --get-active-zones
sudo firewall-cmd --zone=public --add-port=22350/tcp --permanent
sudo firewall-cmd --reload

This assumes you see the `public` zone after the first command.

On Debian, you can run:

sudo iptables -A INPUT -p tcp -m tcp --dport 22350 -j ACCEPT

Similarly, if you want users to be able to access the web interface for code meter on the server, you would need to ensure the firewall allows request on port 22352 (for http) and/or 223532 (for https). However, access to the web interface from other machines is not required for obtaining a license and in typical configurations, you would be able to access the web interface on the host itself (localhost) without additional firewall rules.