Posts By: jonny

Testing SMTP AUTH PLAIN Over TLS

TLS SMTP connection

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

Android Home Screen

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

exiftool

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.

Shell Script Example Squid Logs

I was trying to explain to a colleague a few days ago how a few shell commands can be really useful, when today I came across an example to try to illustrate. My problem was that I had 245 log files each about 70-80MB in size – roughly 4 million lines in each log file…. Read more »

Postfix with Amavisd-new on Plesk & Centos

For future reference: I installed Amavisd on CentOS and configured it to be used within Postfix following instructions here and here. I had also configured ClamAV and Spamassassin but those instructions are for another day. yum install amavisd-new I had some error messages starting amavisd and it was necessary for me to install the Mail::SPF… Read more »

Windows 2008 Disk Space and CBS.log

CBS.log Disk Usage Analyzer

I noticed one of our Windows 2008 servers running low on space on the C: drive and used Disk Usage Analyzer to scan the disk. I had been suspecting the winsxs directory as this has been a culprit in the past: However, this time it turned out to be the C:\Windows\Logs\CBS\CBS.log file at almost 18GB:… Read more »