Smoothwall Firewall project

Saturday, 2 October 2010

Using SSD and hybrid disks to speed up your computer



I have been reading for a while about the advantages of using SSD disks for starting/booting your computer, which can be especially useful on a laptop, which you are far more likely to restart. Well I decided to put this into action and see what speed improvements these changes would make, and how it would improve the speed in several tests.

The hardware:
Dell Inspiron 6400 Laptop with 4GB Ram and an Intel Core 2 duo P8700 2.5 Ghz
OS Ubuntu 10.04.1 LTS fully patched
Primary new disk drive Kingston SSDnow V+ 64 GB
Secondary disk Seagate Momentus XL hybrid drive 500 GB / 4GB SSD

After considerable thought, and reading that the SSD disk would be good for 1 million reads, I decided that I would use two disk's instead of one, and all variable data would go on the hybrid drive. This would be true for any OS, basically if the partition is going to be written to on a regular basis , then move it onto an external disk. Luckily the Dell comes with a built in eSata connector, which offers really good performance for an external unit, and I wouldn't recommend using USB 2 or firewire unless thats all you have.

I therefore moved the following disk partitions onto the Seagte hybrid drive - /tmp, /var, /home - and made sure that their UUID's were correctly configured on the internal Kingston SSD disk in /etc/fstab. The hybrid Seagate drive is housed in an Icy Box external eSata 2.5" enclosure which works really well.

So to the tests, with the original 2.5" Seagate Momentus 7200 250GB internal disk. I used my stop watch, and with the SSD fitted I suspect some of timings are do my lack of ability to react that quickly.

1) From the end of the BIOS post to a login prompt averaged - 30 seconds
2) Loading firefox 3.6.8 with 25 tabs open - 18 seconds
3) loading Google Chrome with 25 tabs - 10 seconds

with the new configuration

1) From the end of the BIOS post to a login prompt averaged - 5 seconds
2) Loading firefox 3.6.8 with 25 tabs open - 4 seconds
3) loading Google Chrome with 25 tabs - 2 seconds

It is obvious that the new system is significantly faster than it was previously, so the claims being made by the SSD manufacturers are true, your system will be quicker. I would also comment, that everything now works at a much smarter rate, and I have no doubts if I had tested more applications the same performance boost would have been measured.

This was not a cheap experiment however, and the two drives cost me in excess of £250. I was looking for a speed boost with my virtualization requirements, and that is what I have achieved, but unless you have a real need for this performance improvement , then you may well find your money better spent of other needs. I would also now like to try this with the latest Intel processors to see if I can squeeze even more performance out of the laptop.

Tuesday, 7 September 2010

Make using the Command line more fun in Ubuntu

Ubuntu has spawned several really great Linux distributions, and one of the best is Linux Mint. It has always had a feature where-by when you open a command prompt, it displays a simple - often silly - message to brighten up your day before you get stuck in. To be fair this has been around for a long time in the Unix world, but is still funny.Ubuntu doesn't have this turned on by default, so I decided to enable it , and it really isn't that hard, if we borrow a great command from Mint guys.

First you need to install the fortune cookie applications and message files:

sudo apt-get install fortune-mod cowsay

You can test this has installed ok by typing the following:

fortune

and you should get a message displayed.

Next you need to create shell scipt that will do all the hard work for you - borrowed from the Mint guys

sudo vim /usr/bin/ubuntu-fortune

Here is what to put into the file

#!/bin/bash
RANGE=4
number=$RANDOM
let "number %= $RANGE"
case $number in
0)
cow="small"
;;
1)
cow="tux"
;;
2)
cow="koala"
;;
3)
cow="moose"
;;
esac

RANGE=2
number=$RANDOM
let "number %= $RANGE"
case $number in
0)
command="/usr/games/cowsay"
;;
1)
command="/usr/games/cowthink"
;;
esac

/usr/games/fortune | $command -f $cow


Now we need to make this file executable by doing this

sudo chmod +x /usr/bin/ubuntu-fortune


Then last but not least we need to place it into one of the shell script master files so that it gets called every time when you start up a shell script. So edit the following file, and place the command - /usr/bin/ubuntu-fortune - as the last entry in the file.

sudo vim /etc/bash.bashrc

Voila, when you now start a shell terminal , you will have something to laugh at, and you can of course just type the command we created above to get a laugh on got.

Here is an example:



Now there are lots of other fortunes you can install, some of them can be very rude, so be careful, and you can grab these either using apt-get or using the Synaptic package manager.

Have fun.

Tuesday, 24 August 2010

Smartphone users should travel overground and avoid the subways and tubes


If you are one of the many millions of new smartphone owners, it will not have missed your attention that as soon as you go into mole mode and descend into the dark, sweaty, hell that is the subway and tube lines of the western world, than you realise that most of your smartphone functionality disappears. If your commute is a long one, then it can get very annoying.

Well, today while I was sat on the top floor of a double-decker London bus, cruising to work very slowly in the early morning congestion, I realised the value of that service over the tubes. You have full access with your 3G connection and can happily check your email, surf the web and chat on Gtalk without hindrance. Now, I know you can download music with spotify and grab the latest news with the many paid for magazine and news paper apps, but you have to remember to do that before you go under ground. There is the underlying problem, if you have other things on your mind , or a hangover from a previous nights fun, thinking about syncing your smartphone is not top of your pre-journey planning.

So , if you own a smartphone, jump on a bus or grab a cab, and stay well clear of the WIFI/3G retarded tubes. I would however recommend you don't try this on your bicycle ;-)

Monday, 26 July 2010

New Tab Candy with Firefox 4 Alpha build on Ubuntu


I stumbled across this new feature build of Firefox 4 in my daily Google alerts, and I'm really glad that I did.

This new build of Firefox 4 offers a very new feature for tab management , that to be honest is quite frankly very impressive.

It allows you to drag and drop tabs into little organised groups, but you can happily move tabs between these groups if you like.

The best way to have a look at how this works is to view this video by the developers.

Tab Candy Video

I have been using it since I found it, and it really does make your browsing experience so much better, to the point I have started using Firefox a little more often again.

One thing to watch out for though, is don't let this alpha auto-update, as it pulls in the latest FF 4 beta main trunk code, which doesn't have this feature turned on yet. So turn off auto update, and just manually grab the latest builds from the site below.

I would recommend downloading and having a play , and see what you think.

Tab Candy web page and download

Thursday, 22 July 2010

Is Ubuntu thinking about switching to Chromium in 10.10?




While testing with the latest daily build I thought I would look through the App store to see if Google was in there, and instead I found a Chromium version (fully open source) version which is pinned to the exact same release code as the stable release of Google Chrome.

Now I get why in the base installation they don't want the Google Chrome release, but the Chromium version has up until now always been bleeding edge. So by taking the same stable version and just building the open source bits make it very easy to now include this.

As it stands today, you get FF 3.6, and it is very unlikely that FF 4.0 will be ready in the development timeframe for Ubuntu 10.10, but Chromium is ready now, and offers a much faster experience than FF. Now, version 5 of Chrome/Chromium is not perfect, but for 99% of peoples surfing needs it works fine.

Now, this is me finding something in repositories and making 5 from 2 + 2, but it really wouldn't take that much of a step, and it would be a real differentiator between the distro's. They must be thinking about it, otherwise why go to all this problem.

Have a look yourself and see what you think.

Problem adding the new Spotify Linux client repository security key

The great news is that there is now a native version of spotify, which works really well on Ubuntu, and I'm listening to it now as I type.

While I was installing it though, I found the link - below - to install the security key for the repository was broken - timed out.
gpg --keyserver wwwkeys.de.pgp.net --recv-keys 4E9CFF4E

So I found the key manually, and I'm posting it here so you can manually install it. How?

1) Copy all the text in the key below and paste it into a text file, using your favourite editor
2) Open the software sources application and click on the Authentication Tab - see below
Import your key
3) click on the Import Key file
4) Select the file you created earlier
5) Done ;-)

Here is the key and the spotify web page that gives the other instructions

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10

mQGiBEwiQL0RBACyA2K0RUDZWQl7Bf7lxib870Jic/BvLCkwhil+SY+GRsZ2kEeSoSzkh+Oz
mzgKUBqQh4A4n4hq1sFNkHY6NfOCpJ9j+sewAWvQ/lDC/XiOkKXGg2y6J8V7wCPqORchPMDP
zuF8AdhS1y8BIH9Vc8vQu3lJnhB9smT/t2fjII8cmwCg04P/lRF2BzAwxvzsqw3SH844dAEE
AKngWb8MM2orgZ0ImN2PiwX7CsoTdFitVEhPFshk1vxH8ZnYwYGmCPQy5ierLi7SFcXOA26+
skaFkpQApwqeArYSRJcnJ/CkgBn0LXFd8diNKy0wnebDeaH/eD/O3bqU9Z2K7UXf/OR/kdIz
uA9DYyETKrIPDp3kFeBxB5AfkJOoA/9kULFrh9gmkU5f2nzly9FetZ6fDnPYz3qEbK2LZm2K
czGhJJ3GDcoqhocHywecgSfr17/35pmGpJCwRzbZyxgKc1XZMP5CII/uBDoouBocWplJqKcv
tAbSC66hss2+KrsouODOo3yh8HU54xRDx8ZBr4SCVYJ40solMuAZul+yBbQ+U3BvdGlmeSBQ
dWJsaWMgUmVwb3NpdG9yeSBTaWduaW5nIEtleSA8b3BlcmF0aW9uc0BzcG90aWZ5LmNvbT6I
ZgQTEQIAJgUCTCJAvQIbAwUJA8JnAAYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEE+ZRjVO
nP9OuxMAoJPoPRAATOzyhIyeK3kEaSVtdzKQAKCqZ0io8BUfXeNlDNw9aVgKJJJ7XYhGBBAR
AgAGBQJMNd/jAAoJEPIPrAt7g1fl9tYAoLowChxtbgjY/576t9YpZ3q1871TAKCnisBmpNtc
y8gQwwYvSWAMWJQIOrkCDQRMIkC9EAgAjIbDeTHbKujlNt9Hdx0p6X2mnYdp2CmIjq4RuVhX
KNRsW1EGa+Q3dy5q4EDH/HwMQvbOe6K8e0zXOfxEzuDzSK/No6YDLQtIitEoyMKzc7ZqZ5aV
NRRjGkneMRHzK2vPEXI/MdaffDpXxGD7mcfc9AFtmred8c+C59W5cGbjSS/OtwSEpICPgwIz
VsnsoeCfKXOqh0NkIUltFOPD8O8b7zaWxzpPiMbXxTtZzucm4p+fRsYeVqIjtMsKPtDwLGqb
BVH50UroH5A4CtudElnzMnoTjzRWctK8YakC9KIIUbt0INWdECZ1Ww7XtJiZuqzCxLEx64l+
VSoXnqbY3vdI5wADBQf+LnhShmHAZqyvksZs6JXRAnul2cnEP8eekXPQO6U07e6hwhJIVt5H
EKG/iPSJBc6IIqTVoSoSQmzz0BKAi63sa/UQeEtPKh3nkjj6O6zl+vPkBV/YY/xB8ubMmPkb
W4xSMZxPkyBFEow9KzWfIoymKxnAToHI73Xw9BMWjCw9pdmevLreNwD6446rkOsnU4LdIXX9
lA44Fk3SQu4p70GsyXQB+eI6gRnUBkGTFeyCu2yjHNwiPvYItf5j16L5mc79ifZkaKGhCQy/
6uD/WVdjAb3YXZUI4gvXx9GSrBK0cEI/KepuNCbEqOAkEZOhApk0p5npiOId1XvXcPKz5z1U
mohPBBgRAgAPBQJMIkC9AhsMBQkDwmcAAAoJEE+ZRjVOnP9OTa4AniK1eavqdD/SSkZ+N8SI
+/oJMhXQAJ9HgrzbezFA6W355iHvyuCZP19+fA==
=D9pj
-----END PGP PUBLIC KEY BLOCK-----

Spotify client for Linux

Sunday, 18 July 2010

Using and looking at Btrfs in the latest Ubuntu Maverick build



I love looking at new technologies and assessing what they might be able to offer not only me, but the people that I do consultancy for. There is nothing like being able to pluck a technology white rabbit out of the hat in front the of the decision makers.

Well, for several years the modern file system designed by Sun called ZFS, has been rightly getting plaudits for not only it's usability but the built in functionality that companies have been paying large sums of money to Symantic to have the same features.

Ironically, an open source project was started within Oracle to come up with a system for Linux that would offer the same features - the company that now owns Sun and ZFS.

Well the developers in the Linux community have been busy with this next generation file system, and it is now available in the latest Ubuntu 10.10 Alpha 2 builds, and I have just installed it using the alternative iso file into a Virtualbox test machine. I will be doing this on real hardware as well next week.

The installation was easy enough using the ncurses method as opposed to the more modern GUI mode, and the virtual machine started without any issues. At the moment you have to keep the /boot partition on ext4, as btrfs doesn't work with that as yet, but it is being worked on.

One of the features I'm looking for along side the advanced features of easy command line snapshots and duplication is a speed boost, only time will reveal if this is to be realised.

Using the command btrfs from the command line you can take snapshots of subvolumes and resize the filesystem on the fly, which offers so much simplification over the tools and methods we current use, like LVM etc.

I'm looking forward to spending some more time investigating all of the features of this very interesting new filesystem.