Marc's Public Blog - Misc Public Entries

All | Cars | Clubbing | Diving | Exercising | Flying | Hiking | Homeha | Public | Rc | Snow | Solar | Trips
Most recent entry: 2010-03-13 00:00:00 -- Generated on 2010-03-14 23:52:48 by Rig3 0.4-437




More pages: March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 June 2008 May 2008 April 2008 March 2008 January 2008 November 2007 October 2007 May 2007 March 2007 December 2006 November 2006 October 2006 September 2006 August 2006 June 2006 May 2006 February 2006 January 2006 December 2005 November 2005 October 2005 August 2005 October 2004 August 2004 June 2004 May 2004 March 2004 September 1997 July 1996 September 1993 July 1991 December 1988 December 1985 January 1980



2010/03/13 DD-WRT on my WRT600N
π 2010-03-13 00:00 in Public
My wireless router was acting a bit flaky so I rebooted it and it came back without mounting its USB key. So, I try again and this time it doesn't reboot.
Argh: my main wireless router and internet gateway gone...

Ok, in my case it's not that bad since I have 3 wireless gateways, all of which can do the job (they work in parallel), and 2 internet gateway.

But still, I had to fix it. I figured the flash got corrupted, so I figured I'd flash a more recent build (I was running some ancient 10923 from almost 2 years ago).
Unfortunately, flashing it wouldn't bring the router back, but I was able to see the CFE boot loader for a few seconds at a time and could tftp a new build (after doing the 30-30-30 nvram reset).
A few hours later, I realize that my router isn't coming up at 192.168.1.1, which it's supposed to do after a wipe/flash, but eventually I notice it still comes up as my old wireless network, which is supposed to be impossible afer 4 nvram flashes.

Some time later, I finally realize that it's actually my power supply that is goign bad, which explains why the unit was still booting, even flashing, but failing to do a full boot most times. Strangely enough the flaky power also prevented an nvram wipe/flash.

A new power supply later, I finally get the unit to flash and boot. I install the recommended 13064 from the wrt firmware recommendation page. This is where wrt goes wrong, I know dd-wrt somewhat but their docs and organization just sucks:

  • the build that was recommended on their main page is actually not that good a build according to some forum FAQ which I found much much later.
  • there are regular brainslayer builds, and then special eko builds or eko's builds of BS's builds, kernel 2.6 builds, VINT builds, NEWD builds, and NEWD2 builds.
  • Oh, did I mention that if you really pick the wrong one, you can brick your router? Nicely the WRT600N can't be reflashed by serial port via a special JTAG cable you'd hand connect on the motherboard, but it seems that it's better at giving a tftp boot to reflash even if the current firmware won't work (some other routers will just require serial flashing then).
  • after that you have the micro builds, the mini builds, the nokaid builds, the voip builds, the usb builds, the BS mega builds, the eko big builds and the eko mega builds. What does each build exactly do? This the full list is really documented nowhere. The wikipedia dd-wrt page actually has some info since the main dd-wrt page doesn't in obvious places, but even then all mega builds aren't the same: it's per router and per version
  • my old mega build was 5.3MB, the new one is 7.6MB or just enough to fit in my 8MB flash
  • Now, the build comes with jffs2 but jffs2 requires around 364KB for its data structures (that's huge BTW), so this is the second time I get a dd-wrt build with jffs2 where I end up with exactly 0KB free on my jffs2 filesystem, making it 100% useless. Really, a jffs2 build that doesn't leave ANY room for any jffs data? On a 8MB router no less?
  • from there I can use the standard build without really knowing what I'm going to lose in the 3.3MB of missing code, or try a special eko build. But which one? Now you start looking in the forums to see which build of the day may actually be not too bad (this can be several hours worth of reading).
  • Now, you still don't know which build really has what, but you just flash the biggest one that will fit and hope for the best.
  • In my case, I thought I needed everything and ended up putting the mega build since I realized that I didn't realy need jffs2 afterall since I had USB and a USB key that I could just mount at /jffs.

    But I wasn't out of the woods, the release I got had issues with wireless code as pointed out later to me on the forum where I was told that I misread one of 4 FAQs that apparently fix some of the incorrect information on the main site.

    Long story short, it was over 10 hours of work.

    DD-WRT rocks for features, but its main documentation sucks and getting the "right build" can really be pain in the butt if not an exercise in futility when you need several things to work all at once (in the upgrade 802.11N over 2.4GHz started sucking for me, I only get 2.6MB/s when I used to get 6MB/s).
    Thankfully the board members are helpful but the poor guys are probably overwhelmed by both people who don't know or understand anything and then the people who do but have problems with getting the wrong build off the web site, or being just plain confused as to which build will actually work for them.

    Now, back to features, the list is nothing short of amazing. As much as it can often suck to find the optimal build and make it work, as much as the featureset dd-wrt gives you is absolutely impressive:

  • full wireless routing of course
  • 802.11N with channel width for 2.4 and 5GHz (when it works at least)
  • support for most wireless routers out there
  • full USB support on my WRT-600N including installing mips debian software from a huge repository on my USB flash key, or USB printing, USB storage of all kinds of course, and even USB serial support (I run minicom in a screen session to monitor my other server)
  • thanks to the above, I replaced the built in DHCP and DNS with full ISC DHCP and DNS so that I can slave my zones and static mappings from my other linux server
  • DDNS, all kinds of revenue generating hotspot setups
  • BGP (!)
  • ssh, sshd, syslogd, telnet, http, https, ftpd, 802.11x
  • jffs2 if you have enough flash, MMC hack soldered on GPIO pins on the board
  • nfs, cifs, plus any kernel module you can find compiled on the net
  • full IPv6, tunnels, ethernet over IP tunnelling.
  • channel bonding, WAN port assignment per port
  • full firewalling, UPnP port forwarding, rate limiting, port knocking, and more
  • nstx (IP over DNS), wake on lan for your other machines
  • etc...
  • Nothing beats dd-wrt there, but you have to earn your dues by finding the right build and getting it installed :)

    2010/02/15 Found some De Ruijter Muisjes in a Local Store
    π 2010-02-15 00:00 in Public
    Found this in a local chinese store. Cool :)

    2010/02/13 Rig3 Update One Page Per Post
    π 2010-02-13 00:00 in Public
    As a few already know, I use Rig3 for my blog, written by a friend and coworker of mine, Ralf. Rig3 is meant to be lightweight, work offline on your laptop and be secure by not requiring any crap like PHP. More can be found on the Rig3 site.

    Anyway ralf got tired of my begging :) and nicely implemented the one page per post feature for permalinks.

    Having each post on its on page allows for a certain amount of nice things:

  • give a link to just the one post. For big posts like our honeymoon in hawaii, they are big enough that it's a good idea to load just that post and not a monthly page with other potentially big posts.
  • allow loading and showing a private post in itself without sharing the rest of the posts on the same page or the entire blog.
  • allow adding comments for each post (comments on facebook for instance are lost to everyone else not using facebook). This feature isn't there yet, but I hope to add it soon.
  • allow for sharing the URL to the single post to another site, like facebook or twitter (and facebook is stupid, it'll grab any picture it finds on the post, which didn't work when I had a page with more than one post: it could take a picture from a totally unrelated post).
  • allow quicker loading of individual posts by RSS readers (the simple way to read a bunch of people's blogs)
  • I just fixed a little bug where my atom RSS feed didn't have the right links, and now everything should be good after I publish this post.

    Thanks Ralf!

    2010/02/10 Some Spammers are not very bright
    π 2010-02-10 00:00 in Public
    From: Oscar Rosero <oscaroseroruiz@gmail.com>
    Subject: Re: Information Request
    

    > On Tue, Feb 09, 2010 at 09:15:41AM -0500, Oscar Rosero wrote: > > Hello. > > > > I'm trying to optimize my email marketing campaing and to do that I'm > > testing my email by using Spamassassin. > > > > However the following risk appears and I don't know what is it about, > > neither how to correct it or remove it. Here is the Risk or Rule > > description: > > > > SARE_HTML_URI_2SLASH URI: URI has additional double slash within it > > > > > > > > I'm not an expert on this issues. Please help me solve it. > > You are kidding, right?

    Hello Marc.

    Thank you for contact me back.

    The true is I'm not kidding. I just tried to solve the issue by myself but I did not found any information about the "SARE_HTML_URI_2SLASH URI: URI has additional double slash within it". Then, by checking the Spamassassin, I found your e-mail and I decided to contact you.

    Please apologize me if I bothered you in some way, it was not my intention. Maybe I did not use the propper words in my past message.

    If, in some way, you can guide me o tell me where can I find some information to solve the issue I would be very grateful.

    Best wishes,

    Oscar

    I need to fill in by saying that I used to be a spamassassin contributor, and am the SA-Exim author, so maybe he found me that way (he didn't say).

    So, I decided to have a little fun with him:

    > > If, in some way, you can guide me o tell me where can I find some
    > > information to solve the issue I would be very grateful.
    >
    > No, I was surprised because I thought you knew that by using spamassassin
    > to
    > test your marketing message, you triggered a booby trap inside that
    > cataloged your name, your IPs, and what you were trying to market so that
    > any mass message from you sent to other people from now on will get you
    > blacklisted throughout the internet, kicked out of your ISP, and any
    > domain/company you have listed in there will get attacked by botnets if it
    > ever gets sent from now on.
    >
    > Well, I guess you should have done your research first, now all I can
    > recommend is that you never send what you were trying to send in the first
    > place (even modifying it won't help since not only your message, but also
    > your name, IP, ISP, and Email, and domains were harvested and put on the
    > watchlist).
    >
    > Marc
    

    Thank you Merlin for the valuable information and suggestions, I'll certainly take it into account.

    I hope to find the way to remove the detected risk on my following messages, despite of the facto I have not even a remote idea about what URI_2SLASH is.

    Best wishes,

    Oscar

    2010/02/09 Sarah Palin is Still an Idiot and Why Comedy Central Rules
    π 2010-02-09 00:00 in Public
    Seen on comedy cental, good job to the person who noticed that.

    Sarah Palin is still learning what she's supposed to talk about. She just reached middle school level and learned to write on her hand. Good job!

    I also love how she didn't even get it right the first time and had to cross out a word.

    (So, just to clear possible confusion: the pictures I real. I took them from the TV broadcast. She really did write this on her hand and looked at it in the interview later to answer question).



    But it gets better. During an after speech interview, she was asked a question and actually checked her hand for the answer:

    At least right now, she is worth the free entertainment value, but I really hope that we don't ever have enough idiots in this country to vote her in anything worthwhile.

    2010/01/26 Tivo The End Of An Era
    π 2010-01-26 00:00 in Public
    I recently sold my original Sony Tivo 1 which came with a 30GB drive back then (although I did upgrade it to a whooping 120GB, but more importantly added a network card, tivonet and tivoweb. I think I paid $200 for it back in 2001 (special VA Linux employee price) and another $200 for lifetime subscription.

    It was still working fine but was pretty useless for me since it only worked with analog cable. I did find a taker at work and "sold" it to him for 3 google tshirts :)

    Eh, I've been a happy mythtv user for about 3 years now and while I wish I could just get all my programs on the net, if possible interruption free, we might not be quite there yet for everything I record (especially for HD programming), but we're definitely getting very close. From time to time I remind myself that I need to get a newer version of Boxee or XBMC (I found out at LCA that XBMC will soon have a fully featured mythfrontend replacement and that I'll just be able to use XBMC to talk to mythtv and its 6 tuners while streaming off the net for other programs).

    2010/01/20 Linux.conf.au 2010 in Wellington, New Zealand
    π 2010-01-20 00:00 in Public
    Another year, another LCA, although this time in New Zealand for the second time.

    This was my second time without giving a talk, but I was still able to attend this great conference.

    we had mad scientists
    we had mad scientists

    asthma cigarettes, not for children under 6
    asthma cigarettes, not for children under 6

    Jeremy's always fun and eye opening talk
    Jeremy's always fun and eye opening talk

    Tridge also gave a very good talk on how to deal with software patents
    Tridge also gave a very good talk on how to deal with software patents


    More pages: March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 June 2008 May 2008 April 2008 March 2008 January 2008 November 2007 October 2007 May 2007 March 2007 December 2006 November 2006 October 2006 September 2006 August 2006 June 2006 May 2006 February 2006 January 2006 December 2005 November 2005 October 2005 August 2005 October 2004 August 2004 June 2004 May 2004 March 2004 September 1997 July 1996 September 1993 July 1991 December 1988 December 1985 January 1980