Google Maps gets better and better

This content is 16 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

I used to use the AA and RAC websites to plan routes but these days Google Maps is faster and easier. And I just noticed that the Google Maps service has been improved with the ability to drag and drop the route line to customise the route.

Another feature (which may have been around for a while – it only seems to be available for US directions at the moment and I generally need to look at UK routes), is the ability to get directions using public transit. I’m planning my trip to the States next week (more on that in a couple of days) and it’s really useful.

iPhone: should I? shouldn’t I?

This content is 16 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

My mobile handset used to be just what I needed. It’s a phone, with a WAP browser. Basically, it works for making calls and reading my e-mail via OMA – and it fits the full handsfree kit in my car that my work phone uses (yes, I have two phones… one so I can be contacted by friends and family whenever I want and the other so that work colleagues can only call me when I’m working).

But I have been tempted. I’m a geek, and geeks feed on gadgets. And whilst common sense tells me that a Windows Mobile phone would best match my needs, I am seriously tempted by the Apple iPhone, which goes on sale in the UK next week. The trouble is that even hardened Apple fanboys on some of the podcasts that I listen to admit that this is just a first generation device – an iPhone beta if you like – and at £269 (on an 18-month contract at between £35 and £55 a month), it’s expensive – especially without the 3G and GPS that other handsets offer.

I did look at the Nokia N95 but Apple’s decision not to allow their phone to be subsidised by the networks means that other smartphone vendors are pushing up their prices too (thanks for nothing Apple) and Vodafone
wanted over £300 on an 18 month contract, plus an extra £7.50/month for 120MB of data.

My existing Vodafone contract is up in a few days time, so I called them and asked for my PAC code so that, if I do buy an iPhone next week, I can transfer my number to O2. Not surprisingly, Vodafone’s customer retention department wanted me to stick with them (that’s their job). After I rejected their revised offer (“ah, the £300 was retail, but we’re able to make you a better offer”) of an N95 for £170 (still £120 more than it would have cost me a few months ago…), they suggested that if I could source an iPhone from somewhere outside the UK it would work with any UK network (UK models will be locked to O2), and they could offer me another 12 month contract, with lower charges. That sounds good, but it’s a bit underhand of them to offer that solution as I don’t think it will work – this is why:

  • Even though I’m planning to be in the US next week (so picking up US iPhone would be reasonably easy) an unactivated iPhone can’t even perform non-phone related tasks like playing music and videos and activation would require a contract on a network in the country from which it is sourced (i.e. AT&T for a US-sourced phone).
  • Whilst I’m sure that hackers will find a way to unlock the iPhone (again), Apple is playing cat and mouse with them, so the next software upgrade (which I could ignore) would prevent me from using my Vodafone SIM in it (and possibly “brick” the device).
  • In any case, even if I never used the phone with the AT&T SIM once it was activated, I’d have problems opening an account without a US address and I’d be legally bound to a contract.

So, here’s the choice as I see it:

  1. Wait until next Friday and buy an iPhone on O2 with an 18 month contract: Cost £269 + (18 x £35) = £899 (with 200 minutes/200 texts/unlimited data each month).
  2. Buy an iPhone from an Apple store in the United States and use it over here (if it works): Cost £191.66 (at today’s exchange rate) + ((9 x £10) + (3 x £16) + (12 x £7.50)) = £419.66 with 75 minutes/stop the clock/120MB data each month.
  3. (Wait for the next iPhone model/buy something else/do nothing).

So option 2 looks best on paper, but what if it doesn’t work? Does anyone know if I’m right about options for using an unactivated iPhone in the UK?

Connecting to a Linux server using VNC

This content is 16 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

Many of my computers are not in my office/den but are providing server functions for which the need to access them directly is rare. When I do need access to the Windows machines, I can connect to them using a variety of RDP clients; for my Red Hat Enterprise Linux (RHEL) 5 box it’s a similar situation but this time using SSH (for command line access) or VNC (for a GUI).

Although RHEL includes a VNC server and I’d opened up TCP port 5900 in the firewall configuration (using system-config-securitylevel), for some reason I was still having problems creating a VNC connection and it turns out that there were two main reasons for this.

  1. Each VNC display will use a new port number, so display 0 is on 5900, display 1 on 5901, etc. I was trying to connect on port 5900 but it’s not as simple as opening the port – I needed to start a session with vncserver (supplying a password if required – the vncpasswd command can also be used for this), then note the port number (open the appropriate firewall ports) and connect from my chosen VNC client.
  2. For connection to an existing logged on console session on the server running a graphical environment (display 0), it’s necessary to enable this in the Remote Desktop preferences:

Remote Desktop PreferencesOnce I’d got around this, it was fairly straightforward to connect to display 1 on port 5901 but the default display was using the rather dated Tab Window Manager(TWM) GUI (although starting GNOME applications like gedit applied the GNOME look and feel to that application’s window. By editing the /root/.vnc/xstartup file I could comment out the twm & line and replace it with startx &; however, because there was already an instance of X running on the server (for display 0), I found that the startx & command failed and I needed to use gnome-session & in its place. I also commented out the line starting with xterm and included gnome-terminal & at the end of the script so my xstartup file now reads:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
# xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# twm &
gnome-session &
gnome-terminal &

Just for completeness, here are a few more notes that might be useful:

  • Use chkconfig --list to check whether the VNC server service is started by default (if necessary, use chkconfig --levels 5 vncserver to make it start in run level 5 in future).
  • If not already running, then start the service with service vncserver start.
  • Kill VNC desktops with vncserver -kill :displaynumber.
  • VNC sessions may be tunnelled through SSH for a secure connection.