Dedicated to my late brave, beautiful and silly mummy, Debra Ross. I love you mumster.

Skip navigation

Category archive for networking

Because archives are so much easier than having just hundreds of posts on the home page. I learned that the hard way.

Wireless networking and podcast musings

Well here we are once again with another useless (or at least somewhat useless) Rubenerd Blog Musings Post. As I’ve mentioned previously, the justification for this category of posts’ existence is that I don’t have my audio recording and production equipment with me to record my Rubenerd Show podcast, audio magazine new time radio show, or whatever it is the kids are calling them these days. I’ll be going to the city later today and purchasing a headset, a far cry from the mixers and other fancy riff raff I’ve got back in Singapore, but it’ll let me get on the airwaves again and possibly even get Skype up and working again to hopefully interview some people. If the audio quality is less than stellar, I’ll be able to encode it with LAME at a lower bitrate, saving space and upload time which here is a more important consideration now that we have usage quotas!

ASIDE: I’d better be careful, this is a Rubenerd Blog musings post but the previous paragraph had a sliver of substance to it.

When I was a kid in early primary school I used to pronouce "silver" as "sliver". I also had trouble remembering which ones were elbows and which ones were shoulders. Good things I can pronounce silver now at least.

The front of the Boatdeck Cafe using Google Maps street view
The front of the Boatdeck Cafe using Google Maps street view

I’m once again sitting at the Boatdeck Cafe in Mawson Lakes once again (including this bracketed area, I’ve said once again three times) having some pancakes and a Betty Blue Sea of Espresso. If you live around Parafield or other areas around north Adelaide, make your way over to Mawson Lakes in the morning for brekkie here, the view of the lake out the huge windows and the food are just fantastic. I’m so poetic I could stanza myself. Stanza myself?

Unfortunately for me the WiFi doesn’t seem to be working today. If you’ve listened to any of my shows you’d know how much I loathe wireless networking for the simple reason that it’s even less reliable than regular networking! I can remember back to 1999 when we first got broadband interent (SingTel Magix, anyone from Singapore remember that?) and I had visions of 2010 where every coffee shop and cafe would have a wired Ethernet port and a power socket on every table. I guess I didn’t realise wireless was on the horizon!

Nagisa Furukawa with coffee and breakfast
Nagisa Furukawa with coffee and breakfast :-)

Despite the WiFi revolution or whatever the kids are calling it thesedays, at home I refuse to use it: the computers in Singapore and here in Adelaide are connected through Category 6 cables to gigabit Ethernet switches. This means when a network connection fails (and it rarely does) I can figure out what the problem is much more quickly. I think it comes down to control: I’m more in control with cables because I have control over the transmission medium. I said control three times in that last sentence, four times including this sentence.

Until I have the capability to create micro-wormholes that my wireless networking beams can travel through without being interrupted by furniture, concrete walls and stale grilled cheese sandwiches, I feel more comfortable with wired Ethernet. Part of me also is concerned about security: the experts claim the WPA encryption standard is unbreakable, but as I recall the previous WEP (wired equivalent privacy!) standard was told to be just as secure. With cables, static IPs and a whitelist of approved MAC addresses, everything just works faster, more reliably and hopefully more securely.

The front of the Boatdeck Cafe using Google Maps street view
View of the lake from the Boatdeck Cafe using Google Maps street view

ASIDE: I had no idea that this post would turn into a rant about why everyone should stop using WiFi at home. I mean, wired ethernet is the solution to everything: people only complain when they’re houses become jungles with tangled weaved cables running through every hallway and room. I love it, it makes our house look like a place where work gets done! Nothing says "I work my arse off on computers while you sit around doing nothing" than a tangled mess of cables running along every walkway.

Pink Ribbon On a more serious note, I’ve been thinking about mummy a lot more again lately. A few days ago I was at the Boatdeck Cafe enjoying a Betty Blue Sea of Espresso while doing some light programming and having a great conversation with a friendly woman about life the universe and everything. She was about the age of my mum and had gone through the rigamarole of breast cancer treatment herself. She couldn’t believe that mummy had gone through over a decade of almost non-stop chemotherapy and radiation treatment; most people call it quits and move on after the second course. Upon talking about it, I remember one of the things that stuck with me the most when she passed on that my dad told me: he said the reason why she went through all that pain and suffering for such a long time was that she wanted her kids to have memories of her. Had she passed on after the first round back when we still lived in Australia, Elke and I probably won’t have remembered much about her. I’ve been coping better with the colossal void in my life she’s left over the last half year, but talking about it brought back the emotions again. I really, really do miss her.

Another thing I know though, and it is cliche, but the last thing she would want would be for me to still be wallowing in sorrow now. Chin up, moving on! What is it that the gym owner from the Brittas Empire always used to say? I forget, never mind!

The front of the Boatdeck Cafe using Google Maps street view
End of the Bethel Island road, by Varmint Al

I was originally going to talk about the Olympics finishing up and how grateful I am for the fact, but I’m going to save that for a separate post. I learned something about the Aussie Olympic team that just irritates the hell out of me, though in hindsight I shouldn’t have been surprised.

This musings post will be ending now because it’s the end of the post, and the best place to end something is either when it’s finished, when you’ve worn out your welcome, or if you’ve lost the interest of the people who were reading your material. I think I qualify for all three in this circumstance.

Western Digital MyBook DHCP adventure

Before I go any further, I’d like to warn you that this post about using FreeBSD to assign an address to a Western Digital MyBook drive is unnecessarily verbose. See, I could have just as easily said "this post is long".

Writing about theoretical uses for software is one thing, but figuring out how to apply software to a problem practically, and actually getting it work, is one of the greatest feelings in the world alongside writing a fantastic piece of software yourself to solve a problem. It makes me feel useful and gives me a rush quite unlike anything else.

And he’s available ladies! Unbelievable though it may seem! Come on! He also makes a mean Earl Grey latte. Any bidders? Anyone?

Case in point, my sister and I had a problem in our new house in Adelaide. Before I left Singapore, I bought a gigabit ethernet Western Digital MyBook 1GB World Edition NAS drive and loaded it up with all our media: movies, shows, music, podcasts, BSD disk images, ebooks. By using a simple network drive, we spared ourselves having to bring a separate computer down with us.

Our makeshift home network consists of each of our laptops and the aformentioned network drive which are all connected through short Cat-6 ethernet cables to a 5 port gigabit ethernet switch. To compensate for the lack of a router, I assigned my sister’s MacBook and my MacBook Pro static IP addresses and I knew the network drive could also be assigned one. Very cool.

Our very fancy new home network
Our very fancy new home network.

Now here’s the kicker: for some reason in their infinite wisdom Western Digital decided not to ship the MyBook with a default IP address. This means it requires a DHCP server (Wikipedia link) to initally provide it with an address. I realised that without a router with a built in DHCP server, this network drive wouldn’t get an address, and therefore there’d be no way for me to log into it to assign it a static IP! Catch 22, chicken and the egg, a Bruce Schneier fact, call it what you will.

So within a few minutes I had configured a home network with two laptops and an inaccessible, address-less network drive. It seemed not having a router with a built in DHCP server would make this setup impossible. A quick Perl script determined that indeed only the two laptops were in our subdomain range:

#!/usr/bin/env perl

for ($i = 1; $i < 255; $i++) {
  system “ping -a -c 2 192.168.1.$i”
}

print "Western Digital engineers love DHCP it seems\n";

At this point I had to make a tough decision. To access our media network drive I could either be patient and wait a week until we got our new broadband modem with a built in router, or I could be impatient. Grilled cheese sandwich. Grillec cheese sandwich?

I decided to do the latter and give it what it wanted: a DHCP server! In place of a router, I would configure a one-time use FreeBSD virtual machine with a software DHCP server which would assign the address to the network drive, so I could log into it remotely and assign it a static IP.

My FreeBSD virtual machine showing the DHCP server coming online
My FreeBSD virtual machine showing the DHCP server coming online

After setting up a generic VMware Fusion virtual machine on my MacBook Pro, I mounted a FreeBSD 7.0-RELEASE ISO I had on already had on my hard drive and installed it with all the default options. I skipped configuring everything in the system installer except than the network card. I declined to use DHCP when it asked, and assigned it a static IP.

After rebooting the VM, I logged in as root and installed the isc-dhcp3-server package from ports.

I didn’t bother adding anything fancy to the /usr/local/etc/dhcpd.conf other than defining the pool of addresses and required options:

option domain-name "chuckpeddle";
option subnet-mask 255.255.255.0;

default-lease-time 3600;
max-lease-time 86400;
ddns-update-style none;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.120 192.168.1.129;
}

Next, to check what addresses our makeshift DHCP server has assigned, I created the default dhcpd.leases file:

# touch /var/db/dhcpd.leases

Finally, I enabled the dhcpd daemon in /etc/rc.conf and told it what card I wanted FreeBSD to listen for DHCP requests on. On VMware Fusion 1.1.3, the network card in FreeBSD is le0, but you can always check to make sure by using ifconfig -a

dhcpd_enable="YES"
dhcpd_ifaces=”le0″

The moment of truth had arrived! I turned off my Western Digital MyBook NAS drive, rebooted the FreeBSD virtual machine, then turned the network drive back on again. After a minute of waiting, sure enough the /var/db/dhcpd.leases file reported that it had assigned an address…

lease 192.168.1.129 {
  starts 6 2008/08/02 14:37:12;
  ends 6 2008/08/02 15:37:12;
  binding state active;
  next binding state free;
  …
  client-hostname “RubenerdNAS”;
}

… and automagically the Finder on my MacBook Pro reported it had found a new samba share (with it’s irreverent sense of humour)! My network drive had been resurrected from the dead!

My Western Digital MyBook in the Finder
My Western Digital MyBook in the Finder

Finally, after all of that I was able to go to my web browser and log into the damned network drive’s configuration page and change the IP address to a static one.

I still can’t help but wonder why Western Digital decided not to include a default address.

Western Digital NAS config screen, and the FreeBSD DHCP virtual machine
Western Digital NAS config screen, and the FreeBSD DHCP virtual machine

And now if you’d excuse me, I’m off to watch an episode of Cranky Geeks. From my network drive. PHEW!

Whole Wheat Radio Wireless@SG problems

UPDATE, 20:16: Jim talked about this issue on his latest audio magazine and posted a comment below. As Jean Luc Picard would say: "stand down red alert!"

One of the great things about Whole Wheat Radio, the internet radio station and collaborative wiki for independent artists and just damn nice music, is that you can listen to it anywhere where you have a stable internet connection! Unfortunately, recently it seems to have issues with Wireless@SG, Singapore’s free island-wide WiFi service. When I was at Starbucks yesterday evening at 23:30 having a well deserved Chai Latte (I figure it’s not good drinking coffee at that time of day!) I got the following error message:

Whole Wheat Radio IP address error

I was very used to seeing this message both at home and in public WiFi hotspots when I lived in Kuala Lumpur in Malaysia in 2006, but this was the first time I’d seen it here. I assume it was because in Malaysia the broadband provider TMnet shoehorns many customers onto the one IP address in places and uses some form of NAT system, and perhaps Wireless@SG in Singapore is doing a similar thing.

One thing I have noticed about Wireless@SG is the number of IP addresses you’re served at any given time. Sometimes I can be sitting at a Starbucks, Coffee Bean and Tea Leaf, San Francisco Coffee or Dome for several hours at a time (coffee shops are so much nicer to study and work in than a study hall, and they’re a nice change from sitting at home all day) and I’ve noticed my MacBook Pro will be served 20 or so new addresses in that time period. In that case, I certainly can’t blame WWR for blocking me, I’m sure from their end such activity looks pretty sus.

I guess just like my detailed documentation on Whole Wheat Radio audio players for Linux and FreeBSD, this information would probably not be useful to most people, but just letting potential Singaporean listeners know that it’s not their fault, or WWR’s fault, it’s the WiFi system. Perhaps WWR here is best listened to at home.

On low profile PCI cards and Microsoft tax

While I love Apple computers and use my MacBook Pro probably more than any other machine I own, I also love putting together machines myself for eight critical reasons:

  1. It’s cheaper
  2. I choose everything, no need for compromises
  3. I don’t ever have to pay the Microsoft tax
  4. Microsoft doesn’t get any money with bundled Windows
  5. I’m not supporting Microsoft
  6. I can install FreeBSD or NetBSD from the beginning
  7. Much easier to upgrade
  8. I don’t give any money to Microsoft

The latest machine I’ve put together is assembled in a slimline MicroATX tower case to make it easier to take to Adelaide when I go back to study, plus it takes up much less space on my already critically full desk.

The downside is because it’s so slim, the PCI and PCI express slots are only half the width. Doing a bit of research it seems for this machine at least I’ll be limited to using "half height" or "low profile" cards. They certainly do look strange!

It’s less of a concern for this machine because I’m using it primarily for raw number crunching and compiling large amounts of crap, so I’m just using the onboard graphics. Plus, the board has inbuilt FireWire 400 ports, gigabit ethernet and a generous number of USBs… I’ll probably need another gigabit ethernet port before anything else.

Anyone know where you can get a low profile PCI express gigabit ethernet card? ;-)

Haruhi Suzumiya dancing on FreeBSD?

Today was pretty amazing. Why? I ate a small mango after brushing my teeth and was not bothered by the nauseating spearmint infused citrus flavour.

Actually something big did happen for me today and it’s something that I’ve been wanting to do for ages. I installed FreeBSD on several PCs and without looking at any of the documentation for the first time. I’m dangerous!

The BSD Beastie   haruhisign.gif

In a manner similar to how DarkMirror in Singapore talks about learning Japanese, my knowledge of FreeBSD didn’t consciously happen, it evolved and eventually clicked. Like most people starting out in the FOSS world after living on Mac OS X and… heaven forbid… Windows, I was somewhat confused by the more intricate details of compiling kernels with optimisation flags and updating port trees with CVS; but after a week of informal study I pulled my old 200MHz Pentium MMX machine out and installed FreeBSD without looking at any documentation. Without realising it until after I finished, the process of installing and configuring has become second nature.

I really am impressed with the quality of the BSDs and the open source community’s efforts. Xorg + KDE 3.5 or Xfce 4.2 on a FreeBSD 6.1 box with the correct optimisations works flawlessly even on hardware that would struggle with Windows 98! Suddenly all the old machines that litter my expat family’s house have uses. Heck I’m even looking at my old Amiga in a funny way now…

I feel such an overwhelming sense of power now than I did before in a way that proprietary operating systems never really allow. Open source rocks! If I don’t like my X window manager, my desktop environment, my CLI text editor, my shell, my file browsers, my titlebar widgets or even my daemon services that manage SQL or the web, I can just change them or swap them for something else. A company doesn’t dictate what software has to be installed, I do. And if something doesn’t exist or I need to do something mundane, a quick keyboard lashing session later I’ve got Perl doing it for me.

The BSD Beastie   haruhisign.gif

Now I could have continued my exploration of Linux or just continued to hack away at Mac OS X, but I really do appreciate the strict conventions that the BSDs follow and the unwritten mantra that “if something works it’s good” should actually be “if it’s good it will work”. FreeBSD, NetBSD (and from what I can tell from my currently limited experience, OpenBSD) are elegant, fast, very well documented and extremely robust.

It’s got to the stage now where I’m even considering dual booting my MacBook Pro with FreeBSD and Mac OS X just to be able to use this stuff more and more in my day to day life.

For posterity (and because I think they’re cool) I’ve posted some screenshots of some of the boxes I have happily running now. You can see the Mac OS X influence in my thinking with both the KDE and Xfce panels set up to look like the Dock and the permanent menu bar ;).

Here’s Haruhi happily living in KDE 3.5/FreeBSD on my old HP box, (with the cursor unfortunately positioned on her face!!):

Haruhi on KDE + FreeBSD

And here she is again in Xfce/FreeBSD on my 200MHz (with MMX… wow!) 1997 Sim Lim Square box:

Haruhi on Xfce + FreeBSD

I’ve also configured an old 133MHz Pentium box I picked up for peanuts to run as a dedicated firewall and local intranet webserver to serve up the Schade family wiki, kinda like a digital refrigerator door! Of course I couldn’t put Haruhi on this because I don’t want or need X on this machine. Ah well, can’t win them all!

My next weekend project is to create a Perl script to download portsnap updates so they’re residing on a local hard drive, then configure portsnap on each machine to look up the local server instead of retrieving the same image from the interent four times! Unless anyone knows of a port that already does something similar to this?

The SOS Stack!

HSBC Doesn’t Like Camino!

So I was sitting at the Coffee Bean and Tea Leaf in KLCC enjoying an Americano and waiting for the credit card I punched in to work and give me WiFi access.

One small snag: neither HSBC Internet Banking or HSBC “Verified By VISA” work in Camino!

HSBC Camino Error

From what I can tell it isn’t actually a fault in the browser, it’s the bank selectively supporting only a few browsers and kicking out the others. For security reasons this may be a good thing: by supporting less browsers they can focus more on the security on those browsers. Still, according to Wikipedia they’re net worth is in the trillions of dollars, so you would think they could afford to do a bit more cross compatibility work!

There are two ways around this problem. The most obvious way is to just use a different browser; the only one that I have got to work on a Mac is the OS X version of Mozilla Firefox.

The alternative for the more adventurous is to spoof your User Agent by using something like CamiTools to Firefox. Whether they’re are any security implications with doing this I’m not sure; given both browsers use the same rendering engine and the only difference between the two is the way the browser is physically drawn in the OS, I would think it would be okay, but then again… damn it why can’t they just support it officially? Grrrr.

Creating a LinkedIn Profile

LinkedIn

I just found today a great site called LinkedIn which is described as a “business oriented social networking site”.

It’s still at a very rudementary stage but you can view mine profile at http://linkedin.com/in/schade/. Was very lucky to have my last name there… as long as a German doesn’t see it ;).

You can connect with contacts, colleagues and classmates as well as advertise your own expertise which is invaluable for consultants; more often than not I think finding the clients is almost as challenging as actually undertaking the work.

RichardDawkins.net