Saturday, March 22, 2014

The Queen Mary 2 in Sydney

About a week ago, the Queen Mary 2, shipping company Cunard Line's flagship once again visited Sydney. The 151,400 ton ship is 345 meters (1,132 ft) long, 41 meters (135 ft) wide (45 m / 147 ft 6 in) at bridge wings), and with a height of 72 meters (236 ft 2 in), it's too high to fit under the Sydney Harbor bridge.

14 of the 17 decks are available to the guests / passengers. The maximum capacity is 3,090 passengers, with a crew of 1,288 looking after the guests and running the ship.

Further technical data and key figures are available on this technical fact sheet (PDF).

You can also explore the QM2's deck plans (PDF).

And now, as you've probably guessed already, I'm gonna show off some of the photos I took during the QM2's visit:

Queen Mary 2

Queen Mary 2

Queen Mary 2


Note: Photos have been processed with GIMP; composite images have been created with Hugin.

Monday, March 3, 2014

What to do

A couple of weeks ago, my DVR went from highly unreliable to completely useless, but miraculously came back to life after some serious pretend-repairing and looking at it very sternly.

Now, the unit's remote control has followed the recorder's example and, after a few days of constantly deteriorating performance, is now refusing to work at all. No amount of feeding it posh top-brand batteries with fancy words like performance and extreme in the name, gently stroking the buttons, creating an intimate atmosphere by holding the bloody thing really close to the recorder, or waving a stick at it while shouting "Remotus Reparo" seems to coax it back to life.

To make matters worse, the recorder itself features only the most basic set of controls. There's the Power button, a pair of buttons to change the TV channels (up / down), and volume control. That's it. So, without a working remote, it's possible to watch live TV via the recorder, but setting up new recordings, or accessing any of the recorded content, is out of the question.

So, there's the option to buy a new remote control. That's AUD 50 (or thereabouts) on an accessory for a fairly old-ish DVR that, while it's essentially working again, hasn't been quite the same since that near death experience (channel changes take about 4 times as much time as they did originally, and a few channels can no longer be recorded properly), and may die for good any day.

Or I take the hint and spend money on a brand new recorder, probably from a more reliable manufacturer, consigning ye olde Topfield to the council's next available bulk garbage collection, all because of that pesky remote.

What to do, what to do … I'm open to suggestions.

Saturday, March 1, 2014

How to spoof a MAC address

The Media Access Control address is a unique identifier assigned to network interfaces (For more details, see the ever reliable Wikipedia or ask Google). The MAC address is hard-coded on the Network Interface Controller (NIC). Consequently, it always remains the same, no matter where in the world you connect to the internet, and regardless of any VPN and / or proxys you might use.

You can, however, make your operating system (and subsequently the LAN you're connecting to) believe that your NIC has a MAC address of your choosing (or a randomly generated one, for that matter), rather then the one hard-coded on said NIC.

Perhaps the end user agreement of a web-based service you've subscribed to only allows you to connect a limited number of devices (or even just one), and you need to connect your new computer.

Perhaps you want to hide your identity (and that of your computer) in order to protect your privacy.

Perhaps the time-limit of the public hot spot you're using has expired (airports, public transport, coffee shops, etc), and you need to convince the public WLAN that you're connecting with an entirely new device.

Whatever your reasons may be, I won't judge you, I'm just going to show you how to do it.

Install MAC address change tool

A Google search for "MACChanger" lets you find the necessary tool for your operating system.

For Windows, you can download it here, for example.

On Ubuntu 12.04, install MAC changer using this command:

sudo apt-get install macchanger

Spoof a MAC address

Note The following process has been tested on a Ubuntu 12.04 system. For the procedure and syntax applying to your operating system, refer to the instructions on the download site you obtained MAC changer from.

First, you must stop the network manager service:
sudo service network-manager stop

Now, run MAC changer. This example generates a fully random MAC address for your wireless network interface:
sudo macchanger -r wlan0.

To spoof a MAC address for the ethernet network interface, use eth0 as the device identifier.

sudo macchanger -h lists the available options. They are:
-h Help Show summary of options
-V Version Show version of MAC changer
-e Ending Don't change the vendor bytes (e. g. your Cisco NIC will still show up as an Cisco NIC)
-a another Set random MAC address of the same kind
-A Another Set random MAC address of any kind
-p Permanent Reset to original, permanent hardware MAC address
-r Random Set fully random MAC address
-l List List known vendors
-m MAC Set MAC to specific MAC address: macchanger -m XX:XX:XX:XX:XX:XX

Finally, restart the network manager service:
sudo service network-manager start

Note that after shutting down and restarting your system, the operating system will once again broadcast the original, hard-coded MAC address of your NIC to the world.

To restore the original MAC address without rebooting, use
sudo macchanger -p wlan0.

Congrats, you're done

So there you have it. Never get bored to death again when the airport gives you a measly one hour of WiFi connectivity but your flight has just been delayed indefinitely. Now all you have to do is install MACChanger before you get kicked off the WLAN you're using, and Bob's your uncle.