Tuesday, May 29, 2007

Network update

Server anomaly
I had a strange problem emerge this past weekend where my server couldn't connect to the web via Firefox. I couldn't even use Server Admin to connect to the server. I restarted a bunch of times and even precariously used changeip to try changing the IP address of the server, stupid in hind sight. I ended up changing the DNS servers to ones that were listed from my router and changed the server listing from Server Admin to its IP address. Whatever I did, it worked. I don't like the powerlessness of not knowing where to look for solutions. I don't know how to read the logs beyond a superficial level, so I don't really know where to go to fix the problems.

WPA TKIP
I don't know why I didn't do this earlier, but I changed my router from WEP encryption to 120 bit WPA TKIP encryption. I wasn't able to enter in my 503? bit passkey, so I had to choose a 20-digit key instead. I'll limit the MAC addresses next ensure that no one will be able to access my IP address.

FTP admin
I just tried to access my net2ftp admin page and was twarted by the login. I have no idea what the password is! I'll have to change that this evening.

eDrive
I installed a TechTools eDrive on my PowerBook so I don't have to rely on my newly created iPod "toolbox" for maintenance. I had troubles installing iDefrag though since I wasn't able to resolve permissions on the eDrive to allow the license key to be copied into the /Library/Application Support folder.

Buffalo 80GB Protogo Drive
Since I made an eDrive for my PowerBook, I thought I'd do the same for my MacBook. Well technically I can't make an eDrive since I have Bootcamp installed, but I have a Buffalo external USB 2.0 drive that wasn't doing anything, so it's now a portable Intel-only toolbox with lots of storage space on it (about 73 GB).

Freenet

Dubhgan forwarded some interesting information to me regarding an alternative network service based on anonymity. I believe the concept and technology is called Freenet, though there maybe alternative nets under different monikers.

I haven't had a chance to watch this video, but he said they discuss some of the fundamentals behind the recent build.


I doubt I'll try it out since I have little beyond financial documents that are worth encrypting or keeping secured. It forces one to deal with the concept of free speech. Along with the good comes the bad. I don't know how I feel about giving folks with dark intentions ways of maintaining their crafts. I suppose I have to support it to the limit that I would support the freedom of speech or any other freedoms granted to us through our Constitution and Bill of Rights.

Wednesday, May 23, 2007

Scratch!

Here's a very cool program that Doreen and Bruce found from the BBC website:
A free programming tool that allows anyone to create their own animated stories, video games and interactive artworks has been developed.

Primarily aimed at children, Scratch does not require prior knowledge of complex computer languages.

Instead, it uses a simple graphical interface that allows programs to be assembled like building blocks.

The digital toolkit, developed in the US at MIT's Media Lab, allows people to blend images, sound and video.

"Computer programming has been traditionally seen as something that is beyond most people - it's only for a special group with technical expertise and experience," said Professor Mitchel Resnick, one of the researchers at the Lifelong Kindergarten group at MIT.

"We have developed Scratch as a new type of programming language, which is much more accessible." (continues)

This would be a very cool tool for students here since they could make their own animated stories or presentations.

This weekend

Now the fires are red hot for getting sh!t together for our move. By the end of this weekend:
  1. get a shopping cart installed on the server
  2. start photographing items to get rid of
  3. big heater
  4. small heater
  5. toyu tanks and pumps
  6. take fish to Homey Homer
  7. clean out fish tank
Since this is my tech blog, I'm most focussed on the shopping cart now. I've been looking at a couple of options. I don't need a lot so I should just focus on the easiest to install and friendliest to navigate.
  • Commerce.CGI - the first script I looked at; offers free scripts for basic installation and a one-time paid membership to access add-ons
  • Shop-script - a pretty slick looking system that features three different tiers of functionality for quite a price increase; clear features description available
  • AgoraCart.com - an open source option; also features paid membership upgrade but it's unclear what the features differences are
We'll need to get our stuff ready for the shopping cart as well.
  • photograph everything from a couple of different angles
  • measurements
  • price
  • description
  • date of availability
The only information we'll need is a name since we'll be collecting cash for everything.

Thursday, May 17, 2007

Video for iPod - a surprising omission

I'm surprised that I didn't post about this earlier. I've been using a different website than one I had posted about previously to convert videos from YouTube for the iPod. I'm sure there are faster options, but I wonder if they'll be any easier. I'd like to avoid downloading five or six candidates in search of a good option, so Media Convert is an excellent choice for me right now.

A six minute FLV video will take about 36 minutes to convert to a H.264 640 x 480 video and download.

Wednesday, May 16, 2007

The Network

We're starting to get quite a collection. I've been trying to keep track of it all, so here's a run-down of the hardware
  • MacBook
    • Partition 1 - Intel OSX Tiger
    • Partition 2 - Boot Camp - Windows XP
  • PowerBook
    • PPC OSX Tiger Server
    • External 250 GB
      • Personal Files
      • Mac installers
      • iTunes & iPhoto libraries
      • Bittorrents
  • Armada
    • Windows XP
    • External 65 GB
      • Windows installers
      • Cued videos
  • Peripherals
    • Canon i70 portable inkjet printer
    • Epson flatbed scanner
    • iPod FW 3G 40 GB - 2 partitions
      • TechTools Protogo Universal profile
        • TechTool
        • DiskRescue II
        • DiskStudio
        • DiskWarrior
        • iDefrag
    • External 120 GB
      • clone of 250 GB HD sans Bittorrent documents
    • External 80 GB USB
      • iTunes & iPhoto backup libraries
      • essential documents backups
    • LaCie RAID 1 external enclosure (wishlist)
      • for secure storage of personal documents and media files; I'm tired about worrying whether my drives will fry in the heat, I'm only buying HD enclosures with built-in fans (and FireWire/USB connectivity) from now on
    • UPS (wishlist)
      • for the eventual PowerMac-fileserver
  • PowerMac (TBA)
    • eventual server with external 250 and 120 HD's installed
    • upgrade with hardware RAID 1

Tuesday, May 15, 2007

Updating the iTunes library

Hyunjoo and I are doing the big clean, in part for our departure this summer. We just started going through our CD's and have plans to give a lot of them away.
  1. I went through and removed all the duplicates
  2. imported Hyunjoo's library
  3. began ripping the last of our CD's that we didn't already have in iTunes
  4. I'll have to next make a back-up of all our music, and other files for that matter, just in case something happens in transit from Japan
I had some initial problems with step two. Hyunjoo had 750 songs to add, but iTunes was only adding 260 of them. I soon realized that iTunes was automatically ignoring songs it already had in the library. After that step I finally deleted her library and we only have our one consolidated library from here on out.

Just in case...

I hope I never have to, but here's some information on replacing an iPod's HD if I ever need to.

Micromat Protogo

This software kicks ass, and I haven't even got it configured properly yet. This software lets me turn my FW 3G iPod, or any other external drive for that fact, into a mobile tool box for any Mac (OS 9, PPC, Intel).

I had problems with the profiles at first, but then realized that...
The Universal profile gets its system software from a disk image licensed to us by Apple that is usually used to make bootable DVDs. This disk image can create an installation of Mac OS X that is capable of booting both PowerPC and Intel-based models. This disk image does not contain a Finder, and nobody is authorized by Apple to add one. Therefore, there will not be a Universal Protogo profile with a Finder, unless Apple changes its bootable DVDs.
I can't turn off my iPod right now and will have to reinitialize the iPod and begin again this evening, but at least I have a better idea of what I need to do after reading posts from Micromat's forum. First off, I'll have to look for something in the preferences that allows me to select an option to keep the iPod's music-playing functionality.

I'm interested in adding my own utilities as well like DiskWarrior and iDefrag but there might be some limitations
Keep in mind that the Universal profile has no Finder and Disk Warrior will not work with its system software. As long as you use a profile that is specific to the PowerPC or Intel platform, you should have no trouble using any third-party programs.
I'll give it another go in any case.

Update - I've got the iPod up and running with Protogo, after I read the directions that I can only choose a profile with one partition if I want to maintain music playback capabilities. Amazing what stuff you can learn by reading warning dialogs. I set it up with additional utilities, but a couple of them need serial numbers to run. DiskRescue II and Serial Box doesn't run right now, but that will have to wait.

Firewire bridges are not built alike

I've been juggling around external HD cases to address overheating problems with my drives and now I've had to resort to juggling again for a different reason: my newer Buffalo enclosure doesn't support "powered Firewire pass-thru", for lack of a better term.

Until last night my set up was:
PowerBook > external LaCie DVD > external Buffalo enclosure

This set up was fine when all I needed to do was hook up another HD, like my MacBook in Disk Mode, and all was good. But when I plugged my 3G iPod into the FW port, it wouldn't charge. Apparently it had something to do with the fact that the Buffalo drive only has one 6-pin connector. The other is a non-powered 4-pin port. The missing 2-pins in the chain breaks the power connection even when all of the drives in between are AC powered!

So I switched my 250HD from the Buffalo enclosure to my OWC enclosure, again, and am running it with the case cracked open to let it ventilate. I hope it doesn't over-heat in this configuration. What a pain in the ass!

How to make a triple-boot service drive

I found this post via a link from the Micromat forum. I'll have to give this a whirl with my "extra" 120 GB drive.
I work at a school in the morning, supporting about 200 computers, mostly mac. The coming of the intel means more work for me, because now I have to be able to support the intel platform in addition to the powerpc platform.

During the summer we create "base images" - default hard drive images that we can quickly deploy ("image") to workstations that are having problems. The users have their homes on the network so we can blow away their hard drive without too much disruption. (aside from installing scanner and special printer drivers anyway)

I can normally image any machine with a firewire port. (we are desperately trying to phase out the tray load imacs!) I can image TO any computer I need to via firewire, but this requires another machine such as my laptop or another mac. I can image from any machine to any machine but the requirement of another free machine is inconvenient.

I have been using a little 80gb 2.5" firewire drive for imaging so far. This drive not only has the base images on it, but it is a bootable 10.4 OS as well. So I can boot the machine to be imaged off my service drive, and image it, all with only the handheld drive and a firewire cable. (isight cables fit nicely in your pocket! Get one from your Apple store, they work fine for HDs, no data corruption as I had initially watched for)

Now enter Intel. My service drive won't boot off that. If I format it GUID and install intel tiger, then I can't boot any of the older machines. We have about 200 ppc macs right now and we just got in 14 macbooks and a pro, with more imacs to come I'm sure. So I need to find a way to make this drive boot both platforms. It's either that or get another drive, and I hate to lug any more gear around than I am already carrying.

After much googling and finding a surprising amount of untested and inaccurate information, I have completed my mission and thought I'd share the CORRECT how-to of making a dual (and in this case, triple) booting drive.

First off. GUID. No. Just don't. It won't work. I know, they all say that's how it has to be done to boot intel but they're wrong. Yes, the installer won't install to APS (Apple Partition Scheme) but that's how we have to do it anyway. The reason is that there is NO way to boot from a GUID partition on any but the very newest G4 and G5 macs. This is because only the newest machines with the latest firmware can read GUID. A GUID partitioned hard drive cannot boot from an older mac, end of story. In case you're thinking "can't we have both?", no you can't. The partition scheme is the way the partitions are described by the disk drive. Just as there is only one table of contents in a book, there is only one partition table on a hard drive. There is no way to hybridize the table so that it is legal in both GUID and APS, so you have to pick one or the other. Since we know that you cannot boot from a GUID drive on most of the PPC macs, that's out.

So APS it is. Reformat your service drive as apple partition scheme, this is the default. Plan carefully when you set up the partitions, as this is very difficult to change your mind on later. If you have a larger drive this is easier because you are not so tight on space. Here I set up an 80 thusly:

Service Classic - 1.5gb
Service PPC - 6.0 gb
Service Intel - 8.0 gb
Service Users - 6.0 gb
Service Data - 59 gb (the rest of the space)

Yes, classic is there. I intend to boot up the drive as 9 as well. Not because I need it, but because it may come in handy and 1.5gb is not a lot to waste. And because "triple boot" sounds cooler than "dual boot".

I set the size of the PPC, Intel, and Users partitions to have about 2 gb of space left on them when I was done. This is playing it a little cagey, but this is only an 80gb HD and I have about 35gb of base images to fit onto the remaining data volume so I can't squander my space.

First is classic. Drag and drop from an existing machine. Very easy. After you drop, you will want to check and see what you don't need, and delete it to save space. All you really need is System Folder and Applications (Mac OS 9). Though since this is its own partition you won't be adding to usable space elsewhere but I like to keep a clean drive. After you are through cleaning it up, and while still attached to the OS 9 containing mac, select the Classic volume as your startup, and then select back to your normal boot drive. This "blesses" the classic installation and will make it be able to appear in the boot-picker when you hold Alt at startup. This requires a machine that can boot OS 9. You can bless classic from a machine that cannot boot it, but it requires some terminal magic that I can't recall offhand. ("man bless")

Next is PPC. Just grab your tiger installer and go to town. Run updates. Create a user account that is somewhat generic, you'll see why in a bit. Pick a single word short name for simplicity sake. (see further down for suggestions) I'll assume it is blessed since you installed it and ran software updates. You can also use "ditto" in terminal or netrestore to clone from an existing installation. More importantly now, remove anything you don't need. Space is tighter here and OS X is less forgiving of low disk space than classic ever was. Try to have at least 1gb of free space, 2 is better.

OK now the fun one. As stated earlier you cannot run the intel installer. If you select this drive in the installer, it will say "you cannot install Mac OS on this volume. You cannot start up from this hard drive". it's lying! Unfortunately it's a pain to force the issue. So install it onto a GUID formatted volume, or find another one that's already installed. Now hack it down to a manageable size, try to get it to 5gb of used disk space. Then use Disk Utility and do a "new disk image from disk0sxx" and make a disk image of the intel drive. Save the image somewhere else of course. (maybe on the Data partition if you made one?) Then use disk utility to restore the disk image to the intel partition you made. Again you will need to select the intel volume as your startup once to "bless" it so it shows up in the boot picker. It's interesting that they will allow you to restore to it but not to install to it. It would be a good idea for you to use the short name that is the primary admin account on the installed intel drive above where you created the account for the PPC side. If these names are the same the next step is easier. Intel's binaries are about 30% larger than their PPC counterparts, so this tiger will take up more space than the PPC version, which is why I allocated 2gb more space for the Intel tiger partition.

OK almost done! You should now be able to boot the HD on all three volumes, on the appropriate macs of course. Test them all to make sure they are working fine. Make a folder on your Users volume, call it.. Users! Make sure permissions is enabled on this volume and both of the tiger volumes. Drag and drop your home folder into Users. No I have not lost my mind.

OK, open Netinfo Manager and authenticate. Now find Users, and find your user. Find Home folder. It might be:

/Users/JoeMac

Change it to

/Volumes/Users/Users/JoeMac (mine is more like "/Volumes/Service Users/Users/JoeMac")

"Users" is the name of the volume that you made the Users folder on. Include spaces, this is not terminal and spaces/symbols should NOT be escaped if you have them in the username or volume name. Type them as they are.

Now restart local netinfo domains with NetInfo Manager. Now logout, and log back in again. Go... Home. Your home and house icon should now be in the Users folder you made. Congrats, you just moved your home folder! Feel free to blow away the home on your tiger volume, you don't need it anymore and it's just eating up space.

Now on a mac of the other architecture, repeat the maneuver of moving the home folder. (no need to copy it, skip that step) This time when you log out and back in again, you will see the exact same home folder you had on the other platform. The two are now sharing the one home folder. Changes made on one architecture will occur for the other as well. PPC apps installed under the PPC boot will work fine (via rosetta) when you are booted Intel.

There. You now have a triple booting service drive with shared home folder. Note that if you create another account you will have to create it on the other side and move both of them as well - we did not change the default home location, only the location of that one user's home. If you are using the drive to image, this would be a good time to load up the Data partition with your base images and get NetRestore installed. (only once! works for both!) I have not tried netrestore on the Intel side but I expect it will work, though it may run slower. I haven't ran across an Intel-native netrestore yet.

You might want to adjust permissions etc on the folders at the root of the users folder you copied, since just being dragged they didn't maintain the special permissions of the files at the root of your users folder. If this is just your personal service drive though I doubt this matters much.

Followup note. When installing applications to the shared user folder, you would be advised to check them and see if they work ok on both architectures. Installers for applications like Stuffit Expander will check your machine architecture when you install, and will not install universal binaries. They will instead install the binary for the architecture that you are running on now. If that is PPC, then not so bad, it will work in rosetta. But if you are booted to Intel when running the installer, you may get an Intel-only binary that you cannot run when booted to PPC. You can use finder and get info on an application to see which architecture(s) it will run under.

Get info on AddressBook on my powerbook: "Application (PowerPC)"

Get info on AddressBook on my intel partition: "Application (Universal)"

Get info on Stuffit Expander: "Application (Intel)" (iirc)

The Intel ones are the only ones you really need to worry about for now I think. They will not work on PPC and should have a slash through their icon in the finder, same as the classic apps do on an intel machine.

Monday, May 14, 2007

Bootcamp, again

One of the first things I did when I got my MacBook last year was to install Bootcamp and test out my new "Winbox". It worked great, but I have to admit that after I tried out Parallels, I got lazy and stopped using Bootcamp.

Parallels made the most sense for using Windows MS Office, MS Messenger, and various other Windows-only software packages. It ran relatively fast and was easy to boot. I was a full Parallels convert.

Previous to Parallels I was basically using Bootcamp to run a StarWars RPG. It was a great game, but after I finished it I didn't really have an interest in running through the whole story again. I don't often play games and when I play them I rarely "complete" them. I most often play RPG's and Gran Turismo.

So, I basically stopped using Bootcamp. I even went through the process of removing the Bootcamp partition. That was a pain in the ass of its own magnitude - for reasons I've forgotten. Of course once I ditched the partition, I realized that I wanted to run Bootcamp again.

This time I want to try and get RealFlight up and running. I don't have an RC controller yet, but perhaps if I buy a cheap 4-channel model I can practice before I get a real plane. I can sort of test the waters and see if it's something I wanna try out.

I still have to check whether the GMA950 video chipset in the MacBook can handle the graphics. I'm holding my breath.

Friday, May 11, 2007

Rikaichan

Doreen found this fantastic add-on for Firefox called Rikaichan. It's a multi-lingual translator for Japanese. It reads kanji text and provides dictionary-like information via pop-up windows. It even includes the furigana - or phonetical readings for kanji combinations.