Steve Harris

Some pictures, the odd grumble and a bit of IT
Twitter
Follow me on Twitter
Flickr
View my Photostream

Transparent Proxy on Ubuntu 11.04 Server

A number of resources exist for configuring Squid with ClamAV as a transparent proxy server on Ubuntu, however some of the information appear to be incorrect for version 11.04, the following articles and notes will be of help. I’m using a windows based DHCP server behind Ubuntu and effectively using Ubuntu as a gateway from one network to another where my ISPs router sits. But you can tailor the idea to suit.

1. When installing Ubuntu Server include BIND for DNS, if you have already installed Ubuntu without BIND use sudo apt-get install bind9 dnsutils to install;
2. Configure your two network cards with different IP addresses, one for the LAN and one for the WAN side;
3. Configure BIND to act as a forwarder only using BIND9ServerHowto;
4. Install and configure Squid and ClamAV as explained here, I personally used the comment from Jayson D. Martinez How to Setup Transparent Squid Proxy Server in Ubuntu, but I did not install the web admin tools;
5. Also install the ClamAV Daemon using sudo apt-get install clamav-daemon
6. When configuring squid, check the default file thoroughly, consider making a backup and recreate the file from scratch;
7. The iptables configuration from here works better Squid transparent proxy with iptables
8. Configure a machine behind the second network card, using the Ubuntu server as a gateway and test.

If you have any problems check:-

- The squid log files in /var/log/squid/;
- The port number you configured in squid.conf is the same one you used in the iptables line and that you have added transparent to the http_port line of the squid.conf file;
- Manually configure a browser to use the ubuntu server as a proxy to rule out a problem with the iptables.

You could also extend this configuration using a web content filter like DansGuardian Squid Proxy Server On Ubuntu 9.04 Server With DansGuardian, ClamAV, And WPAD the link also contains useful notes on checking the ClamAV installation is updating correctly.

Installing Vmware ESXi 4.1 on a USB key from Mac

This process to install vmware ESXi 4.1 on to a USB key from an Apple Mac (OSX) was adapted from the following article which explains the process for previous versions of ESXi http://blog.scottlowe.org/2009/01/08/creating-a-bootable-esxi-usb-stick-on-mac-os-x/. The difference being the filename and location of the image on the ESXi 4.1 CD.

1. Download the ISO and mount in Finder
2. Copy the file imagedd.bz2 from the mounted ISO to a location on your hard disk
3. Insert the target USB key in to your Apple Mac
4. Open a terminal window
5. Run diskutil list, locate the USB key in the list for this example we will say it is /dev/disk5
6. Run diskutil unmountDisk /dev/disk5 it will disappear from Finder but will still be accessible from the command line
7. Run bzcat imagedd.bz2 | dd of=/dev/disk5, you will need to specify the location of the .bz2 file you copied in step 2
8. Wait for the process to finish, it may take some time
9. When the prompt reappears check bytes were successfully transferred, if not check your previous commands
10. Run diskutil eject /dev/disk5 to eject the disk, it can now be removed from the Mac
11. Insert the USB key in to the server/pc you are going to run ESXi and power it up.

It is important to note this will boot in to ESXi directly and is not the installer. Once started your can set the root password and configure using the menu system.

The same process could be used for installation on to SD Cards, but check the hardware compatibility lists on vmware.com.

Nice eyes in Aperture 3

Taking input from a couple of sources used to improve eyes in lightroom I have applied a similar method to aperture. I have not found notes elsewhere on the web so have made my own.

Disclaimer: I’m not expert as I have been using adobe lightroom for a year or so to organise and tweak my photographs and have exported the finish products to iphoto to geotag and add faces to each. With the release of aperture 3 I thought I would see whether it could replace lightroom for me. Initial thoughts were no, despite places, faces and a nice project organisation I think the editing/developing is behind that of adobe lightroom. There is a benefit of keeping everything in once place though rather than export the finished product to iphoto and effectively duplicating data so I am sticking with it for a while longer.

With that in mind here are notes on improving eyes using aperture standard controls.

Improve white of eyes

Two ways of doing this with pretty much the same results, first method:-

  • select the saturation quick brush;
  • zoom in to the eyes using cmd +;
  • drop to a small brush with a small softness of about .5, tick detect edges;
  • brush over the whites of both eyes;
  • back to the adjustment panel and lower the saturation until the whites turn more white and less blood shot;
  • select the dodge quick brush (optional);
  • brush over the whites of the eyes (optional);
  • back to the adjustment panel and raise amount a little bit e.g. no more than .5, do not go crazy (optional)

Second method:-

  • select the definition quick brush;
  • zoom in to the eyes using cmd +;
  • drop to a small brush with a small softness of about .5, tick detect edges;
  • brush over the whites of both eyes;
  • back to the adjustment panel and lower the saturation until the whites turn more white and less blood shot;
  • select the dodge quick brush (optional);
  • brush over the whites of the eyes (optional);
  • back to the adjustment panel and raise amount a little bit e.g. no more than .5, do not go crazy (optional)

Improve iris

In lightroom you could improve the colour and clarity of the iris, in aperture I have not found a way of improving the colour however brightening the iris does help:-

  • select a new dodge quick brush (if you dodged the whites of the eyes make sure this is a new dodge adjustment not the same one);
  • brush over the coloured portion of the iris making sure to avoid the pupil and dark rim of the iris which runs around the iris separating it from the white;
  • back to the adjustment panel set the dodge amount to taste.

Darken pupil and rim of iris

Final tweak:-

  • select a new burn quick brush;
  • brush over the pupil of the eye;
  • reduce the size of the brush and cover the black rim of the iris;
  • back in the adjustment panel set the amount to taste

Other possible improvements

At this point the eye brows and lashes could be improved using another quick brush to sharpen the detail. However by now my ten minute playing about with a single picture rule would be up!