Revisiting the NeXT icon set for Mac OS X

As I have a system running Mac OS X Tiger, I thought I’d give the NeXT icon set a try again, nearly all sites hosting the components required have now all shut down, thankfully for the Internet Archive copies were saved.
You can obtain a copy of ShapeShifter from here
I’d mirrored the eXec theme which is now unfetchable because it was available as a download from within ShapeShifter. Download, uncompress & rename eXec.guikit to eXec.guiKit before opening.
My NeXT icon set is available here
The original NeXT theme is available from here.
The NeXT icon set applied to Tiger
NeXT icons

NeXT icon set & eXec theme
NeXT eXec

NeXT icon set & NeXT 2.0 themeNeXT Icon set & NeXT 2.0 theme

Everything seems ok on Mac OS X 10.4.11 apart from Safari which causes the original OS X skin to display on the menu bar when it’s the active application.

L2TP/IPsec VPN clients unable to authenticate after 10.7.3 update

If you’re finding users are unable to dial-in via L2TP/IPsec VPN after upgrading Lion Server to 10.7.3 then check /var/log/ppp/vpnd.log
If you’re seeing DSAuth plugin: Failed to retrieve MPPE encryption keys from the password server: errno -14484, ctxt 4 logged on dial-in attempts then you’ll need to adjust your password policy.
There is an Apple support article HT4748 which covers how to make this change.
Thanks to the user bobgeo on the Apple discussion forums for the pointer.

Running nwdiag on Mac OS X

nwdiag is a tool written in python for generating network diagrams from text files, rack diagrams can also be built using the bundled rackdiag utility.
nwdiag requires PIL built with freetype2 support, if this is missing you’ll receive the following error when you try to generate a diagram:
ERROR: The _imagingft C module is not installed.

Following the instructions in the README file included with PIL, once the build process completes you’ll receive a summary:
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform darwin 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
--------------------------------------------------------------------
--- TKINTER support available
*** JPEG support not available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------

It appears that freetype2 support is not built by default & I wasn’t paying enough attention so I missed the notice following the summary
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
.
After a brief search I came across this blog post which covered how to define the paths for the freetype library & header files.
Setting FREETYPE_ROOT in setup_site.py to
FREETYPE_ROOT = "/usr/X11/lib", "/usr/X11/include"
solved the problem & the summary listed --- FREETYPE2 support available when I reran the build process.
After that everything worked fine, the following config generated the image at the bottom of the page:
nwdiag {
inet [shape = cloud];
inet -- router;
router;
network office {
router;
"Mail server";
"Web server";
}
}

Network diagram generated using nwdiag

The project is still in its infancy and there are features missing for implementing common elements from a cisco discipline (like representing etherchannel) but it’s promising as you can put a simple diagram together very quickly.

Connecting to shared calendars on ical server using the Lightning extension for Thunderbird

To access a shared resource/location calendar on a iCal server from the Lightning extension for you’ll need the GUID for the calendar you wish to access, see my previous post on how to obtain it.

Once you’ve obtained the GUID, construct a url using the following convention (assuming you’re connecting to the server via SSL)
https://yourserver.somewhere.local:8443/calendars/__uids__/your-shared-cal-guid/calendar/
Switch to Thunderbird, go to File > New > Calendar…
Select “On the Network” from the wizard & press continue
Select “CalDAV” as the format & for the location specify the URL you constructed using the convention above & press continue.
Once you’ve specify a name for the shared calendar & pressed continue you should have access to the shared calendar.

Connecting to shared calendars on ical server using an iPhone

To access the shared resource/location calendar on a iCal server from an iPhone via the caldav protocol you’ll need the GUID of the shared calendar.

First, find the GUID of calendar on the server using the calendarserver_manage_principals command, eg
sudo calendarserver_manage_principals --search shared
1 matches found:

your shared cal (Resource)
GUID: 6x3331a8-as12-ea2x-4ou1-ndeb3ct4wa686
Record name(s): 6x3331a8-as12-ea2x-4ou1-ndeb3ct4wa686

Then on the iPhone (assuming the device is unmanaged), create a new CalDAV calendar account & fill in the correct server, username & password field & hit next.
Assuming everything went ok, you should be back on the “Mail, Contacts, Calendars” page, select the new calendar you just created & advanced settings.
Edit the “Account URL”, replacing the UID on the end of the url with the GUID of the shared calendar you noted down on the first step.
eg:
https://username@yourserver.somewhere.local:8443/principals/__uids__/6x3331a8-as12-ea2x-4ou1-ndeb3ct4wa686

CUPS generates “Internal server error” when visiting administration page

It seems that Mac OS Lion server (10.7.0) may have been released with a broken CUPS configuration. Visiting http://localhost:631/admin would generate an “Internal server error”, this seems to be addressed in newer builds (my Macbook Pro which was install from a 10.7.2 image does not exhibit the problem yet a customers server which came bundled with 10.7.0 (upgraded to 10.7.1 > 10.7.2) does).
To resolve the issue sudo cupsctl --debug-logging
Then switch off the debug logging with sudo cupsctl --no-debug-logging

I suspect the problem is due to a missing directory because comparing the default, previous & current revisions of the /etc/cups/cupsd.conf did not show anything that could cause problems.
I’d also go far as to say that you don’t need to turn on debug logging in-order to resolve this issue, it can be any of the options that can be set via cupsctl as it checks the configuration of the system, this is just a theory as I was unable to dig further because I was on a production system. Resetting the printing system did not solve the issue when attempted previously.

Unable to transfer voice memos from iPhone

I made a few recordings on my iPhone using the Voice Memos app but out of the three recordings I was only able to transfer one of them successfully into iTunes.
The way it’s meant to work is, if you connect your iPhone to your machine & select Music > Sync Music & tick the Include voice memos then when you sync your phone, your recordings should show up in a playlist in iTunes named Voice Memos.
Assuming your files have been processed correctly that is!

What happens is when you record your voice memos, they are saved as quicktime .mov files, then the app converts these to .m4a files afterwards. If you’re unlucky & this conversion process is interrupted e.g in my case I made these recordings on a iPhone 3G which meant no multitasking, switching out to another app meant that I was left with an incomplete m4a file which would never play or get imported, at the time I assumed this was due to the fact that the recording was too long for the iPhone but now that I’ve upgraded to the iPhone 4 & still experiencing the same problem I decided to look further.
I downloaded a demo version of PhoneView which gives you access to the files stored on your phone & fired it up, selecting the Voice Memos folder I could see my recordings which I selected & hit the “Copy From iPhone” button.
The file which transfered succesfully into iTunes previously played without a hitch, but the other two still wouldn’t play though file(1) reported all three files as:
ISO Media, MPEG v4 system, iTunes AAC-LC
Looking at the preferences for PhoneView I enabled “Advanced disk mode” to see if I could dig a little deeper
Advanced Disk Mode

After enabling this & selecting the Disk folder on the top left hand side I was given access to the filesystem on the phone, selecting the Recordings folder I could see .mov files of the two recordings which I couldn’t get to play so I copied them out & gave them a try in quicktime, these turned out to be the intact recordings.
View of the iPhone filesystem via advanced disk mode

Deleting the .m4a versions & reopening the Voice Memo.app restarted the conversion process again.
Voice Memos.app processing recording, converting from mov to m4a file

Running rndc without specifying a port on Mac OS X

The stock BIND config on Mac OS X (both client & server versions) is set to listen on TCP port 54 for control commands via rndc(8), the rndc utility however doesn’t have a config file, so it defaults to using TCP port 953, this mean it has to be invoked with -p 54 to work properly, to rectify the issue create /etc/rndc.conf & add the following to it
include "/etc/rndc.key";
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 54;
};

GnuCash for OS X

These packages are broken, I will upload the metapackages which include the dependenices when the option works in macports (it’s not atm!!), I apologize for wasting anyones time with these!!

Now that GnuCash is included with with Darwin Ports AKA MacPorts
I’ve made a precompiled disk image to make the installation that little bit easier (the dependency list is quiet big & it takes a while to compile)
I’ve also tweaked the original GnuCash Launcher Michael Elliot made so it works with the version of GnuCash made with Darwin Ports / MacPorts (his version was for Fink & the drag & drop file feature didn’t work on tiger)
You can grab the moded launcher here

You’ll need to install the Apple X Server from your OS X Install disks if you want to use the Launcher.
To use GnuCash you’ll need a X Server installed, either the Apple version from your OS X Disks or XFree86 from Fink or Darwin Ports AKA MacPorts
You can grab a precompiled version of XFree86 4.5.0 from here

Running Chillispot on OpenBSD, NetBSD & Mac OS X

*** 08/07/06 – Update, the patch just allows Chillispot to build successfully, tun.c needs some more patching before chillispot will work. Sorry 🙁 ***

I have made a patch which will enable Chillispot compile & run on OpenBSD, NetBSD & Mac OS X.

The patch has been tested working on the following versions of O/S’s
OpenBSD 3.9
NetBSD 3.0-STABLE & -CURRENT
Mac OS X 10.4.7
though it should work on previous versions aswell.

To build Chillipot 1.0 first download & extract Chillispot.
Then copy the patch into the Chillispot directory & issue:
patch -p1 < chillispot -1.0.patch

You should get the following result:
patching file src/chilli.c
patching file src/dhcp.c
patching file src/redir.c
patching file src/syserr.c
patching file src/tun.c

For NetBSD & OpenBSD:
Now run ./configure with the relevant switches e.g.
./configure --sysconfdir=/etc --localstatedir=/var
then for OpenBSD: run make install chilli_LDFLAGS=""

For Mac OS X:
Run make install chilli_LDFLAGS="-lcrypto -lresolv"
If compiling fails with the following error:
redir.c: In function 'redir_accept':
redir.c:1400: error: nested functions are not supported on MacOSX
redir.c:1406: error: nested functions are not supported on MacOSX
make[2]: *** [redir.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

then you’re using GCC 4.0.1, use gcc_select to switch to GCC 3.3 by running gcc_select 3.3 then rerunning make. When you’re done you can switch back to GCC 4 by running gcc_select 4.0 surprise surprise!!! 🙂

Booting straight to the console on Mac OS X

The guide on O’reilly Network covering howto bypass the OS X GUI doesn’t seem to work on 10.4.x (I haven’t verified it on previous versions yet), as the guide mentions you need to uncomment the first console entry & comment out the second entry in /etc/ttys

You then need to goto /etc/mach_init.d/ & remove WindowsServer.plist
I highly recommend that you move the file into somewhere else instead (I moved mine into /etc as it’s alot easier to roll back).

Once you’ve rebooted & logged in you should find that the system stays at the shell instead of jumping to a blank blue screen with a cursor.

Surprise, More Benchmark results

This time from a £300 Dell Dimension 3000 running OS X 10.4.4 with a 16MB TNT2 m64 PCI graphics card installed as the onboard card is not supported.

compare results here

Results 47.91
System Info
Xbench Version 1.2
System Version 10.4.4 (8G1171)
Physical RAM 512 MB
Model ADP2,1
Drive Type SAMSUNG SP0401N
CPU Test 50.12
GCD Loop 71.35 3.76 Mops/sec
Floating Point Basic 68.36 1.62 Gflop/sec
vecLib FFT 29.68 978.99 Mflop/sec
Floating Point Library 57.23 9.97 Mops/sec
Thread Test 95.33
Computation 70.31 1.42 Mops/sec, 4 threads
Lock Contention 147.98 6.37 Mlocks/sec, 4 threads
Memory Test 69.75
System 60.54
Allocate 45.84 168.33 Kalloc/sec
Fill 83.04 4037.70 MB/sec
Copy 63.72 1316.09 MB/sec
Stream 82.27
Copy 79.54 1642.87 MB/sec
Scale 79.94 1651.63 MB/sec
Add 85.41 1819.49 MB/sec
Triad 84.52 1808.05 MB/sec
Quartz Graphics Test 36.45
Line 33.85 2.25 Klines/sec [50% alpha]
Rectangle 23.61 7.05 Krects/sec [50% alpha]
Circle 25.20 2.05 Kcircles/sec [50% alpha]
Bezier 66.73 1.68 Kbeziers/sec [50% alpha]
Text 94.28 5.90 Kchars/sec
User Interface Test 36.60
Elements 36.60 167.97 refresh/sec
Disk Test 38.91
Sequential 71.79
Uncached Write 44.16 27.11 MB/sec [4K blocks]
Uncached Write 91.29 51.65 MB/sec [256K blocks]
Uncached Read 78.80 23.06 MB/sec [4K blocks]
Uncached Read 106.13 53.34 MB/sec [256K blocks]
Random 26.69
Uncached Write 8.84 0.94 MB/sec [4K blocks]
Uncached Write 68.24 21.85 MB/sec [256K blocks]
Uncached Read 74.52 0.53 MB/sec [4K blocks]
Uncached Read 115.52 21.44 MB/sec [256K blocks]

More Benchmark Results

XBench results from my G4 PowerMac with SATA disks installed

compare results here

Results 19.38
System Info
Xbench Version 1.2
System Version 10.4 (8A428)
Physical RAM 640 MB
Model PowerMac3,1
Processor PowerPC G4 @ 450 MHz
Version 7400 (Max) v2.8
L1 Cache 32K (instruction), 32K (data)
L2 Cache 1024K @ 225 MHz
Bus Frequency 100 MHz
Video Card ATY,R350
Drive Type WDC WD1200JS-55NCB1
CPU Test 20.67
GCD Loop 43.58 2.30 Mops/sec
Floating Point Basic 14.04 333.48 Mflop/sec
vecLib FFT 22.79 751.85 Mflop/sec
Floating Point Library 18.04 3.14 Mops/sec
Thread Test 21.41
Computation 19.39 392.84 Kops/sec, 4 threads
Lock Contention 23.90 1.03 Mlocks/sec, 4 threads
Memory Test 14.00
System 18.66
Allocate 46.73 171.62 Kalloc/sec
Fill 18.49 899.16 MB/sec
Copy 11.72 242.17 MB/sec
Stream 11.20
Copy 10.54 217.72 MB/sec [altivec]
Scale 10.65 219.94 MB/sec [altivec]
Add 11.91 253.66 MB/sec [altivec]
Triad 11.84 253.26 MB/sec [altivec]
Quartz Graphics Test 23.58
Line 21.31 1.42 Klines/sec [50% alpha]
Rectangle 19.14 5.71 Krects/sec [50% alpha]
Circle 20.11 1.64 Kcircles/sec [50% alpha]
Bezier 30.81 777.20 beziers/sec [50% alpha]
Text 32.61 2.04 Kchars/sec
OpenGL Graphics Test 28.94
Spinning Squares 28.94 36.71 frames/sec
User Interface Test 9.87
Elements 9.87 45.29 refresh/sec
Disk Test 60.80
Sequential 80.24
Uncached Write 98.83 60.68 MB/sec [4K blocks]
Uncached Write 105.54 59.72 MB/sec [256K blocks]
Uncached Read 45.87 13.43 MB/sec [4K blocks]
Uncached Read 118.21 59.41 MB/sec [256K blocks]
Random 48.94
Uncached Write 18.52 1.96 MB/sec [4K blocks]
Uncached Write 110.22 35.28 MB/sec [256K blocks]
Uncached Read 90.48 0.64 MB/sec [4K blocks]
Uncached Read 131.51 24.40 MB/sec [256K blocks]

b0 error

You’ll receive this error if you have partitioned your disk using the 10.4.4 Disk Utility, using a Windows 98 Bootdisk run
fdisk /mbr
then run fdisk & make the partition you installed OS X on active & reboot, OS X should boot now without any probs 🙂

NeXT Iconset for OS X

I stumbled across an old post on the NIA forum which featured a link to a review for a NeXT theme for OS X
Unfortunately the theme doesnt work with Tiger, but using a combo of eXec theme for ShapeShifter & the NeXT iconset for ShapeShifter which I made using ThemePark you can get a pretty cool desktop

The NeXT Iconset contains itomato’s NeXT flavour pack icons which I resaved (as Preview has issues opening some of the .icns files) using Iconographer & the NeXT Desktop Hue from the NeXT theme for OS X

The end result is this!
eXec theme for ShapeShifter + my NeXT Iconset

Overlapped Extent Allocation Errors (File 123465x) Fix

Due to a lack of disk space I decided to zap my /System & /Library folders while my PowerBook was in Target Disk mode & connected to my G4 PowerMac, only to find out that I couldnt install Tiger when I got the PowerBook home 🙁
Running Disk Utility & trying to repair the disk brought up several Overlapped Extent Allocation Errors (File 123465x)

After laying a few bricks here & there as I hadn’t backed up (surprise! surprise!!!) I googled around & came up with this

As Keoneo mentions in the 3rd tip, if you make a note of the file numbers DiskUtility complains about, fire up terminal.app & run find / -inum 123456 (dont worry about any of the letters at the end of the file number)
You’ll be given the file name of the offending file number, unfortunately you cant actually delete the individual file, you have the delete the folder which the file is in by typing the following command in terminal.app rm -rf /path/to/offending/file/
If you are doing all this from the OS X install Disk or if you have connected the broken disk/System to a healthy Mac add /Volumes/*disk_label*/ to the beginning of the path e.g if your broken disk is called "Macintosh HD" you would issue the follwing command
rm -rf /Volumes/Machintosh\ HD/path/to/offending/file/
note the backslash between the word Macintosh & HD, you need to have that in so the shell understands that whatever you are referring to has a space in otherwise it treats the text either side of the space as two seperate things which wont work!!
Once you have removed the offending files, run repair disk in Disk Utility again & all should be well again!! 😀

Verify and Repair disk "Macintosh HD"
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Incorrect number of thread records
Checking Catalog hierarchy.
Checking Extended Attributes file.
Checking volume bitmap.
Volume Bit Map needs minor repair
Checking volume information.
Invalid volume file count
(It should be 29573 instead of 466435)
Invalid volume directory count
(It should be 5662 instead of 80007)
Invalid volume free block count
(It should be 5920335 instead of 1269081)
Volume Header needs minor repair
Repairing volume.
Rechecking volume.
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Checking Catalog hierarchy.
Checking Extended Attributes file.
Checking volume bitmap.
Checking volume information.
The volume Macintosh HD was repaired successfully.
Mounting Disk

1 HFS volume checked
Repair attempted on 1 volume
1 HFS volume repaired

Running Solaris 9 on Mac Virtual PC

Solaris 9 normally wont allow you to install onto a virtual machine on Virtual PC, it bombs out with the error
486 Processor Detected
This Processor is not supported by this release of Solaris

Thanx to this simple hack found on Kernel Thread its possible to install Solaris 9 without a hitch on VPC

Simply run the following commands against the .iso of the install CD or Software #1 CD:
perl -pi -e 's#Pentium II#ff/08.....#g' filename.iso
&
VPC 6 users: perl -pi -e 's#GenuineIntel#ConnectixCPU#g' filename.is
or
VPC 7 users: perl -pi -e 's#GenuineIntel#Virtual CPU #g' filename.iso