September 2009 Archive

Ubuntu 9.10 Boot Time

September 30th, 2009

After reading this article on optimizations made to Ubunbtu 9.10 in relation to the boot time I thought I would check this out in a virtual machine.

I understand that much of the work done will help when booting from an SSD drive and using a virtual machine adds an extra layer between the OS and the bare metal but I though it would be interesting to compare the boot time to Fedora 11, that I also have installed in a VM.

Setting Ubuntu 9.10 Alpha 6 and Fedora 11 up in identical virtual machines, both set to auto login with bootchart installed I was very surprised by the results.

Ubuntu booted in between 1 minute and 1 minute 6 seconds while Fedora 11 booted in between 32 and 34 seconds. This is by no means a controlled test and Ubuntu is still in alpha status but I was pretty shocked by the results. Hopefully by it’s release it will be booting in the sub 30 seconds range.

Non Removable USB Disks

September 30th, 2009

I downloaded Ubuntu NBR to install on an Acer Aspire One.

On a side note why the hell is there no download link direct from the main page, it takes 3 more pages to find the download link. It’s almost as though they don’t want you to use it!

Anyway after downloading the ISO file I also downloaded the Imagewriter for Windows to copy the ISO file to my USB disk. At this point I realised that the disk is not recognised as a removable device and so the tool does not ‘see’ it.

Next I tried the Fedora Live USB Creator but that has exactly the same problem. Finally I tired a different computer but with the same results.

After reading this bug report for Ubuntu Imagewriter it seems to be some issue with certain USB disks where they are not ‘seen’ by the OS as removable disks. Even though my disk does show the “Safely Remove Hardware” list it still doesn’t work.

I’ll try from within Linux next to see if that solves the problem.

Edit: I just tried a different key and it works perfectly. I’d be interested to know how to set Windows (XP SP3) to see a disk as either removable or fixed.

Simple HTTP Server with Python

September 24th, 2009

I came across this article on Linux Journal today about using Python to run a very simple HTTP server from any directory. I tested in on a standard install on Windows and it works perfectly.

As one of the comments says there’s loads of great command line tips to be found at commandlinefu.com, including the one I mention here.

My Company Upgrades to IE7

September 14th, 2009

I received an email at work on Friday that all work computers will be upgraded to Internet Explorer 7 in the next few days. I nearly jumped out of my seat in joy. As someone who develops Intranet pages I can’t begin to say what a pain in the backside it is to support IE6.

IE 7 certainly isn’t perfect but it’s a damn site better than IE 6 especially in term of rendering and performance on JavaScript heavy pages.

Since IE 7 was released in October 2006 maybe we’ll get IE8 in March 2012! Of course I understand that it has to be thoroughly tested against all company applications; but to be honest we don’t have that many and of those I’m pretty sure many actually use Java so it doesn’t have a lot to do with the browser.

Fedora 11 on an Old Laptop

September 10th, 2009

My old laptop from 2003 runs the original Centrino (Banias) with a 1.3MHz Pentium M. Up till now it’s dual booted Windows XP and Fedora 9 but since I never use it I decided to wipe clean and just install Fedora 11.

It actually runs amazingly well on a full gnome desktop, it’s fast, responsive, boots in about 30 seconds and shuts down in about 5 seconds! I’m sure it actually runs faster than it did with the old install.

I’m pleased that a new OS still runs fine on an old laptop and despite the increasing size and complexity of the OS it doesn’t seem to have impacted performance.

Site Moved to Fatcow Hosting

September 8th, 2009

You may or may not have noticed but my my site bobpeers.com went down over the weekend.

This blog seemed to work just fine but I was getting http 500 errors on my main site. Strangely I was able to view 2 or sometimes 3 pages before the error started but once I got the 500 error every page would then not work.

I viewed my hosts error log and first saw errors regarding these lines in my .htaccess file.

php_value session.use_trans_sid 0
php_value session.use_only_cookies 1

The simply stop the session ID being added to the URL and had been in my .htaccess file for ever. After removing these lines as a test I now saw lots of these errors logged.

[Fri Sep 04 03:45:46 2009] [notice] mod_fcgid: call
/home/bobpeers/public_html/blog/index.php with wrapper
/usr/local/cpanel/cgi-sys/php5
[Fri Sep 04 03:45:09 2009] [notice] mod_fcgid: call
/home/bobpeers/public_html/blog/index.php with wrapper
/usr/local/cpanel/cgi-sys/php5
[Fri Sep 04 03:44:51 2009] [notice] mod_fcgid: call
/home/bobpeers/public_html/HTTPErrors/500error.php with wrapper
/usr/local/cpanel/cgi-sys/php5

Seems like at some point my host went from using plain PHP5 to fastcgi but I have no idea if this is the cause of the error.

After 5 attempts to get a response from my hosts support without getting a single reply (and seeing that the forums are defunct and filled with spam) I decided it was time to jump ship.

After copying my content and MySQL databases he site is now back up running on Fatcow. it’s early days but I’m very happy so far.

My old host was very cheap but as the old saying goes ‘Pay peanuts and get monkeys’.

For reference my old host was Vonetwork and my advice is to steer clear!

Synology Assistant Support for Linux

September 2nd, 2009

As much as I love Synology products one glaring omission has been the lack of Linux support to set up the Disk Station. Bearing in mind that the products themselves run Linux it seems very strange that you have to use a Mac or Windows PC to get them up and running.

Reading this announcement I’m pleased to see that they have a beta release that now supports Linux. Well it actually states that it supports Ubuntu but I really hope they work on releasing packages for other distributions or at least the source so we can compile it for ourselves.

In the worst case I can still install it using Ubuntu in a virtual machine, still miles better than having to have Windows around just for this.

3G Internet on Danish Trains

September 1st, 2009

The main train company in Denmark is called DSB and they have recently introduced wireless internet on many of their long distance trains.

In theory this is a great idea but in practice I can’t help but think they’re missed an opportunity. Remember when no so long ago you paid for your internet by the minute and so you connected, did what you had to do, and disconnected ASAP, well it’s the same for DSB.

If you don’t buy an access card then it costs 1 DKK per minute, even with a card it costs 299 DKK per month where I’m tied to using their WIFI hotspots.

Quite why I would do this when I can sign up for mobile broadband for between 200 and 300 DKK a month and have internet anywhere I go in Denmark (and abroad), even with unlimited use using the 3 network, is beyond my understanding.

Certainly last time I was on the train about a month ago the vast majority of people seemed to have their own USB dongles to access the internet. I don’t mind paying something (even though I really think it should be free) but this price is so uncompetitive as to be a joke. But then DSB was never known for good value or forward thinking.

On a related note the trains have their own computer that acts as a proxy server and gateway to the 3G network, users connect to this using an 802.11g connection. I didn’t pay for the internet but accessing the gateway I could see that it was running Ubuntu, the http headers are shown here.

Date: Thu, 13 Aug 2009 12:41:47 GMT
Server: Apache/2.2.8 (Ubuntu)
Accept-Ranges: bytes
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

Their on train solution I’ve translated from this DSB page and included below.

The chosen solution
DSB has chosen to offer wireless internet in the train, in cooperation with TDC. The solution is based on a combination of WiFi and 3G technology.

The train itself is thus a wireless WiFi solution. WiFi technology is the same as TDC for its Hotspot solutions, which are everywhere at home, at work, in hotels and elsewhere. The WiFi solution is based on a standard called IEEE 802.11g and has currently a capacity of 54 megabits per second.

Communication between the trains antenna and TDC terrestrial base stations / masts are using the latest 3G technology, called HSDPA (High Speed Downlink Package Access). Capacity as of early 2009 is up to 5.7 Mbits / sec. and will be expanded as the 3G technology is developed, and the need for higher capacity.

User’s PC communicate “WiFi” language to the trains Access Point. While the trains antenna communicates the “HSDPA” language with base stations / masts along the track and have a cable connection to the Internet.

The Train Access Point and the antenna are connected via cables to an Internet Controller. The Internet Controller is train solutions heart, and as such has 4 cardiac chambers. These are:

* An ethernet switch with firewall
* A mini-computer (which controls the particular capacity allocation among the users logged in)
* An HSDPA modem, and
* A power supply.