Print Server Configuration

Introduction

This manual describes the configuration of the server-side components of the application GBS Print.

The configuration procedure must be performed only after the installation step. For more information, consult the GBS Apps Installation Manual.

Configuration

The steps for configuration are:

All steps are described below. An example of the file config.properties can be found in the section Configuration File Example.

triangle-exclamation

Tomcat Configuration

Edit Tomcat's configuration file to configure the certificates and the port the application will use.

To change the port, search for Connector port=. This is the port for backend operations.

The default port of GBS Print is 8127.

Certificates Configuration

To enable SSL authentication, search for Connector port= in the file /conf/server.xml.

There are several entries. Look for the one that defines a SSL HTTP/1.1 Connector. If necessary, remove the comment delimiters <!-- and -->. Then, adjust the following settings:

The parameter port must be the desired network port for the application.

Change the path of keystoreFile and truststoreFile to the correct values. Do the same for keystorePass and truststorePass.

The parameter clientAuth="true" will require server authentication to the client and client authentication to the server. This means the client will need to import the certificate into the browser to be able to access the application.

circle-exclamation

Database Password Encryption

In the file config.properties, the parameter jdbc.password is an encrypted password. To generate the encrypted password, follow the steps below:

  1. Go to the following directory:

  2. Run the command:

  3. The encrypted password will appear after the message: "Encrypted password is:"

circle-info

Save the encrypted password. It will be used in the next step.

Application Configuration File

To configure the file, open it with:

The most important changes in this file are the parameters jdbc.url, jdbc.username, jdbc.password and gbds.url. Configure them according to your environment.

The complete configuration file is shown in the section Configuration File Example.

circle-info

Remember to replace the encrypted password generated in the section Database Password Encryption in this file.

The last step is to configure the IP and port of the application that the end user will access. It must be the same IP and port configured in the section Tomcat Configuration.

circle-exclamation
circle-exclamation

Printing Systems

CUPS Installation

The Common UNIX Printing System (CUPS) is a printing system for UNIX-based operating systems. It allows a computer to act as a print server, receiving print jobs from client computers and sending them to the appropriate printer. To install CUPS, follow these steps:

Install CUPS:

Enable and start the CUPS service:

Then, install the graphical interface for CUPS:

circle-check

CUPS Configuration

To configure CUPS, edit the configuration file:

To allow access from other computers to the CUPS server, change the following line from:

To:

Then, to allow access to the server, add the permission Allow from all address to <Location />. To do this, look for the following lines and change them as follows:

Also, to allow access to the administration pages, add the permission Allow from all address to <Location /admin>. To do this, look for the following lines and change them as follows:

Then, save and close the configuration file.

Finally, to apply the changes, restart the CUPS service:

HPLIP Installation (HP Printer Drivers)

The HP Linux Imaging and Printing (HPLIP) is a free and open-source solution developed by HP for printing on Linux using HP printers. To install HPLIP, run:

Then, create a group for printer administration:

Finally, add the user root to the group lpadmin:

Printer Configuration

First, start the network printer discovery service by running:

Next, access the CUPS web interface at http://<server_ip>:631 using a browser.

In the top menu, click the Administration tab and then the Add Printer button.

If a message appears saying an update is required, click the displayed URL, then the Advanced button and Proceed to https://<server_ip>:631 (unsafe).

When returning to the CUPS web interface, click the Add Printer button again and, if prompted, log in with the user credentials root of the server.

On the Add Printerpage, in the Local Printerssection, select HP Printer (HPLIP) and click the Continue button.

Then, in the Connection, enter socket://<printer_IP> and click the Continue button.

Then, enter a Name, Description and Location for the printer, following the instructions on the page for each field, and click the Continue button.

In the Makeselect the printer manufacturer and click the Continue button.

Then, in the Modelselect the printer model from the list and click the Add Printer button.

Then, check the printer default settings and make sure they fit the environment.

circle-check

section.

Finally, click the Set Default Options button to save the printer settings. If everything works as expected, a message will appear saying the printer was added successfully and you will be redirected to the printer page.

CUPS PDF (optional)

CUPS PDF provides a way to print to a PDF file. It is recommended for testing purposes.

sudo yum install cups-pdf -y The default path to save PDF files is/root

. To change the path, edit the CUPS PDF configuration file:

Under vim /etc/cups/cups-pdf.confPath Settings , change the parameter Out <path>

Next, access the CUPS web interface at http://<server_ip>:631 using a browser.

In the top menu, click the Administration tab and then the Add Printer button.

On the Add Printerpage, in the Local Printerssection, select to the desired path. and click the Continue button.

Then, enter a Name, Description and Location for the printer, following the instructions on the page for each field, and click the Continue button.

Then, in the CUPS-PDF (Virtual PDF Printer)Or Provide a PPD File , click the Choose File button and select the fileCups-PDF.ppd . That .ppd file can be found in the directory /etc/cups/ppd/

on the server where CUPS PDF is installed. Then, click the Add Printer button.

circle-check

section.

Check the printer default settings and make sure they fit the environment.

Font Installation The application uses three fonts that must be installed:, Arial and OCR-B-10 BT.

The application uses three fonts that must be installed:

Tahoma Bold

fc-list | grep arial

wget http://www.itzgeek.com/msttcore-fonts-2.0-3.noarch.rpm

rpm -Uvh msttcore-fonts-2.0-3.noarch.rpm

Check if the font was installed successfully: .rpm files You can then remove the

Arial

rm msttcore-fonts-2.0-3.noarch.rpm root.

First, make sure you are logged in as

fc-list | grep ocr If the font is not installed (empty result), create a directory in ocrb:

circle-exclamation

. Download it from a trusted source or copy it from another machine. Transfer the font file to the server and move it to the directory.

/usr/share/fonts/ocrb

fc-cache -f /usr/share/fonts/

OCR-B-10 BT

rm msttcore-fonts-2.0-3.noarch.rpm root.

First, make sure you are logged in as

fc-list | grep tahoma The result should includeTahoma:style=Bold . If the font is not installed, create a directory in ocrb:

circle-exclamation

. Download it from a trusted source or copy it from another machine. mkdir /usr/share/fonts/tahomabd.

/usr/share/fonts/ocrb

fc-cache -f /usr/share/fonts/

fc-list | grep tahoma The result should include.

Finishing the Configurations

/usr/share/fonts/tahomabd GBS Apps Installation Manual - Configuration Section.

Configuration File Example

This section shows an example of the file config.properties.

circle-exclamation

Last updated

Was this helpful?