Archive | February, 2015

Embed Google Maps into WordPress Site

27 Feb

May sure you switch to text editing as opposed to visual, you can then copy and paste the embed code from Google 🙂

Enable Email Notifications in Papercut

26 Feb

Configuring Email Notifications

Before sending notifications via email, the system needs to know the SMTP server to deliver emails to. The SMTP server can be internal or external to your organization however it must allow forwarding of emails to your users. The SMTP server will typically be the same server that users set in their email application to send emails.

To set the SMTP server:

  1. Navigate to OptionsNotifications.
  2. Find the Email Options section.
  3. Enter the SMTP server in the field provided.
  4. It is also recommended that the subject and from address are changed to be applicable for your environment.
  5. Press the Apply button.

The following advanced SMTP configuration settings are also available in the configuration editor (see the section called “Using the Config Editor”).

Name Description
notify.smtp.enable-tls Set to Y to enable STARTTLS, or N to disable it. STARTTLS is for connecting to an SMTP server port using a plain (non-encrypted) connection, then elevating to an encrypted connection on the same port.
notify.smtp.port The port to connect to on the SMTP server. Common ports include 25 or 587 for SMTP, and 465 for SMTPS.
notify.smtp.username Username for SMTP authentication. Commonly an email address.
notify.smtp.password Password for SMTP authentication.
notify.smtp.debug Produces extra SMTP related logging for troubleshooting.

Table 15.6. Advanced email notification (SMTP) settings


Anti-virus software running on the PaperCut server can block/disallow SMTP connections because it attempts to block spam sent by viruses and trojans. Ensure that any anti-virus software is configured to allow PaperCut to make SMTP connections (e.g. add an exception or disable the SMTP blocking).

When anti-virus is blocking email delivery PaperCut NG will log errors like: Mail server connection failed. Software caused connection abort.. These errors are displayed in the application log or on-screen when performing email notification tests.

If there are other SMTP connection problems, you should check that your firewall allows SMTP connections, and that your SMTP server is configured to accept connections from the PaperCut server.

Email Notification Configuration Examples

Name Value
SMTP server Your internal SMTP server hostname.
notify.smtp.enable-tls N
notify.smtp.port 25
notify.smtp.username Blank.
notify.smtp.password Blank.


Veeam Backup service refuses to start

25 Feb

Veeam backup and replication service is not running

In my case I had renamed the computer from a default WIN234dfasd type name to a ‘much’ better alternative.

Veeam refers to the local computer name in a couple of registry entries and promptly stopped working – which we didn’t notice until later.

The keys are:

HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\SqlServerName

HKLM\SOFTWARE\Veeam\Veeam Backup Catalog\CatalogSharedFolderPath

Backup of the site’s Virtual Machines is now running again.

Papercut on a Mac Server – OSX and iOS Printing

16 Feb

Configuring a Macintosh Secondary Print Server

This section describes the process of setting up a secondary Mac print server. The primary Application Server may either be a Windows, Mac or a Linux basis system. PaperCut NG has full support for “mixed” or heterogeneous printing environments.

Step 1 – Ensure primary server is set up correctly

Before installing a secondary server you should take some time to ensure the primary server (central application server) is set up and running correctly. If it is not running fine now adding an extra server will only “add an extra variable to the equation” and complicate troubleshooting. Take some time now to verify that the primary server is functioning correctly. For example, verify that:

  • Printers on this server are being tracked.
  • Users are allowed top login to user pages from their workstations.
  • Administrators can access the system.

Step 2 – Ensure firewall software is set to allow access to port 9191

Secondary server needs to communicate (initiate a TCP connection) on port 9191. Administrators should ensure that any firewall software on the primary Application Server is not set to block any incoming local network traffic on this port.

Step 3 – Create the host user account

PaperCut NG runs under a non-privileged user account called “papercut”. This invisible system account is created automatically upon first install. Advanced system administrators may however have a preference to create this account manually. If you fall into this category, create the papercut account now prior to installation.

Step 4 – Install the print provider

Install the print provider software onto the secondary server. Download the latest Mac DMG disk image and execute the contained installer called PaperCut NG Secondary Server Installation.pkg.

Step 5 – Configuration

The Print Provider on the secondary server needs to know where the primary server is installed. The installer may open the appropriate configuration file after the install completes.

  1. Open a text editor such as TextEdit.
  2. Open the file:

    [app-path]/providers/print/ mac/print-provider.conf

  3. Locate the line starting with ApplicationServer= and change localhost to the name or IP address of the primary server.
  4. Save the file and exit the text editor.

Double-click on the command script /Applications/PaperCut NG/Control Printer Monitoring.command, and enable monitoring on the appropriate printers.

Step 6 – Test

The secondary server should now be configured. Log into the system as “admin” and verify that the printers are now listed under the Printers section. Perform a multi-page test print on each printer and verify that print jobs are tracked correctly.

Sims LDF File – Shrink!

16 Feb

Check to see if the SIMS database is in FULL recovery mode. Connect to the instance using management studio and open the properties of the SIMS database and go to the Options section. If it is, put it into SIMPLE mode. You can then right click the database and go to tasks and shrink the log file where you can release the used space. This should take it back down to around 1Mb in size.

FSMO Roles

16 Feb

Useful when you need to know which DC holds your roles 

Repair Database – WordPress

13 Feb

To allow use of this page to automatically repair database problems, please add the following line to yourwp-config.php file. Once this line is added to your config, reload this page.

define('WP_ALLOW_REPAIR', true);