5 Great security tools for Ubuntu

Reading Time: 3 minutesUbuntu usually comes out of the box with a pretty good set of security features. However there are some really great tools out there that can help to save some hassle…

Random String Function

Reading Time: < 1 minuteA simple function to create a random string.

<?
function generateString ($length = 8)
{
  $string = "";
  $possible = "0123456789bcdfghjkmnpqrstvwxyz";
  $i = 0;
  while ($i < $length) {
    $char = substr($possible, mt_rand(0, strlen($possible)-1), 1);
    $string .= $char;

php imagerotate function on ubuntu hardy

Reading Time: < 1 minuteLooks like many people are having problem with the function imagerotate from the gd library on php.
It also looks like the php guys have made a fork of the gd library and included a heavily customised version of it in php. Our problem is, the Ubuntu guys decided to get rid of that imagerotate and some others for security reasons. Fair enough, but how do I make it work now??

Here is how I do it on my server.