Search Results

Increasing Partition Size on a VMWare Linux Virtual Machine

Naively, when creating my new VMWare ESXi virtual machines, I was expecting to be able to resize the disks with a one-liner as I have done in the past with container based virtualisation. Unfortunately it’s not quite that simple, the VM partitions will need manually resizing: Increase the virtual disk size via Vsphere to the […]

Install Linux Guest Support (CD2) after Citrix Xenserver installation

If you forget to install the Linux Guest Support cd during Xenserver installation, there are a few ways to install it post install. Mount the CD in your KVM/DRAC etc and do: cd / mount /dev/cdrom /mnt/CD cd /mnt/CD ./install.sh follow the installation…. cd / umount /mnt/CD Or wget the ISO then: mkdir -p /mnt/iso […]

Citrix Xenserver [Errno5] Input/Output error during install

During installation of Citrix Xenserver 5 over DRAC (Dell Remote Access Controller) using amounted ISO, I got the error: [Errno5] Input/Output error during install The initial install phase started properly and it allowed me to enter all configuration settings, but failed at the end of installation. Presumably this is either an issue with the DRAC […]

3 Reasons not to use UK2

Today I was lured into using UK2 dot net by the temptation of a .com domain for only £5.99. Bargain I thought to myself as I clicked through the checkout. All is not as it seems though and a bargain is not always a bargain. This is why I will never be using UK2 again: […]

Disable weak ciphers in Tomcat

PCI compliance requires that weak and medium strength SSL ciphers are disabled, along with SSLv2 functionality. To achive this, just add the following to your SSL connector within server.xml and restart tomcat. sslProtocol should be set to TLS or SSLv3 and the ciphers setting should be added as below. Typically the server.xml will be in: […]

Spell check your website with Firefox

I came across a little trick today to spell check a website you are browsing in Firefox.  It’s pretty handy if you have a live site and want to give it a once over without loading up all of your code.  To spell check the page just go to it, then paste this in the […]

Fix CSS Browser Compatibility using conditional comments

I’ve never had any incompatibly issues with different browsers whilst working on websites before – until today. For some reason IE7 decided it wanted totally misjudge my margins by about 30 pixels – totally distorting the site. Strange how it worked fine in any other browser (Including IE6 and IE8!). Anyway, conditional comments can be […]

Check how old a Linux password is using chage

I came across a command today that I’ve never really had a use for before.  chage can be used to check when a password was last modified and also shows any password expiration rules etc.  It can also be used to implement password expiration. A very useful tool if password policies are required, although PAM […]

Delete a file older than X days using mtime

List files older than 5 days: find ./ -mtime +5 To count all files older than 5 days find ./ -mtime +5 |wc -l To move files to an archive directory: find ./ -mtime +5 -exec mv {} /var/archive \; -print To delete the files find ./ -mtime +5 -exec rm {} \; -print

Prevent brute force attacks using SSHBlack

SSHBlack is a very useful script which monitors the system logs for repeated failed logins and then blocks the source IP.  This can pretty much negate basic brute force attacks.  There are plenty of similar other applications such as BruteLock, but I think SSHBlack works well.  The following is a very handy article which shows […]