Posts By: jonny

Apache: unable to open logs

In the annals of “Everyday is a learning day”. I have an Apache server hosting student websites, and the number of websites grew to over 700 within a day and Apache was complaining with error:

It took a little while to narrow down the problem as I assumed there was a path that did… Read more »

Customise the Unity Launcher from Command Line

I am rolling out some Linux desktops, specifically Ubuntu, and I wanted to customize the icons available in the Unity Launcher. I wanted to remove the LibreOffce Calc and Impress icons and the darned ‘Amazon’ one, so: Create a new gschema override file for our customisations:

Add some content (the com.canonical.Unity.gschema.xml file in the… Read more »

Create Password Hashes From the Command Line

I wanted to generate a password hash for use in the /etc/shadow file. My local Linux Mint (Ubuntu) Desktop already has mkpasswd available, your distribution may vary.

This prompts for the password and will generate the hash.    

Locating Excessive Inode Usage

The command to list the directories using the most inodes is:

However, I first needed to narrow down the directory under root that might be causing the problem:

showed that the root directory (/) was the problem. But I did not need to scan all directories as some had terabytes of files so:… Read more »

Powershell Script to Set Computer Name Based on DNS

This Powershell script will use nslookup to query a DNS Server to get the hostname and use that result to set the computer name. If you use this you will need to amend as necessary including the address of the DNS Server (I have added the Google one here for illustration) and I am filtering… Read more »

CentOS 7 as NAT Gateway for Private Network

centos logo

The scenario is a small private network connected via a switch and using 192.168.0.* addresses. One of the machines (let’s call it RTR001) on the network has two network interface cards. One with an address on the 192.168.0.* network and another providing wider network (& internet) access on a 123.111.123.* network. This machine (RTR001) will… Read more »

Screen Annotation on Linux

I was testing a HP EliteBook 2730p with Linux Mint 17.2. The laptop/netbook/tablet comes with a touchscreen and stylus. USB booting did not work for me but I was able to network/pxeboot an installation. When it came to drawing on the touchscreen I was able to get up and running after installing Gromit i.e.

Read more »

Migrating from SVN to GIT with Branches and Tags

git branch

I needed to convert a number of small subversion repositories to git so that they could be hosted publicly on GitHub and some hosted on our private GitLab service. I am adding a few notes here of what I did to help my future self. If it helps anyone else – bonus. Initialise In an… Read more »

Recording an Android Screencast on Linux

AndroidScreencast

I wanted to make a short video recording activity on an Android device while on a Linux Mint desktop. To do so I did the following: Install Java if you do not already have it installed. Install the Android debugger (if not already installed):

Check that your Android device allows USB debugging. The location… Read more »

Configure Java Security Settings on Linux

I received the following error message when trying to run a Java JNLP file: Application Blocked by Security Settings Your security settings have blocked a self-signed application from running Assuming I trust the program I found I could get it to run by amending the Java Security Policy: Amending the Java Security Policy The first… Read more »