The Crane Has Landed


DD-WRT, Telecom Thomson router and New Zealand broadband
April 14, 2012, 2:43 pm
Filed under: Uncategorized | Tags: , , ,

Finally!  I can’t tell you how long I have tried to get DD-WRT working as a proper internet gateway in New Zealand!  The challenge is that broadband here is PPPoA (not PPPoE), so you are left trying to work through the mess that is half bridging and other such dramas.

Anyway, I leave some notes here for anyone else who is trying, and if I need to refer back.

  1. I have the Thomson TG585 router (v 8) with the DHCP server on.
  2. I have the Linksys WRT54G with DD-WRT (micro) running and a cable from the WAN port to a LAN port on the Thomson
  3. On the Thomson, under Home Network > Devices, I have selected the Linksys and chosen the link down the bottom that says “Assign external IP address to device”.  This only worked when I had the WAN setting on the Linksys (in DD-WRT) set to be DHCP, and had to restart a couple of times. It won’t work if the Thomson thinks the connected device has a static IP.
  4. By now, the external IP address was appearing in the Linksys under WAN IP, but I still couldn’t get internet access. Turns out that there was no default gateway set.  Through some serious Googling, I found this site that gave the following commands to be added to the Firewall script section under Administration > Commands:

ip route replace $(nvram get wan_gateway)/32 dev $(nvram get wan_ifname)
ip route replace default via $(nvram get wan_gateway) dev $(nvram get wan_ifname)

SSH’ing into the Linksys after running those commands, and then running route, shows the external gateway appearing at the top of the list.

And then everything seems to be working!  Hurray!



More fun with CIFS and mounting
August 2, 2009, 9:07 pm
Filed under: Uncategorized

I’m still having issues with mounting shares over CIFS…well, with unmounting them anyway.

I have a couple of leads though – including this site and the custom script. The script is doing well so far…



Shuttle PC Wake-On-LAN
August 2, 2009, 8:50 pm
Filed under: Uncategorized

I found instructions on how to activate the Wake on LAN on my Shuttle SK41G.

Specially:

Enable WOL in the BIOS. The options for this are in “Power Management Setup”–>”IRQ/Event Activity Detect”. There are two options: “PowerOn by PCI Card” and “Modem Ring Resume”. I’m not sure why, but either option enables WOL when the computer has just been plugged into power, but “PowerOn by PCI Card” is the only one I could get to enable WOL when linux shuts down the computer. (WOL is strange that way…)



Dramas with Jaunty and MythTV
August 1, 2009, 4:13 pm
Filed under: Uncategorized

Turns out there is some bug – don’t know yet whether it is confirmed as being a Radeon problem or not – that stops fonts from working properly in Jaunty when trying to use MythTV…in any way. You may get all the boxes with no text. Or, you might get just a black rectangle when you try to load the app.

The first step is to ensure you’ve installed msttcorefonts. Then (from this link), workaround by using XLIB_SKIP_ARGB_VISUALS="1" mythfrontend (or any other myth command).

Can’t wait until they fix this!



XBMC redirect in Ubuntu
July 12, 2009, 5:34 pm
Filed under: Uncategorized

After installing the fantastic iPhone skin for XBMC on my Ubuntu machine, annoyingly, http://xbox:8080/iphone doesn’t work because XBMC’s web server expects default.asp to be the first page to go to, and when that’s not there (‘coz the skin uses index.html), it errors out.  And Response.Redirect isn’t known by the server.

Not to worry – the following default.asp page will redirect to the index.html page in less than a second:

iPhone control loading...

Loading...



GPG key error
July 10, 2009, 8:58 pm
Filed under: Uncategorized

When the apt-get gives an error about a missing gpg key, there will be a hex code, and you can use the following (sometimes) to add it:


gpg --keyserver subkeys.pgp.net --recv [KEY]
gpg --export --armor [KEY] | sudo apt-key add -



Tunnelling X output over SSH
November 14, 2007, 8:58 pm
Filed under: Tools, Ubuntu, Uncategorized

This is a good one.  Since VNC is pretty slow over the internets, it may be better to have the NX nomachine server setup on your Ubuntu box, and then tunnel that X output directly over SSH.  To do that, make sure you have the checkbox set in the NX client to push all data over SSL, and then tunnel port 22 on the server in question to 127.0.0.1.  Then connect to 127.0.0.1 and you should be in with a grin.



Resetting the default VNC server password from the command line
November 14, 2007, 8:55 pm
Filed under: Tools, Ubuntu, Uncategorized

So, it turns out that Ubuntu 7.10 (Gutsy) comes with VNC installed by default. If, however, you happen to be tunnelling in through SSH and you want to reset the password, there’s no command line command to do that directly. So, you need to do the following:

  1. Generate a new password in Base64.
  2. Edit the /home/<userhomedir>/.gconf/desktop/gnome/remote_access/%gconf.xml file
  3. Paste your new comment at the line that reads <entry name="vnc_password"...
  4. Done.

Sorted.




Follow

Get every new post delivered to your Inbox.