Christmas Day

It’s a beautiful day here in Wellington – a nice surprise as the weather hasn’t been so great over the past few days. After breakfast we hiked up through the Town Belt to Mount Victoria lookout in an attempt to walk off a mild hangover from the traditional Christmas Eve over-indulgence.

[View over Wellington City with the Marina in the foreground]

The views over the city and the harbour are worth the trek up the hill. The wind was pretty fierce though, and I didn’t envy anyone doing the crossing today on the Inter-Island ferry we saw departing the port.

[The Ferry with hills in the background]

On our way back we walked along the sea front at Oriental Bay where there were a few people relaxing in a suitably festive manner on the new and improved beach (which hasn’t quite washed-away despite some predictions and has been the subject of some fascinating controversy over municipal spending priorities).

[Three sunbathers in Santa hats]

It really doesn’t feel like Christmas Day, despite all the decorations, Santa outfits and our own best efforts to be as festive as possible (can’t have a roast, though – the oven here is broken, so we’re going native and having lamb and fried kumara instead). I think that it’s the climate. Even though I’ve spent Christmas in hot places before, I think there’s something hardwired into me that just can’t quite believe that it’s the right time of year. Ungrateful it might sound, but part of me does pine a little for a bit of frost (cue cries of disgust from friends and relatives back home). OK, well, maybe not that much. Have a good day, wherever you are.

unwired

I thought it might be useful to post a few notes on the process of getting connected to the CafeNET WLAN here in Wellington. It will help me in absorbing everything that I have read about and might prove useful to someone else one day. Be warned, this is a fairly technical post!

Hardware and OS:

Software Requirements:

The package references in parentheses above are Slackware specific. I can’t imagine that there is a major distribution that does not supply any of these packages, but the links will take you to the source if you need it. There are alternatives to dhcpcd you might use, and there is an alternative solution (in part) to the one I am going to describe using a different driver and toolkit.

The ZoomAir 4100 uses the PRISM II architecture with a MANFID of 0x0156, 0x0002. This architecture is listed in the know cards database (/etc/pcmcia/config) and bound to the orinoco_cs device driver, so upon card insertion the cardmgr daemon loads the relevant drivers and logs this in /var/log/messages.

Once cardmgr has identified a card and loaded the device driver(s), it performs some further configuration using the scripts in /etc/pcmcia. The scripts called depend on the device class of the card (see the PCMCIA-HOWTO for more information). In this case cardmgr calls the network script which in turn calls the wireless script. Specific configuration options can be added to the scripts by editing corresponding *.opts files in the same directory.

I had not altered any of these scripts when I began experimenting with the ZoomAir card, and it turned out that the scripts as distributed with Slackware don’t do anything untoward – but neither do they do anything particularly useful, so the final steps needed to be performed manually.

The CafeNET website gives their SSID as ‘cafenet’ and tells us that they do not use WEP (encryption). Armed with this information, we can manually configure the interface using iwconfig. It turns out that the default setup has encryption turned off and sets reasonable values for everything else, so all we need to do is set the SSID:

# iwconfig eth0 essid cafenet

Then you can fire up the dhcp client daemon and hopefully get connected:

# dhcpcd eth0

(I’m going to use eth0 as the interface throughout these examples, but this might not always be the correct option for everyone. If your interface is eth0, you don’t actually need to specify it to dhcpcd as it will use that by default. I’m specifying it for clarity.)

This was enough to get connected to the network. To ‘hang-up’, firstly cleanly kill dhcpcd:

# dhcpcd -k

Then you can eject the card:

# cardctl eject

So – very little needs doing to get connected. But there are some tweaks I’ve made to automate the whole process – even geeks get bored of typing in the same old commands all the time, and what are computers good for if not automation, anyway?

As implied above, Card Services comes with a ready-made system to help automate managing cards. By adding some code to the scripts in /etc/pcmcia we can automate the entire process of connecting to and disconnecting from CafeNET.

I created a scheme for connecting to CafeNET by customising network.opts and wireless.opts. There is no card-specific configuration that I’ve found necessary, so this scheme may be of use to you whatever your card type. Before customising these scripts it is worth reading through the comments as there will probably be sections you will want to remove or comment out.

Here is the case to add to wireless.opts:


cafenet,*,*,*)
    INFO="Scheme for connecting to Wellingon's CafeNET"
    ESSID="cafenet"
    MODE="managed"
    # Turn off encryption as suggested:
    KEY="off"
    ;;

And here is the one for network.opts:


cafenet,*,*,*)
     # Leave it all up to dhcpcd:
     DHCP="y"
     ;;

You can now connect to CafeNET by inserting your card and changing the scheme to cafenet:

# cardctl scheme cafenet

Schemes are described in the Card Services documentation. They’re are a handy way of packaging configuration options for different circumstances which can then be called with a single command on the fly.

It is worth noting that Schemes persist across boots. This is useful for me at the moment as I can leave the scheme set to ‘cafenet’ and get connected simply by inserting the card which will automatically try to connect – I don’t have to type anything at all. But this might not be the behaviour you want. You should be able to set a variable ($SCHEME, funnily enough) in your init scripts to set the scheme at boot time, under Slackware you can set this in /etc/rc.d/rc.pcmcia. There are various ways of controlling this, check out the docs.

To disconnect you should just be able to eject the card using cardctl. Unfortunately there is a slight problem with the network script supplied with Slackware 9 – it sends dhcpcd a SIGTERM when it needs a SIGHUP to exit cleanly (see the man page for more). This is easily fixed. In the network script in the section of the ‘stop’ case dealing with killing dhcpcd replace the line:

kill -TERM $PID

with:

kill -s HUP $PID

This is line 182 in my original network script.

This small change will make sure that everything is left nice and tidy. You could, of course, kill dhcpcd by hand and then eject the card, but why type two commands when one will do?!?

So, there we are – it all works quite well and working it out has taught me quite a bit about the Card Services tools and about both wireless networks and networking in general, all areas I didn’t know a great deal about before. Perhaps this stuff will be useful to someone else.

One final point: while researching all this stuff, it became apparent that there is at least one other option for this particular card in terms of drivers. The orinoco_cs driver is a generic solution – it supports several types of card, and is distributed with the Card Services package as a standard module. According to the orinoco page at Jean Tourrilhe’s site (a great resource for Wireless and Linux stuff generally), the support for Prism II cards is ‘not yet fully functional’, and for Prism 2.5/3 cards the alternative linux-wlan-ng system should definitely be used.

The linux-wlan drivers and subsystem provide an alternative to the orinoco/wireless extensions system described above – not only is the driver different, but the wireless extension tools (e.g. iwconfig) are not used either. Right now, I’m still using orinoco_cs (it works), but I might take a look at the linux-wlan package if I’ve got the time as it is specifically designed for the Prism-type cards of which the ZoomAir 4100 is an example.

Wifi Wellington

Turns out that Wellington has quite extensive wireless coverage in the CBD. A local broadband access company, CityLink, which already provides a fibre-optic network also operates an 802.11b network called CafeNET. Turns out that today the whole of Lambton Quay has gone live as a ‘Hot Zone’.

The company is a commercial concern, so you have to pay to log on. They charge on bandwidth usage, NZ$20 for 70 Megs, NZ$80 for 350 (c. 7.50 and 30 pounds sterling), although they are doing a free promo each weekend in Dec. I have no idea whether the rate is reasonable or not, but if it ain’t I might find the motivation to install the gzip plugin on this site to try and cut back on bandwidth, seeing as I reload the damn page about ten times every time I update.

So, motivation to get the wireless card on the laptop working! And after an hour or two fiddling, a bit of head scratching, a trip to an internet cafe and a forehead slapping later, it’s all done, and I’m posting this from the laptop, sitting in the Courtenay Central Entertainment Complex! More details in a separate post in a more appropriate category when I get around to it – tomorrow, maybe.

Lord of the Rings – The Final Post

I promise. Well, at least until I see the film itself. The weather held out for Wellington’s big day on Monday, and the sun beamed down on the thousands of people who turned out hoping for a glimpse of their favourite LotR actors. Most weren’t disappointed, as despite the crowds it was possible to see what was going on even if it proved more difficult to get any good photos.

[Elven Warriors make their way through the crowd]

The parade, which ran all the way through the centre of the city, made me think of a US ticker-tape parade or a Royal occasion back in the UK, but with far less security than you’d expect given the numbers involved. Interspersed between groups of costumed extras, the stars of the film slowly made their way to the cinema for a round of speeches and the Premiere itself. They all looked pretty blown away by the whole event, and all seemed to have big smiles on as they drank in the adulation surrounding them.

[The Black Riders attempt to terrify some fans]

Unfortunately I didn’t manage to get any good shots of the stars themselves. I had a reasonable vantage point, but the sheer frenzy that greeted them proved beyond my capabilities to penetrate. I’m not too bothered really, as I’m sure we’ll all see plenty of them all over the coming weeks as the hype continues to build for the film’s general release. In the mean time here’s another shot of some of their escort.

[The Men of GOndor march past]

The parade was fun, and seemed to live up to the city’s expectations. There was a general sense of carnival throughout the day, and I don’t think anyone really expected to get a lot of work done (I had a job interview rescheduled for Tuesday). Even the phone company got in on the act (I hope you can make out the screen, it says we’re in ‘MiddlEarth’)

[The cell is renamed MiddlEarth (sic) for the day]

Should you think that the whole country was united in LotR celebration, I should mention a few signs of dissent that were present, albeit almost swamped, on the day. As the band which concluded the parade marched past the spot I’d found for myself, a handful of people unfurled a large banner:

[Banner reading 'Our Mayor Jailed Homeless People For This']

A little further down the road was another small group standing around some graffiti-covered cardboard boxes haranguing the crowd on the same issue. There was some debate with a few of the surrounding crowd, but I didn’t stay to watch for long. There weren’t many people protesting – a tiny number compared to the crowds happily watching the parade go past – but it’s worth a mention, especially as the latest issue of The Package mentions something similar in a short piece on some of the consequences of increased tourism to NZ. There is some concern over these issues here, even if it doesn’t seem to rate much of a mention in the mainstream media outlets.

We watched the speeches in a bar, although for some bizarre reason the local media kept interrupting their coverage of the days events – even in the middle of the speeches – to report on mundanities such as the sports results, or some piece of dull local news. This was actually the subject of complaints in the letters page of the paper later in the week, so it wasn’t just us that found this a bit odd. After the speeches were concluded and the stars enjoying the fruits of their labours in the cinema, the crowds began to disperse. We headed down to Taranaki Wharf to watch some of the entertainment laid on, but it quickly became pretty cold and we ended up heading home to bed rather than sitting up to watch the Two Towers yet again – after all the bloody hype, we plebs still have to wait until the 18th to watch the damn new film ourselves!

Lord of the Rings – Premiere Day

The much expected day is here, and Wellington is well and truly gearing up for the fun. The parade is due to start in about half an hour and the crowds are already gathering along the rails marking the route, the sun is shining and there’s a carnival atmosphere throughout the city. Best costumes I’ve seen yet are the two Ents and the Elf Maid wandering up and down Lambton Quay.

I expect to see a few more before the day is out! Right, I’m off to join the fun.

Critical Mass Protest

This evening I witnessed my first Kiwi protest event! And all by accident, too. We were taking a stroll around the city to check out where I have to be for a job interview next week and to have a peek at the Cave Troll, when we spotted a poster exhorting the reader to attend the monthly Critical Mass protest, meeting in Civic Square at 5.30pm. As Civic Square is where you can find the aforementioned Troll, we ended up there at about the right time.

For those unfamiliar with modern protest movements, Critical Mass is the name associated with anti-car/pro-bicycle groups in various cities around the world. There are protests using the same name in London, some of which I’ve witnessed in the past. I don’t think that there is any overarching Critical Mass organisation – the name is adopted by different groups in different cities who have similar agendas but who may not communicate in any strategic manner, except for the odd occasion when an attempt to synchronise protests across the globe is made.

Unfortunately for the Wellington Critical Mass crowd, something kept the numbers down – there were only about 30 people on the demo. Perhaps this is a factor of population, or perhaps the fact that many students will have left the city for the summer holidays had an effect. Maybe no one in Wellington gives a shit – Heaven forbid! Still, top marks for pluck, as those that were present carried on regardless and braved the rush hour traffic. There were no police in sight, and the only camera I spotted was my own – so I felt homour bound to record the event.

[On the March.  The Banner reads 'Mobil Murders']

There were two main strands to today’s protest according to the leaflet I was handed. First off were the general principles of oppostion to a car-dominated society, with the specific Wellingtonian issue being the proposed construction of an inner city bypass. The flyer recommends a visit to the Campaign for a Better City for more info on this. The second strand was a protest against the Mobil Corporation, which the protesters accuse of having a part in crimes against humanity committed in Aceh, Indonesia. They allege that the corporation hired units of the Indonesian military to provide security for their assets in the region that were at some unspecified stage involved in “systematic torture, murder, rape and other acts of terror”. The leaflet recommends a visit to the International Labour Rights Fund for more information on this issue. I suppose I should take a look through ExxonMobil’s website to see if they have bothered to refute any of these allegations, but I’ll leave that as an exercise for the reader.

Lord of the Rings Mania

Wellington is currently in a fit of Lord of the Rings insanity. The World Premiere of The Return of the King is being held here on Monday, and the city is gearing up for the big event. The local papers are already full of gushing reports about stars being spotted in the city and many of the shops are sporting special window displays (regardless of what it is they actually sell in the normal course of things) as there’s a display competition being run by Positively Wellington Tourism. I reckon this well dressed Orc has got to be my favourite so far:

[Orc in a Shirt and Tie]

A set of commemorative stamps have been released to mark the occasion and these are the source of much of the more obvious decoration – from banners adorning the street lights to billboards to vast sheets tied across the fronts of office blocks. The largest depicts Sir Ian McKellen as Gandalf, hangs down about eight floors from the front of the NZ Postal Service building and has become an icon of LotR-obsessed Wellington, but I prefer the (slightly) more subtle approach embodied by this three-dimensional billboard:

[Billboard in shape of an envelope addressed to Mount Doom containing what looks like the Ring]

There are two cinemas associated with the Premiere, the Embassy and the Reading Cinemas complex, and atop each building perches a Black Rider astride his dragon-like winged steed gazing down balefully on the passing throngs.

[Nazgul atop the Reading Cinema]

There is to be a great big parade on the day of the Premiere winding it’s way through the city to the final stretch of Red Carpet leading up the steps to the doors of the Embassy Theatre. Most of the inner city hotels and hostels are completely booked up and have been for weeks and weeks; had we not sorted a flat this week we might have faced a night in the park on monday!

[Nazgul atop the Embassy Cinema]

It’s quite fun being in a city the size of Wellington when something like this is happening – it’s small enough for the excitment to get everywhere, and you can’t help get a bit caught up in it all even as a visitor. We even had a moments excitement ourselves the other day when we realised that we’d just strolled past one of the hobbits!