### Download and Install PaperCut NG/MF Source: https://www.papercut.com/help/manuals/ng-mf/common/install-novell Log in as the 'papercut' user and use wget to download the installer, then execute the setup script. Ensure you are logged in as 'papercut' to correctly set the home directory. ```shell shell> su - papercut shell> wget [download url from PaperCut Software website] shell> sh /ng-mf/pcmf-setup-novell-oes-linux.sh ``` -------------------------------- ### Install Site Server on Linux Source: https://www.papercut.com/help/manuals/ng-mf/common/site-server-installation When executing the installer on Linux, use the `--site-server` parameter to designate it as a Site Server installation. ```bash sudo apt install papercut-mf-site-server --site-server ``` -------------------------------- ### Example: Import PEM Certificate with Passwords Source: https://www.papercut.com/help/manuals/ng-mf/common/tools-ssl-key-generation-certificate-authority-import-new An example demonstrating how to create a keystore from a PEM certificate and key, including passwords for both the key and the keystore. ```bash create-ssl-keystore -f -cert "path/to/pem-certificate.pem" -key "path/to/pem-key.pem" -keypass “password” -keystorepass “password” ``` -------------------------------- ### Install License Source: https://www.papercut.com/help/manuals/ng-mf/common/tools-server-command Installs a new license file on the server. ```bash install-license ``` -------------------------------- ### Import Database Example (Windows) Source: https://www.papercut.com/help/manuals/ng-mf/common/tools-db-tools Example of how to import/restore database data using the db-tools command on a Windows system. Ensure PaperCut services are stopped prior to execution. ```bash cd "C:\Program Files\PaperCut NG/MF\server\bin\win\" db-tools delete-old-logs 90 ``` -------------------------------- ### Get PaperCut MF Client GUID for MSI Uninstall Source: https://www.papercut.com/help/manuals/ng-mf/clienttool/user-client Run this command in PowerShell to find the unique identifier for the PaperCut MF Client MSI installation. ```powershell get-wmiobject Win32_Product | Where Name -eq ‘PaperCut MF Client’ Format-Table IdentifyingNumber, Name ``` -------------------------------- ### Example: Import PFX Certificate with Custom Keystore Location Source: https://www.papercut.com/help/manuals/ng-mf/common/tools-ssl-key-generation-certificate-authority-import-new An example showing how to import a PFX certificate, specifying a custom keystore location and providing passwords for the PFX file and the keystore. ```bash create-ssl-keystore -f -p12 "path/to/pfx.pfx" -p12pass “password” -k "path/to/custom/folder/my-ssl-keystore" -keystorepass “password” ``` -------------------------------- ### Get a List of Installed Printers (WMI) Source: https://www.papercut.com/help/manuals/ng-mf/applicationserver/printer-add-remove-printer Use the Win32_Printer WMI class in PowerShell to retrieve a list of printers installed on a Windows system. ```powershell Get-WmiObject -Class Win32_Printer -ComputerName You ``` -------------------------------- ### Install Login Hook Command Source: https://www.papercut.com/help/manuals/ng-mf/common/install-mac-windows Execute this command script to install the login hook for the PaperCut NG/MF User Client on macOS. This ensures the client starts automatically upon user login. ```bash install-login-hook.command ``` -------------------------------- ### Install PaperCut Client Login Hook on Mac Source: https://www.papercut.com/help/manuals/ng-mf/common/install-mac-windows Executes a script to install the PaperCut client as a login hook on macOS, ensuring it starts automatically after system restart. Requires navigating to the script within the PCClient application package. ```bash ./install-login-hook.command ``` -------------------------------- ### Initialize New Database Source: https://www.papercut.com/help/manuals/ng-mf/common/ext-db-upsizing Run this command in the server binaries directory to initialize the new external database, creating necessary tables and initial data. Ensure you have the correct permissions. ```bash db-tools init-db ``` -------------------------------- ### Execute Print Provider Setup Scripts Source: https://www.papercut.com/help/manuals/ng-mf/common/cluster-novell After copying the Print Provider files, run the `setperms` and `roottasks` scripts as root to set correct file permissions and perform necessary root-level tasks for the Print Provider. ```shell shell> su - root shell> sh ~papercut/providers/print/linux-x64/setperms shell> sh ~papercut/providers/print/linux-x64/roottasks ``` -------------------------------- ### Start PaperCut iOS Print Service Source: https://www.papercut.com/help/manuals/ng-mf/applicationserver/mobile-mac-iosprinting Run this command on your Mac print server to enable the PaperCut iOS print service. Ensure PaperCut is installed. ```bash PaperCut NG/MF/providers/iosprint/mac using start-iosprint.command; ``` -------------------------------- ### Import Database Example (macOS/Linux) Source: https://www.papercut.com/help/manuals/ng-mf/common/tools-db-tools Example of how to import/restore database data using the db-tools command on macOS or Linux. Requires running as the 'papercut' user and stopping PaperCut services. ```bash sudo su - papercut cd "/Applications/PaperCut NG/MF/server/bin/mac/" db-tools import-db /Users/bob/papercut-backup.zip ``` -------------------------------- ### Data Source Lookup Variables Example Source: https://www.papercut.com/help/manuals/ng-mf/applicationserver/device-mf-scanning-advanced Access all data from a selected CSV row, even columns not displayed on the device screen. The integer starts from 1 for column indexing. ```text {{fields..}} ``` -------------------------------- ### Implement Monthly Copy Limits Source: https://www.papercut.com/help/manuals/ng-mf/common/script-device-examples-color-quota Modify existing scripts to enforce monthly limits by switching the day index variable to a month index. This example shows how to get the current month index. ```javascript var currentMonthIndex = inputs.job.date.getMonth(); ``` -------------------------------- ### Navigate to create-ssl-keystore tool Source: https://www.papercut.com/help/manuals/ng-mf/common/tools-ssl-key-generation-recreate-self-signed Change the directory to the `create-ssl-keystore` tool located in the server's bin directory. ```bash cd [app-path]/server/bin/win ``` -------------------------------- ### Windows Installer Service Error Message Source: https://www.papercut.com/help/manuals/ng-mf/clienttool/user-client-install-windows This error indicates that the Windows Installer Service is outdated and requires an update. Install Windows Installer 4.5 Redistributable to resolve. ```text "This installation package cannot be installed by the Windows Installer Service. You must install a Windows service pack that contains a newer version of the Windows Installer Package" ``` -------------------------------- ### Re-initialize and Import Database with DB Tools Source: https://www.papercut.com/help/manuals/ng-mf/common/downgrade-roll-back Use the `db-tools` utility to re-initialize the database and then import a backup. Ensure the database backup is from before the upgrade. ```bash ./db-tools init-db -f ./db-tools import-db ``` -------------------------------- ### Custom Secondary Server Installer (MSI) Source: https://www.papercut.com/help/manuals/ng-mf/common/secondary-win-windows-silent-install A user-created MSI installer for the secondary PaperCut server, derived from an EXE installer. This has not been tested by the creator. ```batch https://mega.co.nz/#!uMlV0D... (MSI file) ``` -------------------------------- ### Configure Print Deploy Scheduled and Startup Tasks Source: https://www.papercut.com/help/manuals/ng-mf/common/application-server-failover Modify the 'ScheduledTasks' and 'StartupTasks' sections in the default-pc-print-deploy.conf file. Set 'StartupRandomDelaySecs' to 0 and update the 'Args' to point to the correct update server URL for your platform. ```conf "ScheduledTasks": [ { "StartupRandomDelaySecs": 0, "Args": ["https://update.cloud.papercut.com/check-update/pc-print-deploy-server-/latest"] } ] ``` ```conf "StartupTasks": [ { "StartupRandomDelaySecs": 0, "Args": ["https://update.cloud.papercut.com/check-update/pc-print-deploy-server-/latest"] } ] ``` -------------------------------- ### Install SELinux Module for PaperCut Source: https://www.papercut.com/help/manuals/ng-mf/common/install-linux-user-providers These commands are used to compile and install a SELinux module for PaperCut. Ensure you have the necessary SELinux development tools installed. ```bash sudo checkmodule -M -m -o papercut.pp papercut.te ``` ```bash sudo semodule -i papercut.pp ``` -------------------------------- ### Set Release Station to Run on Startup Source: https://www.papercut.com/help/manuals/ng-mf/releasestation/release-station-install-windows Create a shortcut in the user's Startup folder to automatically launch the Release Station when the user logs in. ```bash %APPDATA%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup ``` -------------------------------- ### Automate Secondary Print Provider Installation Source: https://www.papercut.com/help/manuals/ng-mf/common/secondary-win-windows-silent-install Use this command in a batch file to silently install the Print Provider on target systems. The installer requires administrator privileges. ```batch pcmf-setup.exe /TYPE=secondary_print /SUPPRESSMSGBOXES/VERYSILENT ``` -------------------------------- ### Install License with Server-Command Source: https://www.papercut.com/help/manuals/ng-mf/common/license-install Use the `server-command` tool to install a license on a headless server or when the admin interface is inaccessible. Ensure you have administrator privileges and navigate to the correct `server-command` directory for your operating system. ```bash server-command install-license "" ``` -------------------------------- ### PaperCut NG/MF Linux Installer Usage Source: https://www.papercut.com/help/manuals/ng-mf/common/install-linux-installation This command displays the usage instructions for the PaperCut NG/MF Linux installer script. Use the -e argument to extract files without installing, -i to install, and -l to list archive contents. The -v flag enables verbose output. ```bash Usage: pcmf-setup.sh [-e|-i|-l] [-v] [-n] [list ...] ``` -------------------------------- ### Install PCPrintProvider Service Source: https://www.papercut.com/help/manuals/ng-mf/common/cluster-win-veritas Manually install a second instance of the PCPrintProvider service using a unique name. The argument before '/install' defines the service name, recommended to be a sequential suffix of the standard name. ```bash cd C:\\Program Files\\PaperCut NG/MF\\providers\\print2\\win pc-print.exe PCPrintProvider2 /install ``` -------------------------------- ### Silent Site Server Installation Command Source: https://www.papercut.com/help/manuals/ng-mf/common/secondary-win-windows-silent-install Use this command for a silent installation of a PaperCut site server. Note that each site server still requires manual configuration via a web browser after installation. ```batch pcmf-setup.exe /TYPE=site_server /SILENT ``` -------------------------------- ### Example Command-Line Release Job Source: https://www.papercut.com/help/manuals/ng-mf/common/install-linux-cmd-line-release This example demonstrates the interactive process a user follows to release a print job using the command-line Release Station client. It shows the prompts for username, password, and job confirmation. ```bash release-print-job Please enter your username: john Please enter your password: Current balance: $8.00 18:04:13 - Name: "Configuring Linux", Pages: 2, Cost: $0.40 Print this job? [yes] Released 1 job(s). ``` -------------------------------- ### Silent Secondary Server Installation Command (Older Versions) Source: https://www.papercut.com/help/manuals/ng-mf/common/secondary-win-windows-silent-install This command is used for silent installations of older versions of PaperCut, specifically when installing in secondary server mode on workstations. It may suppress version warnings. ```batch pcng-setup-x.x.x.exe /TYPE=secondary_print /SILENT ```