Archive for ‘osx Server’ Category

Apple pulls out of Mac World 2010 and beyond…..

datePosted on 22:30, December 16th, 2008 by Many Ayromlou

Yep, you heard right……First they pulled out of NAB (last year) and now Mac World. Why you ask?….well in their own words:

Apple is reaching more people in more ways than ever before, so like many companies, trade shows have become a very minor part of how Apple reaches its customers. The increasing popularity of Apple’s Retail Stores, which more than 3.5 million people visit every week, and the Apple.com website enable Apple to directly reach more than a hundred million customers around the world in innovative new ways.

I don’t know, but I personally feel that it was atleast partially due to these very shows that Apple is enjoying the popularity it is now. For me, there were two times each year that I would clog up the net — along with millions of other — and watch the keynotes…..Mac World and WWDC. I wonder how long until they’ll turn WWDC into a virtual conference run entirely from Infinite Loop……

µTorrent (uTorrent), now available for OSX…..

datePosted on 12:47, November 27th, 2008 by Many Ayromlou

Finally. Now all of us macheads can have a (very) tiny bittorrent client too. Yes, I’m talking about the public beta of µTorrent (uTorrent) which was just opened today. Head over here and grab your copy. Sadly it’s 10.5 Intel only….

OSX: Time Machine backup to NAS

datePosted on 13:15, November 5th, 2008 by Many Ayromlou

Let me first state that this has been tried in my environment and it works. It might NOT work for you. Try it first and make sure your backups are clean and good. I have a OSX server (10.5.5 as of this writing) that needed to be backed up and am using a QNAP TS-409 PRO as my backup location. The QNAS has a AFP/SMB share called “Backup” where I keep all my backups. The server is configured with 2x80GB drives in raid-1 mode (mirror). Here is how I did it (again your milage may vary):

1) First we need to find out the MAC address of your server. I’m using one of the two ethernet ports on the server (en0) so I just open up a terminal window and type ifconfig en0 to get the MAC address. You’ll see something like this:saturn:~ mayromlo$ ifconfig en0
en0: flags=8863 mtu 1500
inet your.ip.address.here netmask 0xffffff00 broadcast your.network.broadcast.here
ether 00:19:e3:e8:2f:02
media: autoselect (100baseTX ) status: active
supported media: autoselect 10baseT/UTP 10baseT/UTP 10baseT/UTP 10baseT/UTP 100baseTX 100baseTX 100baseTX 100baseTX 1000baseT 1000baseT 1000baseT
saturn:~ mayromlo$

The line we’re interested in is the one starting with ether (line 5). Take down that number without the colons (ie: 0019e3e82f02 in my case).

2) Mount the AFP share on to your server. Mine is called Backup.

3) In a terminal window change your current directory to the AFP share (eg: Backup) and create a empty file called .MACaddressnumber, where MACaddressnumber is the number we jotted down under 1). saturn:~ mayromlo$ cd /Volumes/Backup
saturn:Backup mayromlo$ touch .0019e3e82f02
This hidden file is needed for every machine you want to Time Machine into your NAS. I’m backing up also workstations so I’ve got a couple of these hidden files.

4) Next we need to create a reasonably sized Sparsebundle file. This is where the actual backup gets done. The Sparsebundle doesn’t take a lot of space initially and grows as more files need to be backed up. For example I created a 80GB Sparsebundle file that was only 8MB large in reality, but grew to 20GB when I did the first backup. We need to create the Sparsebundle file on the local OSX machine (eg: OSX server in my case). Again this is important, Create the sparsebundle on a local OSX machine  NOT the network share. So open up a terminal and type the following to create the initial file: hdiutil create -size 80g -ov -fs HFS+J -type SPARSEBUNDLE -volname "Backup of Saturn" Saturn_0019e3e82f02.sparsebundleSo in the above example we have

  • -size 80g which specifies 80GB for our sparsebundle size
  • -ov to overwrite if the file exists
  • -fs HFS+J for format of our bundle which is Journaled HFS+
  • -type SPARSEBUNDLE which is self explanatory
  • -volname should be set to “Backup of hostname” whatever your hostname is
  • and last is the actual sparsebundle filename which consists of Hostname_MACaddress.sparsebundle
Make sure you get the filename proper or else nothing will work. Now transfer the sparsebundle file to your AFP share (eg: Backup in my case).

5) On the server issue the following command to enable Time Machine for Networked drives:defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
6) On the server in Finder goto Preferences and make sure “Connected Servers” is checked under “Show these items on the Desktop“.

7) Open up the Time Machine Preference panel and select the AFP share as your disk. Enjoy and please remember YOU ARE RESPONSIBLE FOR BACKUP INTEGRITY, SO CHECK YOUR BACKUPS TO MAKE SURE THEY ARE GOOD.

Command line Backup/Cloning/Imaging for OSX

datePosted on 14:48, October 26th, 2008 by Many Ayromlou

Okay so where do we start……yeah good old cpio and tar might be good enough for the true old timers who still back up to tape, but a lot of people these days backup to live Online/Nearline media such as disks. Here is a quick (and platform specific) reference to four backup commands that you should always carry in your back pocket when backing up OSX machines.

  1. Ditto is a command line util that comes with OSX. It’s a neat little application since it can preserve permissions, resource forks and extended attributes of OSX files when run as root. There are several ways of running ditto, but if you just want to clone your system using ditto here is the command:sudo ditto -X / /Volumes/Backup
  2. Rsync is the grand daddy of file syncing/backup utils out there and it comes with OSX as well. You can also use rsync to create a bootable clone of your system. sudo rsync -xrlptgoEv --progress --delete / /Volumes/BackupIn addition to basic copying, rsync can also sync the remote and local targets — ie: if a file gets deleted on the source it gets deleted on remote as well. In this mode rsync only copies files that have changed on the source, so after the initial backup, all subsequent “sync” operations will run very fast. In the above command the -E option is special for OSX, it tells rsync to copy extended attributes for the files being copied.
  3. Next is hdutil which allows you to create a image of your drive in a single file. Although the image is not bootable, it has the advantage of being contained in a nice/neat file. Here is the command to create a compressed disk image of your drive:sudo hdiutil create /Volumes/Backup/mymachinesimage.dmg -format UDZO -nocrossdev -srcdir /
  4. Last but not least is asr, the drive cloning util. This one works similar to ditto in creating a bootable clone of your drive, but it does this in block mode. Every block in the source drive is copied 1-to-1 to the destination drive. To clone your drive using asr use the following command:sudo asr -source / -target /Volumes/Backup -erase -noprompt Note that since your using asr in block copy mode you need to be able to unmount both the source and destination drives. So you can’t really use this command to clone your boot partition/volume. You can boot from a OSX DVD/CD and use this command from the command line.

That’s it…..Have fun backing-up……and do it often :-).

How to make a ISO out of a DMG file under OSX

datePosted on 17:01, September 22nd, 2008 by Many Ayromlou

Here is a quick command line for all you OSX ppl. If you’re ever in need of turning/converting a .dmg file into a .iso use the following command line:

hdiutil makehybrid -iso -o newfile.iso yourfilename.dmg

Where newfile is the name of the iso you want, and yourfilename.dmg is the dmg. Have Fun……

Eject your Mac’s CD tray from command line……

datePosted on 12:53, September 22nd, 2008 by Many Ayromlou

Yeah I know what you’re thinking…..who the heck would need that. Well since mac’s don’t have a physical CD eject button on the front plate (ie: eject is done by eject key), if you ever need to put a CD/DVD into a machine without keyboard (server machine and/or if you’re using teleport to share a keyboard/mouse) you’re in trouble. It turns out those Apple geniuses knew about this and gave you a way out…..just open up a terminal (or ssh to your server) and type the following command:
drutil eject

Remote OSX server install via Apple Remote Desktop or VNC….

datePosted on 12:11, August 28th, 2008 by Many Ayromlou

Came across this issue a few weeks ago and never got around to posting it until today. Yes, you can avoid using the Server Assistant program and go straight to ARD to install your server. For this to work your server and remote desktop machines need to be on the same subnet. You boot the server using the 10.5 CD/DVD and note it’s serial number. Now you need to find out the IP address of the server and connect to it from your remote desktop machine. For this, you can run ARD and scan the subnet and find your new server. Once you’ve found it connect to it and login using the first eight characters of the machines serial number and leave the username blank. This even works from Windows/Linux machines using VNC which is great for those who use Windows/Linux on their desktop.

Activate expanded Save and Print menu’s in OSX

datePosted on 15:42, August 25th, 2008 by Many Ayromlou

Here are two commands to activate the expanded Print and Save menu’s under OSX by default. You need to type these in a terminal window.

1) For expanded Print menu
defaults write -g PMPrintingExpandedStateForPrint -bool TRUE
Logoff and back in again to activate. Reissue the command replacing TRUE with FALSE to turn expanded functionality off.

2) For expanded Save menu
defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE
Logoff and back in again to activate. Reissue the command replacing TRUE with FALSE to turn expanded functionality off.

Enjoy and Have fun

Quick command line trick to make your Leopard stacks look nice….

datePosted on 15:30, August 25th, 2008 by Many Ayromlou

Here is a quick command to make Leopard’s stacks behave nicer when you move your mouse across the icons. You can type these two commands in terminal to activate the feature:
defaults write com.apple.dock mouse-over-hilte-stack -boolean YES
killall Dock

or alternatively if you don’t like the look, type the following in terminal to reset it back:
defaults write com.apple.dock mouse-over-hilte-stack -boolean NO
killall Dock

Access your MAC formatted disks under Windows

datePosted on 20:38, July 29th, 2008 by Many Ayromlou

Okay so it’s read-only access, but it’s Free :-). Have a look at HFSExplorer the next time you need to grab a file from that mac formatted firewire drive. It’s a little Java program that allows you full read access to any HFS+/HFSX formatted disk. It works nicely under boot camp to give you access to your OSX partition or even a MAC formatted IPOD. As a bonus the app even allows you access to HFS+ formatted .dmg files without any conversion……what more do you need??? Oh and did I mention it’s FREE.

12345678PreviousNext