Incron gotchas

Of which there are three:

  1. Make life simple and do all your incron as root. I know you shouldn’t but it helps to avoid all sorts of permissions issues. You may need to create an allow file “/etc/incron.allow” and put either root or your sudo name in it.
  2. Ensure that you only have one “SPACE” (not a TAB) between the three elements on an incron job: e.g.

    /etc/samba/smb.conf IN_MODIFY /etc/init.d/samba restart

  3. incron, like cron, requires full paths for just about everything, so if you are calling a script, use the full path to it, and use the full path to all programs inside the script.

Imagemagick – Tips and Tricks No. 3

Add a Label to a set of images

First bash script coming up, I’ll explain the best I can: I have a set of images that are all square: w=h. I want to create an image of each image with a label on top,using the filename as the label (without the extension), with a white background, ending up with a 200×250 image with the same name as the original but with “-tab” added. IM will by default squeeze the font size so that the text label always fits. Continue reading

GAS – Sheets – Clean and Clear Layout

Sometimes, we like our spreadsheet to give focus to what is on it. General formatting: colours, borders etc. do help, but even better is to remove all unneeded columns and rows, along with other distractions. For this to work, the top of the last row needs to be visible. Here is a finished example: Continue reading

Xubuntu 16.04 – Repair Nvidia Graphics Install

Don’t know / can’t remember exactly what happened but for some reason my proprietary Nvidia driver stopped working, I lost OpenGL, and with that a lot of functionality on the desktop. After living with it for a couple of months, and there are many different solutions to doing it, I finally got around to sorting it out like this: Continue reading

Thunar Custom Action – Add Filepath to Clipboard

This should be fairly straight-forward, but it isn’t.

We are going to use xclip as this takes the bash output and makes it available for X applications

There are also two variants depending upon which clipboard (there are 3!) you want

For the SECONDARY clipboard (the one that works with CTRL+C/CTRL+V or Right-Click and Paste)
enter the following in the command box for your custom action:

echo -n %f | xclip -selection c

For the PRIMARY clipboard (the one that only works if you Middle-Click your mouse)
enter the following in the command box for your custom action:

echo -n %f | xclip -i

Bunsenlabs Linux



Just sending out some love to the developers of Bunsenlabs Linux, who over the last year or so have raised Crunchbang Linux from the ashes.

If you like minimalist
If you like openbox
If you like the command line
If you like Dark
If you like speed
If you like lightweight (on your system, not “a lightweight”)
If you like getting new life out if older machines
If you like control
If you like debian
If you like getting on with your apps not fighting your OS
If you like Linux
If you like freedom

You will like Bunsenlabs Linux

W7 to W10 – virtually ;)

Note: Valid at 01/08/2015

When I first got my new desktop machine a couple of years ago, I was a little wary of Windows 8, so I did a dual install of Windows 7 Pro (OEM) as well. Given Xubuntu is my weapon of choice, I had a triple booting machine in the end. Once I sorted Windows 8 out I never went near my Windows 7 install. With the arrival of Windows 10 a few days ago, and with the offer of a free upgrade from Windows 7, it didn’t make much sense to have two installs of the same OS running directly, I therefore looked into virtualising my Windows 7, to then upgrade it to Windows 10, which I could then access directly from within Xubuntu, should I need it. Continue reading

Spring Cleaning

My PCSpecialist custom build desktop machine has been sat on my desk for @ 2 years, and starting to get a bit noisy, so time for a spring clean.

Sides off, graphics card out, CPU cooling fan off, case fan off. Left PSU in place.

Crevice tool on the vacuum cleaner, and old camera lens brush, loads of dust/human cells! Used a straw on the end of the crevice tool for awkward corners.

All back together and quiet as a mouse.