How to Crearte a RAID 1 (Mirror) Without a Reformat

Filed under: Articles — dean at 05:17 PM on Nov 28, 2009
Saw an article posted on someone's blog with that title, but really should've been a link to the original, which has been up for five years, and is still relevant:

http://www.afp548.com/article.php?story=20040827122302975

Snow Leopard Shows Signs of Superior Quality Control

Filed under: Articles — dean at 12:00 AM on Sep 08, 2009
Apparently, Snow Leopard has undergone a depth of QA (Quality Assurance) that other point "oh" releases of Mac OS X have not. Usually, when digging through a new OS, one expects to find some breakage.

Many have noticed and have considered it a known problem / fact that some of the command line tools in previous versions of Mac OS X have returned errors codes when completing successfully and vice versa, or have mixed up their error and success codes (or stdout andn stderr) in a willy-nilly fashion.

A command line tool, when it runs successfully, is supposed to return an exit status of 0. However, at least since Mac OS X 10.3, the ipconfig command has returned an exit status of something other than 0, which typically indicates an error condition. How do I know that? It's because my application, Mac HelpMate has, for years, depended on that error to trigger a certain window to appear.

The syntax of the command is:

ipconfig getpacket en0 (or en1, if you're using a secondary ethernet connection)

So, while updating Mac HelpMate for Snow Leopard, I discovered that the window no longer appeared as it did in earlier versions. In reviewing the code, I found that it no longer falsely returned an error when completing successfully, correcting a condition that spanned at least three major Mac OS X releases.

Naturally, I'm very impressed and pleasantly surprised. That level of attention to detail deserves a big thumbs up to the Snow Leopard Quality Assurance team. Either they started paying attention to bugs people filed (I was not one of the filers, I admit that I "lived with" this little issue and worked around it) or made a concerted effort to ensure that all of the thousand or so command line tools that shipped with Snow Leopard were tested for the correct exit codes.

At any rate, rather than digging into the innards of a "point oh" release and finding breakage, I'm finding fixes. It's really nice.

Correction: Snow Leopard will Not Use ActiveSync for Exchange Support!

Filed under: Articles — dean at 01:46 PM on Aug 26, 2009
Snow Leopard is due to land in two days, and everyone seems to be buying into the Mass Hysteria that the Microsoft Exchange Support for Mail and iCal will be delivered by ActiveSync.

Bzzzt! Snow Leopard will use the same RPC-based web services that the recent update to Entourage use - hence the requirement for Microsoft Exchange 2007 on the back end. While the iPhone will continue to support ActiveSync, it's not suited to a Desktop OS, and so I really wish the mainstream Mac Media would stop misrepresenting the facts - but it really doesn't matter to the large majority of users out there.

For the Mac OS X Support Community, that knowledge is really important, however.

There's some great info on Entourage Web Services here:

http://www.microsoft.com/mac/itpros/entourage-ews.mspx

which should help anyone truly wanting to understand how Exchange Web Services will work with a desktop client (applies to Windows Outlook as well).

I'm getting really tired of hearing the echo of misinformation in the Mac Media - it's getting louder these days, what with more bloggers and reporters simply repeating what they hear / read on other sites.

Microsoft Announces Outlook Will Be Back in Office 2010

Filed under: homepage — dean at 02:09 PM on Aug 22, 2009
Although it's probably going to be based on the current Entourage code base, the adoption of Outlook as the name of the app signals that Microsoft is serious about parity for the Mac OS X client for Exchange with Windows. Back in 2001, the Mac client for Exchange diverged from the Windows client, and now they are about to converge again - in a better way!

This is really good news for those who have to use Exchange - and that's a lot of people. Despite the advancements Apple's made into corporate IT, Microsoft's Exchange business alone is probably larger than Apple's software business. I'm sure Microsoft is really concerned about people abandoning Exchange for iCal Server, Zimbra, Kerio, or even Google Services - what better way to prevent that than spiff up their Exchange client.

Additionally, due to the outcry over removing Visual Basic from Office 2008, that will be returning in Office 2010 as well.

It seems that Microsoft is taking Mac OS X much more seriously than it used to - but that's probably due to the amazing success of the Mac platform over the past couple of years. There's money to be made in Office Sales, and the prospect of parity with the PC version is a great incentive for people to finally upgrade from Office 2004 - which many users still cling to for various reasons.

OLPC - It's a Must See PC

Filed under: Articles — dean at 06:43 PM on Dec 25, 2007
We are in the process of closing out the fiscal year here, and it's been a fantastic year for Apple Computer - and MOST Training and Consulting. We feel particularly blessed to be able to work with so many wonderful technologies and so many incredible schools and their support and instructional staff members. Schools can be particularly challenging environments, especially when it comes to showing love to the folks who make all the tech work.

Apple is shattering new sales and profit records, and so are we, on a much, much, much, much (add a million muches) more limited scale. This year, besides sales of Mac HelpMate subscriptions, our greatest area of growth has been in integration and planning projects for K-12 school districts, one-to-one deployments in particular, where each student receives their own MacBook for use at home and at school.

While we of course prefer MacBooks, our good fortune this year led us in search of worthy donations, and we found the OLPC (One Laptop Per Child) initiative too much to resist, especially since we can now donate one and receive one for development purposes. Not only do we have web-based solutions in development that might to be compatible with the OLPC portable, we are also intrigued by the notion of deploying it to students considered too young for their own MacBook - such as kindergarten through third-graders.



I'm also a little concerned that some Apple employees in the Education sector might perceive the OLPC as a threat to the sale of MacBooks, being so much less expensive, but we think they'll be complementary - the "gateway" to the purchase of more expensive Mac OS X computers in later grades.

The OLPC is something we not only have to "see" but something we need to consider as a serious solution for our education customers. We need to find out how it plays on school networks, with content filters, and whether we can manage them using the same tools we count on to manage Mac OS X computers and servers. So, I've sent in my $399 and am anxiously waiting for the green "Martian" with its plastic antennae to arrive.

How Slow Can You Go With Leopard?

Filed under: Articles — dean at 03:29 PM on Dec 25, 2007
When Leopard first came out, people started asking the requisite questions: how slow of a Mac can I install Leopard on? Leopard "requires" a G4 processor of at least 867 mhz, and 512 megs of RAM. We have a few older G4s in our lab, one of which has a 350 mhz processor and 1 gig of RAM. I also have an iMac G3 with a 600 mhz processor and 512 megs of RAM.

In order to install Leopard on an unsupported machine, I had a number of options:

1) hack the installer script.

I dismissed this as too time-consuming and possibly illegal, as it might break Apple's EULA

2) put the older Mac into TDM (target disk mode), attach it to a supported Mac with a firewire cable, then boot off of the Leopard Install DVD and install it onto the unsupported Mac that way

That would work, but I need to install/tear-down more frequently, so I went with option #3

3) create a disk image of an install and then use netboot and NetRestore to image an unsupported machine.

The Results:

the G4 350 with a Gig of RAM ran Leopard OK, but with pretty slow screen redraw. It only has a 16 meg ATI Rage Pro for video. I've also subsequently used the same image on a PowerMac G4 Cube 450 mhz, a QuickSilver Tower 800 mhz, with much success, depending on the RAM and strength of video card.

System_Profiler Command Bug

Interestingly (and this is not a show-stopper by any means), the ethernet hardware section of a text-based system_profiler report written to standard output looks like this on two unsupported Macs:

IEEE80211:
Join Mode: Automatic
PreferredNetworks:
SecurityType: WPA Personal
SSID_STR: MOST-N
Unique Network ID: DE79D60B-EE07-417C-ABDC-AE4A5F925435
Unique Password ID: 45721E00-04D8-46C6-8574-AD62648A3E4E
SecurityType: WPA Personal
SSID_STR: AE_Shavit
Unique Network ID: BD1143B7-909F-49B1-B72D-B604CC07026F
Unique Password ID: BB8D64CE-4E60-4E29-93B3-9F57E5CA044B

2008-02-22 12:18:57.169 system_profiler[18657:10b] *** -[RedLightGreenLight unlockWithCondition:]: lock (<RedLightGreenLight: 0x1c0de10> '(null)') unlocked when not locked
2008-02-22 12:18:57.174 system_profiler[18657:10b] *** Break on _NSLockError() to debug.
Modems:

Modem Information:

Modem Model: Spring
Interface Type: Serial
Modulation: V.90
SKU Name: UCJ
Hardware Version: 6.0F
Driver: com.apple.driver.AppleSCCSerial (v1.3.2)
Country:


However,

Any G3 on which I've blasted the image has resulted in a complete failure of hard disk support or a kernel panic. There's not even what I'd call an elegant warning about the processor type being unsupported - and that's not "Apple-like" in my opinion. It's almost as if the G3 is so antiquated that it doesn't deserve a proper send-off. Oh well.

"Lock Failed" Sprint asks: "Do you have a PC Handy?"

Filed under: Articles — dean at 04:33 PM on Dec 22, 2007
For some inexplicable reason I decided to go with a Sprint for my wireless broadband service after having purchased an iPhone. The Verizon Treo 700p I'd been using served nicely as a broadband dialup device, but the Edge network on the iPhone didn't support tethering (although it's possible with an unsupported hack) and even it it did it wouldn't be enough to use Mac HelpMate in a pinch.

So, after Verizon told me I'd have to pay full price for an EVDO device, I decided to go with Sprint. The fact that I couldn't successfully complete their online registration should have scared me away. Too bad I'm hard to scare.

It took me nearly two hours on the phone to find out how to get the Novatel U727 working - they hadn't shipped it to me with any account information, and after reading the ESN to about the fourth support representative, they were like "Oh" we sent you an unactivated modem, with no associated account information, now, who are you again? What's your Social Security Number?" The inept support made me feel, well, less than confident in this device I was counting on as for emergency internet access.

Once it started working, it was not bad, not bad at all. Until yesterday, when I really needed it in a pinch to demonstrate something to a client, it refused to connect, giving nothing but a "Lock failed" error dialog.



So, after reinstalling the support software three times, and three reboots, the technical support rep asks "Do you have a PC handy?"

My response: "Is this product supported on Mac OS X?"

His reply "Well, yes."

At this point, my suspicions about Sprint's inept tech support are being confirmed, big time. I let the fellow on the phone know that I'm going to try it on another computer. I do, and it works.

At this point, I am too tired to call back Sprint. I decide to have a look at the system log.

And what do I see?

Dec 21 15:05:34 deanmbp pppd[398]: pppd 2.4.2 (Apple version 233-16) started by root, uid 502
Dec 21 15:05:34 deanmbp pppd[398]: Can't create lock file /var/spool/lock/LCK..cu.wwan1d1: No such file or directory

I create the lock directory, and it works again.

I guess once you figure a vendor is incompetent, that incompetence is contagious as well.

QuickTip: Make Your Keychain Drive Safe for All Mac Files!

Filed under: Articles — dean at 09:26 AM on Apr 29, 2005

Recently, with the price of large (one gigabyte and bigger) keychain (USB) flash drives coming down to below $100 or even $49 when on sale, more and more Mac users and admins are using them as data transfer tool, quickie backup device, or even a data recovery or troubleshooting tool. However, it's easy to forget, in these days of OS X applications that don't have resource forks or create documents with resource forks, that nearly all of these USB drives come formatted with the FAT32 file system, which is still unfriendly to Classic Mac Applications, as well as Postscript Fonts, and QuarkXpress Documents. If you copy file from your Mac to a FAT32 keychain drive, you'll separate the resource forks of the files and find that your Applications, Fonts, and other document may be trashed beyond the point of recoverability.

One way around this problem is to format your USB drive with the HFS+ file system using Disk Utility, however, this prohibits the flash drive from ever being used with a Windows or Linux computer.

I have worked around the problem by using Disk Utility to create a "sparseimage" on my USB keychain drive. A sparseimage is the a disk image with a "growable" filesystem. When you create a sparseimage, you have to specify the maximum size it can grow to, but it won't reach that size unless you fill it up. Now, when you attach your USB drive to a Mac, simply double-click the sparseimage to mount it. Put your Mac files in there, and you'll enjoy the best of both worlds, without having to reformat your USB drive.

Calling Houston: E-Mail Notifications of RAID Mirror Failures!

Filed under: Articles — dean at 01:29 AM on Feb 01, 2005

Houston, is there a problem?

Recently, on a listserv I frequent, I heard a complaint from a sysadmin that "yet another software RAID mirror" had failed. The fellow complaining emphasized the fact that in the OS X Server boxes he managed, disks would fail and he wouldn't know until he checked in on them. He wondered if any hardware RAID cards featured notification services, rather than rely on the built-in RAID capabilities of OS X.

While an XServe RAID can notify you if a hard disk fails, as well as other hardware RAID subsystems, Disk Utility and OS X have no provisions for notifying you if a mirror set has a bad disk. A mirror is two hard drives acting as one, so that if one fails, you lose no data. You can set up a mirror via the diskutil command or in the Disk Utility application. PCI IDE RAID controllers don't feature notification like external subsystems, as the PCI bus provides no means of communicating the status of various drives or RAID sets. After all, a phone line or ethernet cable is required for the little computer than lives in the RAID chassis, so it can get your attention when it's hurting.

Fortunately, I had a solution at my fingertips.

I had run across this very same problem myself, a couple of years ago, so I hammered out my own little software solution, a shell script that runs as a cron job every hour. It simply checks the status of the RAID to make sure that both disks check out with an "OK" status, take a look at the output of the following command:

host2:~ mostadmin$ diskutil list
/dev/disk0
#: type name size identifier
0: Apple_partition_scheme *34.2 GB disk0
1: Apple_partition_map 31.5 KB disk0s1
2: Apple_Driver43 27.0 KB disk0s2
3: Apple_Driver43 37.0 KB disk0s3
4: Apple_Driver_IOKit 256.0 KB disk0s4
5: Apple_Patches 256.0 KB disk0s5
6: Apple_HFS images 34.2 GB disk0s6
/dev/disk1
#: type name size identifier
0: Apple_partition_scheme *17.0 GB disk1
1: Apple_partition_map 31.5 KB disk1s1
2: Apple_Driver_OpenFirmware 512.0 KB disk1s2
3: Apple_Boot_RAID 17.0 GB disk1s3
/dev/disk2
#: type name size identifier
0: Apple_partition_scheme *17.0 GB disk2
1: Apple_partition_map 31.5 KB disk2s1
2: Apple_Driver_OpenFirmware 512.0 KB disk2s2
3: Apple_Boot_RAID 17.0 GB disk2s3
/dev/disk3
#: type name size identifier
0: boot *17.0 GB disk3

host2:~ mostadmin$

The diskutil list command fetches the identifiers of all the hard disks, in this case, the mirror set we're concerned with is called "boot," which is the boot drive of this OS X Server.

Once you know the identifier of your RAID set, you can use the diskutil command again to check the status, what we're looking for here is "OK." If there's two OKs, everything's hunky-dory. Less than two, you've got a problem. If you've got zero, your server's a paperweight and it won't be spamming you.


host2:~ mostadmin$ diskutil checkRAID disk3
RAID SETS
---------

Name: boot
Unique ID: bootf5b49d82471e11d98b06003065be09be
Type: Mirror
Status: Running
Device Node: disk3
-------------------------------------------------------------
# Device Node Status
-------------------------------------------------------------
0 disk1 OK
1 disk2 OK
-------------------------------------------------------------
host2:~ mostadmin$


Now, for a nice little script I wrote to run as a cron job:


#!/bin/sh
## This script is designed to get the status of a mirror set and send an email notice on fail
## to test, change the "good=2" below to "good=1" and you should receive a warning email
## Dean Shavit, MOST Training & Consulting dean@macworkshops.com http://www.macworkshops.com
## This is for servers using software RAID mirror sets only
##
## Step 1: Define a variable for a functional raid by counting the number of good disks
status=`diskutil checkraid disk3|grep -c OK`
## Step 2: Define a number for comparison against a failed raid
good=2
## Step 3: Define the warning message for the body of the email
warning="houston we have a problem!"
## Step 4: Define a variable for the computer name
box=`/usr/sbin/scutil --get ComputerName`
## Step 5: Define a variable - email address of person to notify
admin="dean@macworkshops.com"
## Step 6: compare current status with good status, if a match, echo, if not, notify
if [ $status == $good ]; then
echo $status
else echo From: $box- $warning!!! > /tmp/houston.txt| mail -s "RAID Alert Report"\
$admin < /tmp/houston.txt
fi

This script will fire off an email if the number of OKs returned by diskutil checkRAID is any number other than 2.

Other Concerns

If you're running Jaguar Server, you'll need to make sure that the mail service is started. Panther or Panther server will use the Postfix-watch process to fire off the email, regardless of whether the email services are running.

Also, make sure that the hostname and/or DNS name of the server is set correctly, and that the email "from" address, which should be root@fqdn (fully qualified domain name) is going out a router or IP address which has a PTR (reverse lookup record) that matches the hostname of the server, otherwise some email servers (maybe yours) might not accept the message.

Here's the email the script generates (this is sent from my Powerbook, which has no RAID nor a proper fqdn):

Received: from ASSP-nospam ([192.168.0.84]) BY 192.168.0.84 ([192.168.0.84])
WITH ESMTP (4D WebSTAR V Mail (5.3.4)); Tue, 01 Feb 2005 01:05:38 -0600
Received: from 68.165.43.42 ([68.165.43.42] helo=minime.local) by ASSP-nospam ; 1 Feb 05 07:05:38 -0000
Received: by minime.local (Postfix, from userid 0)
id D56DB225D6F; Tue, 1 Feb 2005 01:09:47 -0600 (CST)
To: dean@macworkshops.com
Subject: RAID Alert Report
Message-Id: <20050201070947.D56DB225D6F@minime.local>
Date: Tue, 1 Feb 2005 01:09:47 -0600 (CST)
From: root@minime.local (System Administrator)
X-Assp-Spam-Prob: 0.00000
X-UID-FLAGS: r00001665-00000000000000000000000000000000

From: minime- houston we have a problem!!!!

I'm in the process of writing my March column for MacTech Magazine which will feature this solution and many other free solutions for monitoring and repairing hard disks from the command line. If you don't have a subscription yet, get one! Better yet, consider attending one of our workshops where you can learn to roll your own solutions like this script and much, much more. Until then, I hope I don't see you in Houston!

Dean Shavit is an ACSA (Apple Certified System Administrator) who leads training sessions for MOST (Mac OS Training & Consulting). If you have questions or feedback you can contact him at dean@macworkshops.com





Manually fix Overlapped Extent Allocation Errors without Diskwarrior

Filed under: Articles — dean at 11:52 PM on Nov 08, 2004

Overlapped overlapped extent allocation errors can be the bane of any Mac user's existence. Often, these errors go unnoticed until the problem becomes visible: your Mac might refuse to boot, crash unexpected, or worse, critical data might disappear from the Finder. Disk Utility can detect, but not fix overlapped extent allocation errors, and certain third-party utilities, such as Alsoft Diskwarrior, can fix them, but generally without reporting the consequences.

Overlapped extent allocation error occur when the file system thinks that two files are occupying the same area on the hard disk, hence overlapping on the same "inode," which is the structure which holds the location of the data blocks the file occupies, and also file permissions and flags.

Clearing the "overlapped" or "overallocated" extent allocation essentially means that you'll have to lose some data, because the only way to remove the overlap is to delete the file that's occupying the inode. So, if you suspect, or find out, that the guilty file is a critical system file that resides in one of the hidden system directories such as /etc /var /usr/ or visible system directories such as /System or /Library, and you don't want to reinstall the whole OS (which might not fix the overlapped extent allocation anyway), it's good to have another disk available to copy the files back to your original disk if necessary: a second bootable hard drive or a firewire drive connected to your Mac when you remove the misbehaving file. Just make sure that when you copy the file back to your boot disk that the permissions are correct, so it's best to use the "ditto" command, so that all sticky bits, flags, and permissions are preserved.

In case you didn't know, you don't have to boot from an install CD in order to check for overlapped extent allocations. All you need to do is restart your Mac, while holding down command + S to boot in "single-user mode."

At the command prompt that appears, type:

$ fsck -fy

If you have an overlapped extent allocation, you'll see:

"Overlapped Extent Allocation" (File 123456d)

No matter how many times you run fsck -fy, you'll never be rid of the error.

So, simply issue the following command:

find / -inum 123456 -print

Note the "d" was dropped, or any extra letter that appears after the inode number.

The find will return a file name that machines with the inode number, and the path to that file. If you remove the file then the fsck will not return this error next time you run it.

However, before you can delete the file(s) in single-user mode, you'll need to mount the file system. Type:

$ mount -uw /

When done, issue the "sync" command, and that will flush the write cache so that all pending writes are written from memory to the disk. Also, since most OS X 10.3 Macs use the HFS+ Journaled file system, it might be a good idea to disable the journal before booting into single-user mode by typing:

$ sudo diskutil disableJournal /

then re-enable it when done fixing the overlapped extents and rebooting normally:

$ sudo diskutil enableJournal /

Update: 7/12/2005: Apple has released a Knowledge Base article which reveals an expanded process much like the one we've had posted since last November! Congrats to Apple for finally acknowledging the overlapped extent allocation problem and offering a solution, no matter how geeky! It shows that OS X users are maturing, also with the OS, at least in the opinion of Apple Support!

Chris Anderson is a long-time Linux propellerhead who just got his first Mac, an ibook G4, and can't keep his hands off of it. He currently works as a "The Architect" and general visionary for a maker of world-class collectibles.

Attention G5 and XServe G5 Owners: Yesterday's SCSI Goat is Today's SCSI Hero!

Filed under: Articles — dean at 12:34 AM on Sep 10, 2004
Wither SCSI? Maybe it's got more than one life!

It was perhaps two years ago, when OS X 10.2 was all the rage, that I encountered what many Mac Consultants were discovering: certain SCSI adapters and OS X didn't seem to like each other very much. I don't want to go on about it, but anyone who's worked with Macs for the last six years or so has seen SCSI go from a stalwart standard to odd man out. Now, with the advent of the G5 PowerMac with 133 mhz PCI-X slots and 3.3v power requirements, a handful compatible of SCSI host adapters (cards) that once worked with older PCI PowerMacs up through the Mirrored Doors G4s, the last generation towers prior to the G5 has been reduced five possible options, and a few sure bets.

The sure bets for G5 compatible SCSI host adapters are (drum roll):

The Atto UL3D-66 or UL3S-66 for the higher-end G5s with PCI-X Cost: $349/$549
The Atto UL3S or UL3D standard car dor the lower-end G5s. Cost: $349

The Atto ExpressPCI UL4S or ExpressPCI UL4D. Cost: Cost: $349/$549
(UL4 Series cards are really fully compliant with 133mhz PCI-X and deliver whopping 320 mb/sec performance)

Can anyone say ouch? I will! OUCH! That's a hefty price to pay to attach a SCSI tape backup to your XServe G5 or G5 tower, or to support that legacy MO drive you need for your company's digital archives, or that 11 x 17 scanner you can't part with. Someone call a Doctor!

You cannot argue with the quality of Atto's SCSI products, they are the best. However, I can certainly take issue with the cost. The lesson to be learned here is that if you're going to need a SCSI solution for your XServe G5 be sure to purchase the ATTO/Apple OEM build-to-order SCSI solution when you order your server, as it's not available separately.

Old Habits are Hard to Break

I've been accused of being a SCSI nutcase, and I'll admit that I am. I have the following SCSI cards in my collection at the office, some are used, some are not, all bring me a twisted kind of pleasure:

-an Orange Micro SCSI Card (not OS X Compatible, Ultra-Wide, unknown model)
-four Atto UL2D SCSI Cards (sometimes OS X Compatible, not G5 compatible)
-three Atto Express PCI ultrawide cards (OS X Compatible, not G5 compatible)
-two Adaptec 2906 SCSI-2 cards (OS X Compatible, not bootable, not G5 compatible)
-one Adaptec 2930 SCSI-2 card (OS X Compatible, not G5 compatible)
-one Adaptec 2944 Ultra-Wide Differential SCSI card (not Mac Compatible)
-one Adaptec PowerDomain 39160 Ultra-160 card (OS X Compatible, not Retrospect 6 certified, G5 compatible)

It's that last card that nearly made me burst into tears a couple of years ago. A client of mine, a video editor, had purchased a very nice Dual 533 G4 system and serveral large external SCSI drives, along with the vendor's reccomended SCSI host adapter, the Adaptec 39160. It worked OK in OS 9, but occasionally would drop frames when outputting movies to the DV deck. When I upgraded the editor to OS X, the Adaptec card couldn't make it through any session of any length without dropping frames.



The 39160 (pictured above) is one mother of a SCSI adapter. It's got dual channels, two internal 68-pin connectors, and two external VHDCI (very high density SCSI connectors) on the back for external devices. As if that weren't enough, it's also got a 50-pin SCSI-2 connector for internal hard drives. The very design of it screams (R-A-I-D). Unfortunately, it seems like Adaptec let driver support lapse for OS X, leading to Dantz (the makers of Retrospect) to de-certify Adaptec Cards for use with the backup software. Eventually, Adaptec got out an update that attained Dantz re-certification, but by then the damage was done, and, what should have been high-performance 29160 (single channel) and 39160 (dual channel) Ultra-160 cards doing there business in servers and video editing stations found their way onto shelves and Ebay.

And so, the evil 39160 from my client's editing station made its way into my collection, and eventually into a Blue and White G3 server, where it does heavy data lifting every day.

When I got my dual 2 ghz G5, I missed my SCSI peripherals--the personal tape backkup device, my HP Scanjet 4C, my Zip and Jaz drives and two legacy SCSI CD burners. Of course, I know I don't need them, but why throw them away if they're useful. I considered removing the 39160 from the G3 server and putting it in the G5, because I'd heard (surprisingly) that they performed better in the G5 than in any other box. Who knows, maybe the 39160 was engineered ahead of its time?

So, on to Ebay, where I purchased a used 39160 (not specifically Mac, making sure not to purchase the "Dell" OEM cards that were in abundant supply). I got one for $65. Not bad. But when it arrived, it was indeed the Dell card, as pictured below on the model sticker.



So, I decided to flash it with Adaptec's Firmware 1.2, which, incidentally, requires OS 9. Luckily, I have more than a few Macs in our training lab which will boot in OS 9. Upon running the firmware updater, it exclaimed, "This card has no firmware, do you want to update it?" It updated successfully, and now works splendidly in my G5.

A few weeks ago, Adaptec announced that it is going to discontinue support for all of its Mac SCSI cards, and it's a toss up if the last driver for the 39160 card released this January will work with Tiger or Tiger server. Hopefully, it will, as I'm finding it to be a rock solid, fast, and cheap fix for my SCSI addiction.

Dean Shavit is an ACSA (Apple Certified System Administrator) who leads training sessions for MOST (Mac OS Training & Consulting). If you have questions or feedback you can contact him at dean@macworkshops.com




Get an OSXvnc Server installed and running with just SSH.

Filed under: Articles — dean at 12:37 PM on Jul 23, 2004

So if you're like me... you love VNC - a brilliant, open source, remote display technology, that's platform agnostic.
Take control your OS X Mac from a PC, Linux, Palm or just about anything.
Thankfully the server has been available for OS X for quite some time courtesy of OSXvnc

Often I find myself in a situation where I'd like to use VNC on a machine that I only have SSH access to. Problem you say?
Hardly... just a few simple command and you'll be up and running!

  1. SSH to the machine you want desktop/aqua access to
  2. Download VNC
    1. curl -O http://aleron.dl.sourceforge.net/sourceforge/osxvnc/OSXvnc1.33.dmg
  3. Mount the DMG and copy the files to the Utilities folder
    1. hdiutil mount OSXvnc1.33.dmg
    2. cd /Volumes/OSXvnc
    3. cp -R OSXvnc.app /Applications/Utilities
    4. cd /Applications/Utilities/OSXvnc.app
  4. We need to setup a password file before launching VNC, so
    1. ./storepasswd mysecurepassword .osxvncauth
  5. That's pretty much it... we're ready to go. Launch the server with
    1. ./OSXvnc-server -rfbport 5900 -desktop mymac.local -dontdisconnect -restartonuserswitch N -keyboardLoading N -pressModsForKeys N -swapButtons -rfbauth /Applications/Utilities/OSXvnc.app/.osxvncauth &

We now can connect to the IP of the machine using the password of "mysecurepassword" Just fire up your favorite VNC client on whatever operating system you choose, and connect to the server. Since we used the '&' to load the process in the background, use ps to grab the PID and kill the server when you're done. Also, I've assumed that you aren't running a firewall blocking the vnc port - if you can't connect you might want to check that out.

There's lots of other great options, like tunneling the VNC server through your SSH connection and setting up VNC as a startup item from the command line. Perhaps I can cover that in another article if anyone's interested.

As for me -- I'm Adam Lavelle -- Consultant and Trainer for MOST. I can be contacted at Adam[at]MostConsulting.com

 

Video Lan Client for streaming media (DVD, DiVX, MPEG)!

Filed under: Articles — dean at 07:01 PM on Jul 01, 2004

Sure, we all know Video Lan Client (VLC) as the best media player available for OS X.

  • Full support for DVD, DiVX, MPEG, Real Video*, Windows Media*, VCD, XviD, 3ivX
  • Boasts Multi-Channel sound output for awesome surround sound with your G5 optical out port
  • Full network file support
  • Open Source and Free
  • Platform Independent

Did you know Video Lan Client also will function as a streaming server?
Sure you could setup Video Lan Server (VLS) to stream video but really it's not necessary.

So let's cover the theory first:

Video Lan Client Streaming overview

For this demo I'll stick to streaming a DVD from my G5 (OS X 10.3.4 Panther).
After downloading the latest version, and launching the application you should see:

Now you're ready to watch your favorite movie, but lets look at streaming it too:

I'm going to check Advanced output, then click on settings.

Settings:

I've checked the stream option, set the type as HTTP, and added my IP address.
I'm going to leave the Port as 1234, and MPEG TS as the Encapsulation Method.

The play locally option will also show the movie on your computer.
Otherwise you won't see the media that you chose to stream.
Unless you've got a G4 or higher, I'd skip the play locally option.

Hit the OK button twice, and your streaming the file using HTTP.
You'll either see the movie on your machine, or just the progress indicator depending your play locally selection.

Address field notes: The address field can be either a unicast or multicast address.
Also, if you are using something other then HTTP, you would typically put the address of the client you are streaming to.

Transcode options: If network speed is a concern, consider transcoding your video to a lower bitrate.
Keep in mind, streaming a DVD using HTTP will likely use 4-9Mbps per client.

Stream Announcing: This applies more if you intend to stream with UDP and perhaps multiple media files at the same time.
For HTTP it's not an option.

It's as simple as that! Your ready to connect other VLC(s).

Assuming we've gone to another machine, and have launched VLC.
Choose the Open Network option.

Type the IP and Port (IP:PORT) addresses you specified earlier.

Hit OK and your now viewing the media streamed through HTTP!

Piece of cake right?

So perhaps you've noticed that the movie picks up at the location of the media file based on the streaming machine.
Since you don't have a remote, VLC ensures you can still pause, skip, or whatever.

On the streaming machine simply turn on the web interface:

Now you can connect to the machine and control everything.
Simply point your web browser to http://(IP Address):8080

Voila, you've got full control of the streaming machine!

 

Video Lan Client is an amazing program, that can easily be used for a variety of tasks.
Streaming a DVD is great, but how about streaming your latest office training video?
Perhaps you want to give people a sneak peak at the documentary you've been working on?

In this article we've really only scratched the surface of what VLC is capable of.
If you're interested in learning more check out www.videolan.org .

As for me -- I'm Adam Lavelle -- Consultant and Trainer for MOST. I can be contacted at Adam[at]MostConsulting.com

20 Network "Weak Spots"

Filed under: Articles — dean at 04:45 PM on Oct 02, 2002
Recently, the FBI released a list of Networking "Weak Spots" that hackers could exploit.

Windows


  • Internet Information Services (IIS),
  • Microsoft Data Access Components (MDAC)
  • SQL Server,
  • NETBIOS,
  • anonymous logon - null
    sessions,
  • LAN Manager Authentication,
  • General Windows authentication,
  • Internet Explorer (IE),
  • remote registry access,
  • Windows scripting host.


    Unix


  • Remote Procedure Calls (RPC),
  • Apache Web Server,
  • Secure
    shell (SSH),
  • Simple Network Management Protocol (SNMP),
  • File Transfer
    Protocol (FTP)
  • R-Services - trust relationships,
  • Line printer daemon (LPD),
  • Sendmail,
  • BIND/DNS,
  • General Unix authentication



    The best way to protect yourself is NOT to use any Microsoft Products if possible, and to make sure your servers have the latest Security Updates to Apache, and other Internet-available Services. Enjoy OS X!

  • Outstanding, Free Backup Utility! PSyncX!

    Filed under: Articles — dean at 11:30 PM on Sep 25, 2002
    Since the very first release of Mac OS X nearly eighteen months ago, one of the biggest headaches has been the lack of reliable, affordable, and easy-to-use backup utilities. One of the biggest gripes about OS X in comparision to OS 9is that its sophisticated set of file permissions makes drag-and-drop installs and backups impossible. OS X does come with a couple of command-line utitities: rsync and psync, that allow you to clone a bootable copy of one hard drive to another. However, command-line utilities are mostly for command-line afficianados: computer geeks.

    Now, however, there's a group of developers collaborating on Sourceforge.net, who've put a friendly face on PSync (PERL Sync) so that even a novice user can easily clone their startup disk to another drive. This open-source project has produced a gem of an application called PSyncX. Given the low cost of hard drives and firewire solutions these days, cloning a hard drive can be one of the fastest, most reliable, and affordable ways to make sure your OS X Mac or Server is ready to be booted off of a backup disk at the slightest sign of trouble. Even though the automated scheduler for backups isn't finished yet, it's quite clear that PSyncX will have that bug squashed in the next release, due any time. So, head on over to PSyncX on Sourceforge, download your copy, and backup that precious data! Enjoy OS X! Open Source Rocks!