Installing Wibu CodeMeter Linux: Difference between revisions

From Tuflow
Jump to navigation Jump to search
Content deleted Content added
Page created with basic installation instructions for Red Hat and Debian variants.
 
modernise and align with other wiki
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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|Wibu Dongles]].
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 <u>[[Wibu_Dongles|Wibu Dongles]]</u>.


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 [[Tuflow:General_disclaimer|general disclaimer]].
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 [[Tuflow:General_disclaimer|general disclaimer]].
Line 5: Line 5:
==Getting the CodeMeter Runtime==
==Getting the CodeMeter Runtime==


The appropriate version of the CodeMeter Runtime can be obtained from the Wibu website at <u>[https://www.wibu.com/support/user/user-software.html www.wibu.com/support/user/user-software.html]</u>.
The appropriate version of the CodeMeter Runtime can be obtained from the Wibu website at <u>https://www.wibu.com/support/user/user-software.html</u>.


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.
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, Rocky, or another Linux distribution in the Red Hat family of distributions, you should obtain a copy of the `.rpm` installer for your hardware. Download the 64-bit version for use with 64-bit TUFLOW (all modern versions are). 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: <pre>wget -O codemeter.rpm <direct link></pre> where "<direct link>" is the 'direct link' provided on the Wibu download page for the version you are downloading.
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: <pre>wget -O codemeter.rpm <direct link></pre> 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 <pre>md5sum codemeter.rpm</pre> and verify that the file you downloaded was downloaded correctly by comparing this checksum.
The download page also provides an MD5 checksum. You can run <pre>md5sum codemeter.rpm</pre> 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`.
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`.
Line 17: Line 17:
==Installing the CodeMeter Runtime==
==Installing the CodeMeter Runtime==


On Red Hat, using `yum`, you can install the CodeMeter Runtime with <pre>sudo yum localinstall codemeter.rpm</pre>
On Red Hat you can install the CodeMeter Runtime with <pre>sudo dnf install ./codemeter.rpm</pre>


On Debian, using `dpkg` and `apt-get`, you can install the CodeMeter Runtime with <pre>sudo dpkg -i codemeter.deb</pre> If that fails due to missing dependencies, you can instead attempt <pre>sudo apt-get -f codemeter.deb</pre>
On Debian you can install the CodeMeter Runtime with <pre>sudo apt install ./codemeter.deb</pre> If that fails due to missing dependencies, you can attempt <pre>sudo apt install -f</pre>


Once these commands complete (on either Debian or Red Hat), you can start, stop and restart the services with `systemctl`: <pre>sudo systemctl restart codemeter.service</pre>
Once these commands complete (on either Debian or Red Hat), you can start, stop and restart the services with `systemctl`: <pre>sudo systemctl restart codemeter.service</pre>


Alternatively, if `systemctl` is not available to you, you can use: <pre>sudo /etc/init.d/codemeter restart</pre>
Alternatively, if `systemctl` is not available to you, try: <pre>sudo /etc/init.d/codemeter restart</pre>

== Configuring Codemeter Runtime for Server Host ==
Turn off codemeter service (Note: If this is not completed you will not be able to edit the config files):<pre>sudo systemctl stop codemeter.service</pre>Open <code>/etc/wibu/CodeMeter/Server.ini</code> with write access.

Within Server.ini set: <code>IsNetworkServer=1</code>

Restart the CodeMeter service:<pre>sudo systemctl start codemeter.service</pre>


==Configuring the CodeMeter Runtime==
==Configuring the CodeMeter Runtime==
Line 39: Line 46:


On Red Hat, you can achieve this with:<pre>sudo firewall-cmd --get-active-zones
On Red Hat, you can achieve this with:<pre>sudo firewall-cmd --get-active-zones
sudo firewall-cmd --zone=public --add-port=22352/tcp --permanent
sudo firewall-cmd --zone=public --add-port=22350/tcp --permanent
sudo firewall-cmd --reload</pre>
sudo firewall-cmd --reload</pre>
This assumes you see the `public` zone after the first command.
This assumes you see the `public` zone after the first command.


On Debian, you can run:<pre>sudo iptables -A INPUT -p tcp -m tcp --dport 22350 -j ACCEPT</pre>
On Debian, you can run:<syntaxhighlight lang="bash">
sudo ufw allow 22350/tcp
</syntaxhighlight>

Alternatively, if `ufw` is not available to you, try:<pre>sudo iptables -A INPUT -p tcp -m tcp --dport 22350 -j ACCEPT</pre>

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

Latest revision as of 11:58, 27 March 2026

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 https://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, Rocky, or another Linux distribution in the Red Hat family of distributions, you should obtain a copy of the `.rpm` installer for your hardware. Download the 64-bit version for use with 64-bit TUFLOW (all modern versions are). 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 you can install the CodeMeter Runtime with

sudo dnf install ./codemeter.rpm

On Debian you can install the CodeMeter Runtime with

sudo apt install ./codemeter.deb

If that fails due to missing dependencies, you can attempt

sudo apt install -f

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, try:

sudo /etc/init.d/codemeter restart

Configuring Codemeter Runtime for Server Host

Turn off codemeter service (Note: If this is not completed you will not be able to edit the config files):

sudo systemctl stop codemeter.service

Open /etc/wibu/CodeMeter/Server.ini with write access.

Within Server.ini set: IsNetworkServer=1

Restart the CodeMeter service:

sudo systemctl start codemeter.service

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 ufw allow 22350/tcp

Alternatively, if `ufw` is not available to you, try:

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

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