SSH to your remote machine using Back to My Mac iCloud Service

Apple, CLI, Macintosh, OSX, osx Server, ssh, XServe
This is kinda cool. It only works if you have access to "Back to My Mac" service and you have it turned on in the remote mac's preferences (under iCloud preferences). If you ever need to find out the FQDN (Fully Qualified Domain Name) of your remote mac and connect to it via ssh or something like it you can use the following command in the terminal: echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p' This should spit out the "domain name" for your "personal" iCloud DNS. The output looks something like this: 12345678.members.btmm.icloud.com To use this in a ssh command you would need the name of the remote machine plus the information above: ssh -2 -6 remote-hostname.12345678.members.btmm.icloud.com That's it…..you should see a prompt for ssh login…
Read More

Using iCloud to sync files just like dropbox

Apple, iCloud, ipad, iPhone, iPod, iPodTouch, Macintosh, OSX, osx Server, XServe
If you didn't know, iCloud has a really neat feature that allows it to act just like dropbox. If you activate the "Document & Data" synching option in the iCloud pref panel, it allows you to sync any file using iCloud. This is contrary to what Apple is selling the service as being just for "Custom" Apps that have the iCloud feature (i.e.: keynote, numbers, etc.). So here is how you take advantage of this. Once you've turned on the feature in the preferences panel, you open up Finder. Hold down the "option/alt" key and from the finder menus choose "Go/Library". This should land you in your not so secret Library directory. You need to hold down the option key to see this, since OSX Lion hides the users Library…
Read More

Adding mcrypt support to builtin php5 on OSX Leopard….

Apache, Apple, Macintosh, OSX, osx Server, php, Server, XServe
I got a request to add mcrypt support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install mcrypt using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add mcrypt support to php. This is NOT the…
Read More

Adding GD support to builtin php5 on OSX Leopard….

Apache, Apple, Leopard, Macintosh, osx Server, php, XServe
I got a request to add GD support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install GD using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add GD support to php. This is NOT the…
Read More

How to set the Boot Volume from CLI in OSX

CLI, Macintosh, OSX, XServe
I've run into this issue a number of times a year, including today again, and I have to dig up the email I sent to myself last year with the command line in it. If, like us, you have a bunch of headless Xserves and you're trying to (re)install OSX on them you might have run into this. How the heck do you change the boot volume to the CD/DVD in the drive when you have no keyboard/mouse access or remote desktop? Well turns out it's quite simple (as usual). Just issue the command below from a ssh session (make sure the install CD/DVD is in the drive first):Run diskutil list to make note of the CD drives partition number (usually /dev/disk1s2 if the system has one Hard drive only).Run…
Read More

Bigdisk…

Apple, Final Cut Pro, Xsan, XServe, XServe Raid
I did not get a chance to post this last night as I was totally smashed. At 7:43 pm last night this was the scene in our machine room. A happy XSAN of 13TB being burned in for the next 12-hours. It's 9:30 am now and I just stopped my abusive dd command (dd if=/dev/zero of=/Volumes/RAID/crap.null bs=32m count=4096000). The filesize is 10TB with a 220MB/s write throughput (non-optimized) and I think the system has passed the test. Now for the real test Final Cut Pro Editing......
Read More