Posts By: jonny

Beginning Powershell

When writing my first powershell script to check free disk space on a dozen exchange servers I picked up a few useful things for future reference. Echoing output to the command lineA script can print/write output to stdout using Write-Host “Hello World” but this command is aliased too, so that echo “Hello World” will also… Read more »

CycloDS Evolution for Nintendo DS

The CycloDS Evo is one of many flash carts for the Nintendo DS / lite. This modification card is used in conjunction with a Micro SD card on which you can store games, music, videos and even a linux distribution. For this I used: a Nintendo DS Lite The CycloDS Evolution purchased from eu.mod-chip.com approx… Read more »

Google Docs

I tried a few options for downloading documents from GoogleDocs, some methods are geared more for synchronising one document at a time but I needed something to take a full backup of all my GoogleDocs for offline sharing. I found the Google Doc Download Greasemonkey script was best. Google Doc Download (Greasemonkey Script)I visited the… Read more »

autofs mounting WIndows Shares on CentOS 5

Create a directory for the mountpoint: mkdir /mnt/mywinserver Temporarily mount: mount -t cifs //1.2.3.4/LogFiles /mnt/mywinserver -o username=jonny,password=letmein For a more permanent mount  edit /etc/auto.master file add a line like: /mnt/mywinserver /etc/auto.mywinservermount Edit /etc/auto.mywinservermount and add the following: LogFiles -fstype=cifs,user=jonny,password=letmein ://1.2.3.4/LogFiles Protect the /etc/auto.mywinservermount file: chmod 600 /etc/auto.mywinservermount Access the mount to check it is working:… Read more »

Ubuntu ATI Graphics Driver

I had a few difficulties with playing video on Ubuntu with false/inverted colours so the reds were blue, and also so jitters in the video play.I followed the instructions here: http://ubuntuforums.org/showthread.php?t=610501 and for the time being the videos are playing correctly.

cPanel and mod_security

cPanel allows for adding some apache and PHP modules using the web interface (and a script they call easyapache). This can be found under Software > Apache UpdateAfter installing mod_security the main configuration file is found at: /etc/httpd/conf/modsec2.conf which includes a blank file /etc/httpd/conf/modsec2.user.conf I downloaded the mod_security ruleset from wget http://403security.org/files/modsec_rules.txt and copied these… Read more »

Using Several Servers with phpMyAdmin

To use the same phpMyAdmin installation to service several MySQL servers edit the config.inc.php file and add the following lines – don't forget the $i++ line: $i++;$cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['host'] = 'mysql.server.com';$cfg['Servers'][$i]['connect_type'] = 'tcp';$cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['extension'] = 'mysql';

Test SMTP with Telnet

Useful for finding problems with new installations. telnet examplemailserver.com 25. Key in “EHLO examplemailserver.com” and press enter. Key in “MAIL FROM: sender@mydomain.com” and press enter. Key in “RCPT TO: recipient@examplemailserver.com” and press enter. Key in “DATA” and press enter. Optionally add envelope headers (and leave a blank line between these header values and the message… Read more »

Slow SSH Logins

On a new CentOS 5.1 install there was a dleay while logging in via SSH. Using the -v option i.e. # ssh -v jonny@servername gave more verbose output with the following messages: debug1: Authentications that can continue: publickey,gssapi-with-mic,passworddebug1: Next authentication method: gssapi-with-micdebug1: Unspecified GSS failure.  Minor code may provide more informationNo credentials cache founddebug1: Unspecified… Read more »