Category: Tech stuff

  • Spyware Infection?

    I’m seeing a lot of computers recently with alerts about W32/Blaster worms, CTHelper.exe infections etc. being reported by the Spyware Defender application. Spyware Defender apparently cannot clear the infection without the registration key.

    (more…)

  • IPv4 – No more addresses !

    From: NCC-ANNOUNCE

    Sent: Tue Feb 01 04:27:16 2011

    Subject: [ncc-announce] IANA Allocates Two /8s of IPv4 Space to APNIC

    Dear colleagues,

    On 1 February 2011, the IANA allocated two /8s of IPv4 address space to APNIC, the Regional Internet Registry (RIR) for the Asia Pacific region.

    This means that only five /8s of IPv4 address space are left in the IANA free pool and the “Global Policy for the Allocation of the Remaining

    IPv4 Address Space” will be triggered.

    This policy can be found online at:

    http://www.icann.org/en/general/allocation-remaining-ipv4-space.htm

    When this policy comes into effect, the five RIRs will each receive one of the five remaining /8s and the global IPv4 pool will be exhausted.

    We expect IANA to allocate these final /8s within the next few days.

    For further information please see:

    http://www.ripe.net/v4exhaustion/

    Regards,

    RIPE NCC

  • Opportunity Locks

    It seems Samba on the MyBook (fw 01.02.04) has trouble with big files. I haven’t hit this problem first-hand but have had the MyBook deciding to just not save files and throw-up “overload” warnings on the webgui even though nothing is going on on the box. The CIFS log reads:

    “read_data: read failure for 4 bytes to client 10.44.1.20. Error = Connection reset by peer”

    Apparently one possible cause is opportunistic locking. so I’ve turned it off by applying the registry key suggested here. One other option is to get the NAS to power cycle every day to clear any issues bubbling under with the SAMBA daemon.

    Hopefully there will be a fix for this one soon.

    Turning off oplocks on the client just caused the error more often though. Maybe I need to turn it off on the server instead or as well as…

    For details on how to turn oplocks on or off on Windows 7, click here.

    For details on how to do the same at the SAMBA/MyBook end, click here.

    For an example of what Oplocks are and how they can barf, click here.

  • WD MyBook as a backup device for another MyBook

    I bought a new MyBook World Edition from PC World and another older model from ebay. The ebay one is purely as a backup for the primary.

    With the old Thecus N299 (don’t buy one), the backup method was to run XCOPY from the NAS to a USB drive. It worked but was clunky and required me to actually get the disk out of the box and run the backup.

    As I’ve forked out £100 on the single-disk MyBook, I wanted a better backup solution. £40 later I have the second MyBook. How to make it a backup?

    There are lots of details on the MyBook Hacks wiki on ways to break into the OS on the MyBook. It is basically a Linux appliance with a very cut-down feature set. The newer unit has an SSH enable tick box which exposes the CLI. The older box needs a hack to get the same but is safe enough and worth the trouble.

    Once you have CLI, tweaking the config to always boot SSH and never start the mionet tool is a must. Then, I dropped on OPTWARE and installed FTPCOPY.

    A short script later along the lines of this to copy anything new in the last 30 days:

    ftpcopy -u myname -p mypasswd -m 30 192.168.1.11 simkin /shares/internal/SIMKIN

    OR if you want to mirror (like Microosft SyncToy) do this:

    lftp -c ‘open -e “mirror /myshare/ /shares/internal/MYSHARE” -d -u myname,mypasswd 192.168.1.11’

    MyBook Backup

    and I have the last 30 days of changes from my main NAS to this local one. This assumes you have created the user and local shares already.

    I have more comprehensive details below on how I did all this but to be honest, the wiki tells the story much better than me.

    I heartily recommend these little disk devices. Only one drive in the entry-level units but quick enough, quiet and customisable. Get two if you can and hack the life out of one to backup the primary. Better deal than running a RAID1 NAS 24×7 in my view considering disk life is pretty good and the NAS barfing or dropping its config is more likely than a spindle failing. With physical separation of the boxes (one of mine is in the shed), you get as good protection as RAID1 without the noise, costs and hassles.

    ——-

    The Spoon-feed:

    I assume you have a blue-ring and white stripe WD MyBook sitting on your network as follows:

    MyBook #1 (Primary):

    • This is the newer “white stripe” model – WDH1NC10000, WDH1NC20000.
    • 192.168.1.101
    • There is a user called “myuser” with password “mypasswd”
    • There is a share called “myshare”
    • ftp server is enabled

    MyBook #2 (Secondary):

    • This is the older “blue circle” model – WD5000G032, WD7500G032, WD10000G032.
    • 192.168.1.102
    • There is a user called “myuser” with password “mypasswd”
    • There is a share called “myshare”
    • No hacks have been undertaken so far.

    All the following activity happens on the older “blue circle” model, MyBook #2:

    1. Enable SSH

    http://martin.hinner.info/mybook/sshaccess.php

    2. Follow instructions to make sshd boot every time. It involves using vi to edit /etc/inittab. Here is the 30 second guidebook:

    By default, vi starts in command mode which means if you start typing you will just wreck the file.

    Instead, use the h(left)j(down)k(up)l(right) keys to move around the file

    i will put you into insert mode. Type what you want and press <ESC> to get back to command mode.

    a will put you in append mode. Type what you want and press <ESC> to get back to command mode.

    x will delete the character to the left of the cursor

    dd will delete the whole line

    When in command mode, <ESC>:wq!  will write the file (save it) and quit. :q!  will exit without saving.

    Adding the line to inittab works something like this:

    vi /etc/inittab

    kkkkki::sysinit:/usr/sbin/sshd<RETURN><ESC>:wq!

    3. Change the root user password from blank to something you can remember:

    passwd welc0me

    4. Install Optware:

    wget http://mybookworld.wikidot.com/local–files/optware/setup-optware.sh

    sh setup-optware.sh

    echo “/opt/lib” >>/etc/ld.so.conf

    ldconfig

    vi /root/.bashrc   and add this line:

    export LD_LIBRARY_PATH=/opt/lib

    echo “export PATH=$PATH:/opt/bin” >> /root/.bashrc

    echo “export PATH=$PATH:/opt/bin” >> /etc/profile

    /opt/bin/ipkg update

    5a. Install ftpcopy rather than lftp

    /opt/bin/ipkg install ftpcopy

    5b. OR Install lftp instead of ftpcopy

    /opt/bin/ipkg install libiconv

    /opt/bin/ipkg install lftp

    6. Create a backup script

    cd /root

    Use vi to create a file called backup.sh containing this line:

    ftpcopy -u myuser -p mypasswd -m 30 192.168.1.11 myshare /shares/internal/MYSHARE

    or

    lftp -c ‘open -e “mirror /myshare/ /shares/internal/MYSHARE” -d -u myuser,mypasswd 192.168.1.11’

    7. Make it run at 4am every sunday morning

    vi /etc/crontabs/root   and add these lines:

    # run the backup script at 4am on sunday

    * 4 * * Sun /root/backup.sh

    8. Restart the cron daemon

    crond reload

    9. Go make a cuppa and have a good sit down because you’ve just setup your backup.

    10. Work out how to amend the above to provide some logging that you can view using the built-in web-browser on the MyBook without filling up the disk and comment on here before I post how to do it.

    Extra info on ftpcopy: http://www.ohse.de/uwe/ftpcopy/ftpcopy.html

    Extra info on cron:  http://www.unixgeeks.org/security/newbie/unix/cron-1.html

  • IE6 on Windows 7

    If you have some corporate applications that need an old version of IE but you want to ruin Windows 7, you need IETester. It is a tool that can render using the older engine which means you don’t need to run an XP VM or keep an older PC on your network just to run difficult web apps. It also means you can run Windows 7 if the lack of IE6 support was the only thing holding you back… [Thanks to Stu for finding this one].

  • Too much tech

    My living room setup consists of a Samsung 37″ TV, Sky+, wii, Logitech z5500 speakers and a Mac Mini running Windows 7 Media Center.

    At the weekend the Mac stopped playing DVDs and it caused some domestic upset on the premise that it is all too complicated. I had set everything up to be as straight-forward as possible though.

    I have to admit that too much stuff pops-up trying to update far too often. I also hate the stack of remote controls. The lack of a simple eject button on the Mac is also a bit conversation point in our house. The old DVD player would regularly lock up and overheat. Switching back to dedicated appliances is no guarantee of success.

    But how to make it simpler? Would one remote be intuitive enough? Do I write out the instructions on how to do common tasks? Do one of you readers have any suggestions or ideas? I look at this kit from the perspective of somebody who is reasonably technical but there must be an easier way up do all this without losing the functionality (iplayer in the living room for example)….

    Oh and the reason the Mac didn’t play the DVd was quite simple muck in the drive resolved with a head cleaning disc.

  • Windows Search UNC Paths

    Windows 7 comes with search built-in. If you want to avoid having to install Google Desktop, you can just use what you have already. Unless you use a NAS and store your files at the end of a mapped drive letter or UNC path because then it won’t work. Unless of course you have downloaded this….

  • WD Book World Edition to the rescue!

    The Thecus N299 killed the LAN. After storming the network nothing was working. Had enough. Bought a WD Book . Only one disk rather than the RAID pair in the Thecus but the disks never did fail. Only the network, SAMBA service, user rights and network…..

  • Linksys WRT54GS v4 Hangs

    My wireless access point hangs on occasion. I’m pretty sick of this happening now. So I’ve dropped dd-wrt onto it. This is firmware NOT written by Linksys (or Cisco) and hopefully will fix the problem. Scary but no more difficult than dropping a new Linksys firmware on the unit to be honest.

    Put your own wireless router model number in here and see what it can do for you.

  • Finding a free wireless channel

    Most of my neighbours are blasting out wireless networks that I can pick up in my home. But how can I ensure I get the best performance from my own network?  Simply put I need to choose a different channel. But how can I find out what channels are in use?

    netsh wlan show networks mode=bssid

    Find a free one (in my case anything but channel 11) and set the access point to it. Simple!