Category: Tips Tricks

Ansible connection failure with Ubuntu Server 16.04

Having trouble connecting to Ubuntu Server 16.04 from your Ansible control machine? If you ping your Ubuntu Server do you get a similar error: ubuntu_host | FAILED! => { "changed": false, "failed": true, "module_stderr": "Shared connection to 138.68.174.106 closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "rc": 0 } If you do, there's a simple solution (and you should have read the docs! :-D ) Ansible Python not found on Ubuntu Server 16.

Read more...

How to install HL-3040CN Brother printer drivers on Linux (Ubuntu)

For this guide we're going to be looking at the installation of drivers for the Brother HL-3040CN laser printer and how to set up the connection to get it to print over the network. The instructions on the Brother printer driver pages do actually work (just about) but they're not exactly crystal clear. For instance, they don't have all the info on one page and they also tell you to set a connection setting that will potentially break printing if your printers IP address changes.

Read more...

Install ScanSnap s1300, s1300i, s1100 and s300 drivers on Linux - drivers included

scansnap-folder

The Fujitsu ScanSnap s1300, s1100 and s300 were some of the best low cost duplex scanners available, and if you've got one no doubt it's still going strong. Likewise, the current generation s1300i upholds that tradition and is arguably one of the best scanners currently on sale.

Unfortunately Fujitsu don't provide linux drivers so this post provides those drivers for you to download.

This post looks long but it's just spelt out very very clearly. The actual number of things you need to do is not that high at all. I've seen many terse instructions that fail to give new users enough to go on so this one is written out fully and clearly.

To that end I'll also walk you through the install process so you can have your s1300, s1300i, s1100 and s300 happily scanning away just like they would if you were using Windows or OS X/macOS.

Well, almost, there are certain bits that don't work like one button scanning but it's not too much of a hardship.

Read more...

Nginx rewrite rules for MyBB SEO friendly URLs

I've recently switched a forum I run from Wordpress and bbPress to MyBB. Overall I've very happy with it but there are a few bits to watch out for with MyBB.

If you are running Nginx instead of Apache as your webserver then one of those things to watch out for is the need to manually update the rewrite rules needed for SEO friendly URLs.

MyBB SEO friendly URLs

Below is the full set of Nginx rewrite rules for rewriting MyBB's SEO friendly URLs. To activate this option in MyBB you can do so from the Admin CP:

Read more...

Find the Absolute Path to a folder or directory in Mac OS X

Mac OS X doesn’t have an obvious way to view the exact text based path to a folder (otherwise known as a directory) in the finder window. You can have it show a graphical path, but getting just the text based path to a directory (for use in the Terminal for example) requires a couple of extra steps.

Yosemite users special note

Apple removed the ability to easily copy the file path in OS X Yosemite. Yosemite users must now follow a complicated procedure of creating a Service to do this simple task or take the path directly from the command line.

El Capitan - Built in file path copy function

If you are a El Capitan user you are in luck, Apple has now created a specific command to capture the file path. Instructions on how to use this can be found here.

Mavericks and below - How to find the Absolute Path to a folder on Mac OS X

Here are the instructions for finding the file path on Mavericks and below...

Read more...