TuneIn to TMS on My Private Network

I’ve been fretting about listening to the Test Match Special cricket commentary on my iPod here in NZ. The old plan was to VPN in to My Private Network UK (£5/month and bloody good) on the media server then use Squeezecast App. Now that I have FreeNAS VPN is out so a new idea was needed. I found that iPod Internet radio has come on a long way. The App TuneIn Radio is £1.19 and aligned with the iPods VPN client works perfectly as a UK based radio with the right setup.

Initially it didn’t work with VPN because TuneIn radio couldn’t figure out the WiFi was still there with VPN on. It gave a helpful message to turn on Cellular Data. My ipod’s not a phone, but it worked immediately.

FreeNAS as print server

I didn’t go to bed…

I worked through the instructions and realised that they were for an “embedded” FreeNAS, where I am running a FULL install.  I worked out that all I needed to do was make the permanent changes that are outlined in the script.  I also didn’t want to use a RAM disk so changed the printcap file to that suggested in the Instructable I found, and created the appropriate directory.

    #   @(#)printcap   Canon i550
    lp|deskjet:\
    :sd=/var/spool/lpd/bare:\
    :sh:\
    :lp=/dev/ulpt0:

My devd.conf turned out like this (I don’t have a speaker on the fit-PC slim:

    # devd.conf
    # start action when USB printer ulpt0 is plugged in
    # wait 3 seconds and then start the spooler daemon
    #
    attach 100 {
       device-name “ulpt0”;
       action “sleep 3; lpd;
       checkpc -f;
       chown 0:0 /dev/ulpt0;
       chmod 666 /dev/ulpt0;”;
    };

I did all the file linking as per the script, rebooted and…

Nothing happened when I tried to print.

So I went through the script.

First I found that I had not given the spooling script the right permissions (700) or ownership (1:1).
Next I ran checkpc and was reminded of this error:
“Shared object “libintl.so.8″ not found”

I got over this somehow last time using these threads and working out that the code was:

    ln -s /usr/local/lib/libintl.so.9 /usr/local/lib/libintl.so.8

It still didn’t work.  I looked at the /usr/bin and my symlinks had disappeared, so I copied over the files instead.  It still didn’t work.  I tried a manual print to lpr and got:


    lpr /mnt/data/printtest.prn 
    Status Information, attempt 1 of 3:
    sending job ‘root@minime+2078’ to lp@localhost
    connecting to ‘localhost’, attempt 1
    cannot open connection to localhost – No such file or directory
    Make sure the remote host supports the LPD protocol
    Waiting 10 seconds before retry

So I rebooted and tried again. Again.


Out popped the print job!  Ubuntu suddenly showed the printer as alive and I was away.


I go to bed happy.  Hope this helps someone.  Please comment if it does.

media server revisited… (Why do I do this?)

The media server (aka minime) was running on the 70GB HDD that was in my older laptop when I dropped it hard (nearly breaking my face, back and camera at the same time, don’t ask).  I had the old minime disk that XP used to be on, and that is 160GB.  So, I have to swap them around.

Still no working CD-ROM so I did some research and found that in the FreeNAS /conf file is an XML configuration file (the same one that is delivered to you when you back up the config – doh!).  I hypothesised that if I did my previous trick of doing the initial install on the old laptop then replacing the config.xml before the reboot, then I would be away…  I have an external caddie for the IDE drive (bought when I dropped the old machine) so set that up on FreeNAS and copied the config.xml file over.  My cunning plan worked perfectly.

I could have copied over the whole configuration at the same time, but I was unhappy with how I had played with permissions on the first attempts at sorting out the printer and I was also unhappy with the location of the slimnas app.  I’d decided to make a /app folder for both the printing and the slimas apps.

I thought that having the slimnas setup all working (and the music and playlists on another external drive) would make it a breeze.  I installed slimnas, copied over the database files (/mnt/data/app/slimnas/squeezebox/SQL/msql) and the preferences/plugins (/mnt/data/app/slimnas/etc/squeezebox) and started squeezeserver.  No dice. “ps ax” did not show it running.  I got it running by editing the 5 places in the server.prefs file.  Sadly the database was not there, so I will have to do a full scan, then restore the trackstat stuff, but that’s life.  I may have to do that anyway when I move the music one more time, back to the /mnt/data folder. If I bother.

Next was setting up the print server once more.  I had tried the FreeNAS as a print server original instructions but been clueless in the past and worked my way through by reading various sites.  With my greater knowledge the instructions now make sense, so I am hoping I can muddle through.  I feel pressure to get it working by tomorrow, but need to sleep.  Shattering time in rough seas fishing for blue cod today.

The death of the fit-PC and its rise

In attempting to fix the annoying “iTunes won’t start cleanly” problem I performed a standard upgrade of Windows XP, basically running the install on top of the old installation.  It went swimmingly until it asked me to confirm the loading of the video driver that was unsigned.  At this point I could not click OK in any way as the mouse and keyboard were disabled.

In trying to fix this (including power downs to reinitialise the setup, and putting the disk in a different machine) I managed to trash the XP installation.  I have access to the files but the little XP server is dead.  Another iTunes Authentication down the tube.

After much swearing and gnashing of teeth I decided that this was the time to start playing with FreeNAS.  I started the installation on my laptop and on the reboot put it back in to the fit-PC.  This worked perfectly.  With a little fiddling I got slimnas (squeezeserver) working beautifully (much faster than under Windows).  A lot of fiddling (and learning) later I had a print server working.

For PPTP (allowing the squeezeserver to appear to be in the UK to the BBC for cricket commentary) I appear to be out of luck.  I’ll have to cope for the last ten weeks until I get home.  I can run a squeezeserver on the main laptop if I can’t find a free to air commentary in New Zealand.

I’ll also have to use the laptop for iTunes syncs but that is not so bad; I’d already been doing that really.

Windows 7 on fit-PC Slim with no USB-DVD reader (close, but no cigar)

I run a Fit-PC Slim headless on Windows XP Pro as a media server (squeezebox), print server and with iTunes too.  Probably too much for this little box at times but it works well enough. Apart from when iTunes wants input.  Sadly when I used the excellent nLite to make a cut down version of XP I left out something vital for iTunes.  When iTunes starts it says it has a grave error and I have to click OK to continue.  I have looked in to it but no joy.  It is a pain to RDS in to click OK every time that the fit-PC reboots!

I was idly wondering about Windows 7 on the fit-PC when I found a thread on the fit-PC forums that left people hanging.  jjkarns was going to try this install in January 2009 and report back.  There was no report back.  A cursory search of the internet (I was not too keen to find out if this had been done before) got me thinking.

Today I had a bonus day off work, and with the kids at school I thought it might be fun to try to put Windows 7 on my little box.  It only has 512MB RAM (and some of *that* is syphoned off to VGA…) but I have heard rumours of Windows 7 working on low spec machines.  I also have a spare IDE drive that I thought was dead but repeated disk scans on Ubuntu and Windows showed *said* it was OK so I borrowed a USB keyboard from work and set to.

First effort: Booting from USB Key (fail)

I don’t have a USB CD-ROM available so had to get the fit-PC to boot from a USB Key.  I had not had much success with this in the past, but I found a thread on the fit-PC slim forums and fixed it by making the C: drive NAND Flash and the default boot c:.

Next I had to make the Windows USB boot disk.  I found a helpful thread on TechNet (“Use a USB Key to Install Windows 7—Even on a Netbook”), but when I ran diskpart on my work XP machine it only found one disk.  diskpart worked as advertised on my Windows 7 home laptop…

This was all new to me, so, somewhat excited I plugged the beautiful new USB boot disk in to the fit-PC slim and switched it on.  And got the following message:

Windows failed to start. A recent hardware or software change might be the cause.  To fix the problem:
<< blah blah repair your computer >>

File: \Boot\BCD

Status: 0xc000000e
Info: An error occured while attempting to read boot configuration data

This was somewhat disappointing!  I put it down to the USB key being faulty so tried it on my Windows 7 PC.  It worked perfectly first time.  Googling up the error code was not super successful.  Loads of people have the problem and I couldn’t easily find any solutions.  Time to try something new.


Second effort: Booting from External USB Disk (fail)


My next cunning plan was to boot from the IDE disk, mounted in USB caddie.  I’d already formatted this with fat32 and worked out that to make it an active boot partition I could use diskpart with the following commands

diskpart
select disk 1
select partition 1
active

I copied over Windows 7 once more whilst pondering what BIOS settings for the fit-PC.  USB Hard Disk?  IDE drive? If it worked the plan was to stop the installation when it reboots and whack the drive back in to the fit-PC.  Selecting “IDE 0 Pri Master” or “IDE 1/ Pri Slave” in CMOS was a fail, as was “USB Hard disk”.  I tried “PCMCIA” and “USB Floppy” too.


Later (see below) I realised that this was never going to work because the disk couldn’t boot by itself after all.  And I should have just slapped it in to the fit-PC shouldn’t I!


Third effort: Installing on another machine and swapping disk at critical moment



I am lucky enough to have an IDE laptop that the kids use for Sims2 etc. Whilst the cat’s away…  My next idea was to continue the plan of starting the installation on one machine and finishing it on another when it is in the middle of a reboot.   I replaced the disk in the laptop and booted with my USB stick from effort 1.  At this point I realised that I should have just stuck the disk I created in the previous step in the fit-PC and tried to boot from it.  I tried doing that on the laptop and it didn’t boot!  So maybe my diskpart commands were faulty.Oops.  I am typing this as I go, so maybe that will be the next try.
I set up a 20GB partition and then watched the Windows 7 installation carefully.  It expands the windows files and then starts installing, but I could not remember when it reboots and I wanted to catch that.  I know it goes through a major detection of hardware at some point, but is was that before or after the reboot?  It kept on going (Windows is so much better and quicker at installing nowadays) and after four green ticks it went down for reboot.  I switched off and plugged back in to the fit-PC.


Bingo!  

Windows 7 attempting to start on fit-PC slim





The disk light started flashing, up came the Windows 7 logo and then a long, long wait on:


Setup is updating registry settings

I put this down to low memory and Windows 7 detecting (re-detecting?) the machine it was installed on.  After 10 minutes it rebooted.  It took a long, long time to show anything other than the “Starting Windows” logo.  After two minutes the disk light stopped flashing and my little fit-PC just sat there sadly.  At this point I began to lose faith.  Will I damage my main media server for ever with all this plugging in and out of disks?  How long do I wait for any “Windows 7 action”?  After 8 minutes there was depressing noise like the disk spinning down.  With no action at all on the screen I decided to wait another 5 minutes before giving it up as an “epic fail” and getting back to trying to fix the issue with iTunes not starting under XP Pro.


At 9 minutes the disk light flickered feebly and there were more clicks from the disk.  I wondered whether it needed a mouse to continue so plugged one in.  The disk access light flashed enthusiastically (something was alive in there) but I was still stuck on the “Starting Windows” screen.


At 11 minutes I lost patience, pulled the plug and restarted, choosing the “Start Windows normally” option with some optimism.  Next time “Safe Mode” I thought.  Again, it didn’t work.


Safe Mode didn’t work either.


As a good scientist I need a conclusion, which is this:  Windows 7 does not work on my fit-PC when I try to install it.  Please let me know if you do better.