Migrating to a 64-bit operating system (OS)

Posted on September 30th, 2009 by David Luhman and tagged .

When upgrading servers, you may encounter this question : Should we stay at at 32-bit OS, or 'upgrade' to a 64-bit OS?

To me, the big advantage of a 64-bit OS is the ability to address (use) more than 4 gigabytes of RAM. I sometimes bump into that limit on my desktop,
so I think it's best to have a 64 bit OS for servers.

Larger memory space isn't the only advantage, however. From Wikipedia :

Spell checking source code

Posted on September 29th, 2009 by David Luhman and tagged .

I'm not sure of the cost/benefit of spell checking of source code, but there seem to be a couple cheap/free utilities that can help with this.

Free Python package :
http://pypi.python.org/pypi/scspell/0.1.0

Commercial shareware - $59.99 (Windows)
http://www.brothersoft.com/source-code-spell-checker-48748.html

Another commercial shareware version - $39.99 (Windows)
http://download.cnet.com/Source-Code-Spell-Checker/3000-2352_4-10341753....

Here's one man's experience checking Java source code with a "generic plain English" spell checker :

Git patch tutorial

Posted on September 22nd, 2009 by David Luhman and tagged .

I had some patches in one Git repository that I wanted to apply to a different repository. Here's a useful link I found on this :

http://stackoverflow.com/questions/327249/seeking-examples-of-workflow-u...

Here's what I did.

First, copy the original repository you want to get patch from. This may not be necessary in all cases, but in my case the original repository was on another machine, so this just puts everything on the same machine.

  
    $ git clone ssh://me@example.com/repos/origRepo
    $ cd origRepo

OVF - Open Virtualization Format

Posted on September 1st, 2009 by David Luhman and tagged .

If you're into computer virtualization, you should probably be familiar with OVF.

The "Open Virtualization Format" is a supposed standard for interchanging VMs between vendors (VMware, Microsoft, VirtualBox etc.) Here's a good overview of the format :

http://www.dmtf.org/about/cloud-incubator/OVF_-_Building_Block_for_Cloud...

Most of my experience with virtualization has been with VMware, Xen, Virtual PC and recently with VirtualBox on the desktop.

I wanted to see how OVF might work, so I found this minimal OVF version of Solaris :

Git difftool and vimdiff

Posted on August 25th, 2009 by David Luhman and tagged .

For the most part, I use TkDiff as the Git difftool when working under X Windows. TortoiseGit also has a nice GUI diff tool for when I do occassional work on Windows.

However, when working in a Linux "terminal" environment, your Git difftool choices seem to be limited to vimdiff. This is OK, but most of the color schemes under vimdiff are terrible.

I recommend using a vimdiff friendly color scheme like "greens" which is described here :
http://www.vim.org/scripts/script.php?script_id=1253

Here's how to set yourself up to use vimdiff as Git's difftool.


Phase 4 of D-Link DNS-323 hacking - Running Optware

Posted on August 6th, 2009 by David Luhman and tagged , .

I'm using the DNS-323 primarily for automated backups, and making Git backups is part of this. The fonz fun plug (ffp) has a lot of stuff on it (rsync, lighttpd), but I didn't see Git. So I was looking to add Git via Optware.

I was able to add Optware, but the Git version couldn't clone across ssh nor rsync. Cloning across the git protocol did, however work. But I'll likely just use the rsync client to get my Git repositories. Git seems to work fine if the repo came via a plain rsync client.

root:/mnt/HD_a2/tmp# git clone ssh://root@192.168.1.108/tmp/gitTest

Phase 3 of D-Link DNS-323 hacking - Placing ffp on USB stick

Posted on August 6th, 2009 by David Luhman and tagged .

I wanted to run ffp (fonz fun plug) running from a USB stick to minimize drive spin up. Unfortunately, I couldn't get it to work. It seems like there are many ways to do this, and they vary with the version of ffp (even two methods for the same version of ffp 0.5

It's pretty easy to mount and format the USB, so I can use that if needed. Anyway, I won't be spinning the disks too much, and I need to move on. But here are some rough notes on this.


http://wiki.dns323.info/howto:external_drive
http://bfg100k.blogspot.com/2008/11/upgrading-ffp-05-and-moving-it-to-us...

Finding duplicate code with CCFinder

Posted on August 5th, 2009 by David Luhman and tagged , .

If you're attempting to refactor a large code base, give CCFinder a try.

I checked out the following tools suggested by the Wikipedia entry on duplicate code :
- Simian
- CCFinder
- PMD Target

Phase 2 of D-Link DNS-323 hacking - Root user and sshd setup

Posted on August 2nd, 2009 by David Luhman and tagged .

Here's a follow-on to my first post on hacking the D-Link DNS-323 hacking.

This is what you should do after you've downloaded and installed Fonz' fun_plug (ffp) and made the initial telnet into the system.

Here's a useful guide for this :
http://wiki.dns323.info/howto:ffp?s=password


# pwconv
# passwd
# usermod -s /ffp/bin/sh root

# login (test root/newpw)

# store-passwd.sh
Copying files to mtd1...
Copying files to mtd2...
Done.

# cd /ffp/start
# sh sshd.sh start (test ssh login)


# cd /ffp/start

Phase 1 of D-Link DNS-323 hacking - Running fun_plug on DNS-323

Posted on July 28th, 2009 by David Luhman and tagged .

Here is probably one of the best short explanations of how this works :
http://wiki.dns323.info/howto:fun_plug

On Windows client, mount the DNS-323 as a drive (L: in this case).

Grab the latest version of the fun_plug script provided by fonz :


L:\>wget http://www.inreto.de/dns323/fun-plug/0.5/fun_plug

L:\>wget http://www.inreto.de/dns323/fun-plug/0.5/fun_plug.tgz