I manage a WordPress Multi-user environment and needed to bulk add LDAP users (which is already quite easy) and also to bulk create blogs for users – which I couldn’t find an easy method for. I started exploring how I could script the creation of this when I happened upon WP-CLI. yum install git Then… Read more »
Posts By: jonny
RSA Security Console Forgotten Admin Password

My colleague forgot the password he used for the admin user account on the RSA Security Console – since it needs to be changed and a previously used password cannot be re-used. We have it installed on a Windows Server 2008 so to create a temporary admin account: Open Command Prompt Change directory to the… Read more »
Media Streaming on Ubuntu with Mediatomb

Install with: sudo apt-get install mediatomb Amend the /etc/mediatomb/config.xml file. I find the configuration below works well for all the video types I throw at it. Then access the web interface at http://localhost:49152 logging in with mediatomb/mediatomb and add some video directories to be served. <?xml version=”1.0″ encoding=”UTF-8″?> <config version=”2″ xmlns=”http://mediatomb.cc/config/2″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd”><!– Read /usr/share/doc/mediatomb-common/README.gz… Read more »
Testing SMTP AUTH PLAIN Over TLS

To prepare to test a TLS connection to an SMTP server we first need to Base64 encode the Login credentials: perl -MMIME::Base64 -e ‘print encode_base64(“\000LoginID\000password”)’ The result of this is: AExvZ2luSUQAcGFzc3dvcmQ= I tried using the base64 linux command but did not get the same result or a result that would work: echo -n “\000LoginID\000password” |… Read more »
Retrieving folder.jpg thumbnails: PHP Script
When using XBMC we usually use the ‘Files’ menu. The folder icons under ‘Files’ do not show a preview thumbnail unless there is an image in the folder named ‘folder.jpg’. I could manually search for folder images for each movie but decided that would be time-consuming so I put together a wee PHP script –… Read more »
Exim Troubleshooting
We had a bit of difficulty yesterday with LDAP / Active Directory authentication within Exim. Sending mail via SMTP with authentication was timing out and it looked like a TLS error. 2013-10-01 14:39:12 [17013] TLS error on connection from blahblahblah (ehloname) [192.168.1.3]:52031 I=[192.168.6.51]:587 (SSL_accept): error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol We got to the bottom of the problem… Read more »
HaiPai i9389 MTK6589 Android Phone

WARNING: I AM NOT RECOMMENDING THIS PHONE, THE SELLER OR ALIEXPRESS I am adding an update to this original post as there have been some developments. I bought two of these phones (one for me and one for my sister-in-law) and we have had nothing but difficulty since. The phones regularly seize up and require… Read more »
Manipulating Image Metadata for Stock Photos

On a Linux desktop one thing I miss is the ability to easily add metadata (exif / iptc) to the images I upload to stock photo websites. Adding this metadata makes it much easier to submit the same photo to multiple websites. The ‘File Info’ command in Photoshop does what I want but I haven’t… Read more »
Automounting Netgear ReadyNAS CIFS Shares
I wanted to use Autofs to auto-mount the shares on my Netgear ReadyNAS upon entering specific directories so… Install pre-requisites: sudo apt-get install cifs-utils autofs sudo gedit /etc/auto.master Add the line: /mnt/nas /etc/auto.nas –timeout=6000 –ghost sudo gedit /etc/auto.nas And added the following lines: pictures -fstype=cifs,rw,noperm ://nas/pictures videos -fstype=cifs,rw,noperm ://nas/videos music -fstype=cifs,rw,noperm ://nas/music documents… Read more »
wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
I had this problem today: wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string When I was trying to run Winetricks: sh winetricks msxml6 gdiplus gecko vcrun2005 Until I realised that I was trying to run winetricks as root rather than as my normal unprivileged user. Just in case it helps anyone else.