Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blocks:wibu [2023-03-27 09:43] – [Blocks license system] mattiasblocks:wibu [2025-10-15 14:49] (current) – Minor text tweaks admin
Line 1: Line 1:
-=====Blocks license system=====+=====Blocks License===== 
 +Blocks server software requires a license to be operational. Either connect a physical license key to a USB port or request a cloud-based license (requires internet access). A physical license key can be accessed either directly from a USB port attached to the virtual machine or over the local network.
  
-Pixilab blocks uses Codemeter license system from Wibu . The license can be providen in differnt ways: +===General License Agreement===
-  * a physical usb license-key plugged in direct to the computers USB socket. +
-  * a physical usb license-key plugged another computers USB socket and connected to over the network. +
-  * a cloud license that can be reached over the internet.  +
- +
-===Blocks license agreement===+
  
 [[blocks:license|PIXILAB Blocks Server Software License Agreement]] [[blocks:license|PIXILAB Blocks Server Software License Agreement]]
  
-====Install a cloud license====+===Licensable Options=== 
 +To keep the base license cost of Blocks as low as possible, many functions are licensed separately. Learn more about your [[blocks:licensing-options|licensing options here.]]
  
-For the cloud licens one must obtain a //credentials file// from Pixilab. The file is usually delivered via email once purchased. +====USB License for On-premise Servers====
  
-See installation instructions below+The Linux server image provided by PIXILAB for on-premise servers is preconfigured to use a physical USB license key, connected direct to a USB port of the computer.  
 + 
 +For additional details and Mac/Windows instructions, please refer to the //Getting Started// chapter  in the [[http://pixilab.se/outgoing/blocks/PIXILAB-Blocks.pdf|Blocks manual]]. 
 + 
 +====Cloud-based License==== 
 +For the cloud-based license one must obtain a //credentials file// from PIXILAB. This file is usually delivered by email once purchased. 
    
- ===MacOS or Windows===+===MacOS or Windows===
   -  First install Blocks + CodeMeter License software on your server PC (Windows or Mac)   -  First install Blocks + CodeMeter License software on your server PC (Windows or Mac)
   -  Open CodeMeter Control Center and drop the credentials file (you will see its serial number appear in the app window)   -  Open CodeMeter Control Center and drop the credentials file (you will see its serial number appear in the app window)
Line 22: Line 24:
  
 ===Linux Server / Virtual Machine=== ===Linux Server / Virtual Machine===
-  - Copy the file above to your Blocks server with the following terminal-command: +Import the credentials file to your Blocks server with the following terminal-command: 
 <code> <code>
  cmu --import --file /path/to/140-2361345228.wbc  cmu --import --file /path/to/140-2361345228.wbc
 </code> </code>
  
-*The "path/to" refers to the path to file from where you terminal ls located when the program cmu is running. As this is usually running on a virtual machine, you typically use scp over an ssh connection to the computer running the terminal.+*The "path/to" refers to the path to file from where you terminal ls located when the program cmu is running. As this is usually running on a virtual machine, you typically use scp over an ssh connection to the computer running the terminal to first upload the credentials file to the remote computer. 
 + 
 + 
 +====Network License Access from a VM Host or Another Computer==== 
 +This method accesses a USB license over the network, with one computer acting as the license host and the other as a licensing guest. The USB license key is be connected to the host. The guest must be able to access the host over the network. For a virtualized server, this is generally the case when itsnetwork adapter is set to bridge mode.   
 + 
 +=== Host Settings === 
 +Verify or adjust the following setting for your host: 
 + 
 +  * Open the CodeMeter Control Center. 
 +  * Click the WebAdmin button, and wait for the web UI to appear. 
 +  * Select Configuration > Server. 
 +  * Under Network Server, select Enable. 
 +  * Click Apply. 
 + 
 +=== Guest Settings === 
 +CodeMeter software is generally pre-installed together with Blocks, and configured to look for the license on the local network. To verify accesibility: 
 +  * Start the guest. 
 +  * Run this the command in a terminal window on the guest: //cmu --list-server --list-content// 
 +  * This should show your server's IP address and license information. Look for the text "102977" indicating a Blocks license. 
 + 
 +====Direct USB Access for Virtualized Server==== 
 +If you have physical access to the virtual machine host, you may prefer to connect the USB license key directly to this computer, and make the USB port accessible to the guest OS. 
 + 
 +=== Host computer === 
 +  * Connect the license key. The key must be physically connected to a USB port on the host computer. 
 +  * Do NOT install the CodeMeter driver/software (or disable it if already installed). 
 + 
 +:!: The host computer must NOT run the CodeMeter software, since only one driver may access the physical key at a time, and in this case that's is the driver inside the virtual machine. 
 + 
 +===VirtualBox settings === 
 +  * Select your guest OS in the list on the left hand side 
 +  * Select its Details settings pane 
 +  * Click USB 
 +  * Make sure "Enable USB Controller" is selected 
 +  * Add a "USB Device Filter" using the + button to the right 
 +  * Select your CodeMeter device 
 +  
 +To verify license key accessibility: 
 +  * Start the virtual machine. 
 +  * Once up, use the command //cmu -x//. 
 +  * This should show the details of your license key. Look for the text "102977"
 + 
 +=== Synology NAS settings === 
 +  * Install Virtual Machine Manager.  
 +  * [[https://kb.synology.com/en-ro/DSM/help/Virtualization/virtual_machine|Import the OVA file]]. 
 +  * Connect your Blocks license key to a free USB port on the NAS. 
 +  * Double-click your Blocks virtual machine in the Virtual Machine Manager (see illustrations below). 
 +  * In the Edit Virtual machine dialog box, select Others. 
 +  * Select "Wibu Systems AG CmStick" on the USE Device menu. 
 +  * Click OK. 
 +  * Start the Blocks virtual machine. 
 +  * Once up, in a terminal window connected to the virtual machine run the command //cmu -x// as described above to verify license key access. 
 + 
 +{{ :blocks:server:virtualized:screenshot_2023-01-05_at_10.23.43.png?nolink |}}
  
 +{{ :blocks:server:virtualized:screenshot_2023-01-05_at_10.24.15.png?nolink |}}