Duplicating service settings under OSX Server…

Apple, CLI, Macintosh, osx Server
This mainly applies to how you deal with a backup DHCP server and it's configuration, but might also be useful for backing up other service settings. One of the things that kinda bugs me about how some services are configured in OSX Server is the fact that the configurations are stored in the directory. For example, if you have a DHCP server servicing a subnet with a ton of reservations hardcoded in it, there is no way of editing and/or moving the information from the command line (ie: there is no single config file that contains the current configuration) to another server. That's where the "serveradmin" commandline program comes to rescue. If you have two identical servers (ie: both running the same OSX server version), you can use serveradmin to…
Read More

MySQL Replication howto for Snow Leopard…

Apple, Macintosh, mysql, osx Server, Sysadmin, Tip
We recently upgraded our servers from old XServe G5's running Tiger to the latest greatest running Snow Leopard. In this small howto I will deal with the procedure I followed to setup mysql master-slave replication between two new servers. I start out with two (master, slave) empty DB's, setup the replication and then import my data from a third server (my old G5 X-Serve). Of course like anything else I will try to show you how to get out of -- what I like to call -- Steve Jobs Hell Holes :-). There are other ways of doing this procedure, for more info check out this page. - First things first....the magic command that stops mysql server from command line, just in case you screw something up and need to…
Read More

Restarting into Mac OS X using the command line, when running Windows…

Apple, Macintosh, OSX, osx Server
Okay so this only works in Boot Camp 3.0+ which comes with Snow Leopard (10.6). If you ever find yourself in Windows and need to quickly -- using command line -- change your boot option to reboot into OSX (process known under OSX as blessing) you can use the following command:c:\progra~1\Bootca~1\bootcamp.exe -StartupDisk "Mac OS" Shutdown /r /t 0This will reboot your windows session and boot the machine back using the Volume named "Mac OS". If you omitt -StartupDisk option, then the system will boot into the first Mac OS X volume located by BootCamp.exe. Done :-)
Read More

Forcing 64-bit mode when booting OSX 10.6 (Snow Leopard)…

Apple, Macintosh, OSX, osx Server
You all probably know about the trick with holding down 6 and 4 keys on your keyboard to force OSX 10.6 to boot using the 64-bit kernel. What you might not know is that it's temporary and the next time you reboot, you're back to using the 32 bit kernel. Now I can't guarantee that your machine will not catch fire and blow up (just kidding).....but if you know what you're doing and want to have 64-bit kernel goodness all the time you can do the following:sudo vi /Library/Preferences/SystemConfiguration/com.apple.Boot.plistModify the file to make it look like this:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>Kernel</key><string>mach_kernel</string><key>Kernel Flags</key><string>arch=x86_64</string></dict></plist>basically add "arch=x86_64" (without the quotes) to the line that reads<string></string>That's it....reboot and enjoy Full 64-bitness....to undo this (if something breaks), edit the…
Read More

Screen Sharing on mac the easy way……

Apple, Macintosh, OSX, osx Server
Well, you learn something new everyday. I was always under the impression that you needed Apple Remote Desktop application to connect to a mac that was sharing it's screen (or vncviewer app). Today I stumbled across another way of doing this without any of these apps......just using the build in "Screen Sharing" application. The easy way (and how I stumbled across this) was to open up Finder/Go/Connect to Server menu option (Apple-K) and type vnc://remote.server.dns.name.or.ip in the "server address" field. This is something that works nicely under Linux (gnome desktop) and I always wanted it in mac......well it was there all along.....And for the command-line junkies there is a even easier way. Open up terminal and type the following command to connect to the remote server:open vnc://remote.server.dns.name.or.ipNICE :-)
Read More

The man behind the Mac Chime…….

Apple, Macintosh, OSX, osx Server
OMT in San Francisco #3: 'Let it beep' from One More Thing on Vimeo.Really cool video of Jim Reekes talking about his thought process in designing sounds for the mac, including the big fat C major chord which your mac plays every time you start it. Jim Reekes was a programmer at Apple Computer for 12 years. His work has significantly affected operating systems, most notably System 7 and QuickTime. He also is responsible for creating many of the system sounds for the Macintosh operating system. Some of the most famous creations during that time were the Mac startup sound and the system sound sosumi. Full 1 hour video can be seen on Youtube.
Read More

How to stream live HDV/DV to iphone…..

Apache, HDV, iPhone, iPodTouch, Linux, Macintosh, OSX, osx Server, Video, VLC
In this guide I'll show you how to stream live HDV/DV video to your iphone using a linux box (Ubuntu 9.10) with firewire input running vlc/ffmpeg and a Imac with OSX 10.6.2 running mediastreamsegmenter and apache2. Start out with the iPhone streaming media overview. Without understanding this document you'll have a hard time getting things working. First things first, you need to have a working Ubuntu 9.10 machine. I'm using a small footprint 2.4Ghz Core2Duo machine with PCI firewire 400 card in it. For video input I'm using a Canon HV30 set to HDV mode (1080i/60) connected via firewire. Next you need to follow the instructions on this page (steps 0-5) to get a working ffmpeg with x264 and aac encoding. Without this working you're not going anywhere....sorry. If you're…
Read More

iPhone Explorer turns your iPhone/iTouch into a USB stick…..

Apple, iPhone, iPodTouch, Macintosh, OSX, osx Server, Windows
One of the original reasons I bought my first ipod (first gen 5 Gig) was that I could hook it up to my mac and use it as a firewire drive. I could literally run around with this in my pocket and boot OSX off the ipod. Well that came to an end with the intro of iPhone/iTouch. Apple took the "disk mode" out. Well that was then, go grab a FREE copy of iPhone explorer and all that USB stick functionality can be your again. Oh, and did I say there is no need for Jail Break either :-)Features:100% Free iPhone browser for Mac and Windows100% Drag-and-drop interface for easily copying files to and from your iPhoneCreate, delete and rename files and folders on your iPhone or iPod TouchWorks…
Read More

Movist…..will it be the next VLC for mac….

Apple, Macintosh, Opensource, OSX, osx Server, Video, VLC
The answer to that is maybe, we'll see. But all that aside if you're interested in a minimalistic video player that can handle more codecs than VLC and is generally faster then give Movist a try.The unique thing about the player is that it allows you to switch codec engines between ffmpeg and quicktime based on file extensions. Oh and did I say it's FREE aswell :-).
Read More