====== Fink ====== ===== Introduction ===== [[sf>fink]] brings the Unix Open Source software to [[http://www.opensource.apple.com/|Darwin]] and [[http://www.apple.com/macosx/|Mac OS X]]. They have a pretty good [[http://fink.sourceforge.net/|website]] and I basically just followed the [[http://fink.sourceforge.net/download/index.php?phpLang=en|install instructions]]. I don't recall if the fink installer can set-up disk-images during the installation process, but before going finky I tried NetBSD ports ((NetBSD does have a ffmpeg port included in their distribution.)) and I've gotten the idea on setting up disk images from [[http://netbsd.org/Documentation/pkgsrc/platforms.html#darwin|them]]. ===== Basics ===== Don't be scared if you've never typed a command into your mac's terminal. Just pop up the the Finder: Applications -> Utilities -> Terminal In good old mac fashion you you will be presented with a terminal window when you start it the first time and in you can create your new windows (shells) via the Menu-bar or the icon. type lsEnter for a start :-) the basic idea is that wiki-boxes like the following represent commands to be typed into a terminal window: cd /Applications ls -l help man locate less -N /etc/motd top The first word on each line is an executable (eg. ''man'' is tool to browse manual pages). The remainder are arguments or modifiers that are passed to the command: in this case we want to read the manual page of the ''locate'' command. I'll leave it to you to google "os x unix tutorial" and be sure to read up on "everything is a file". Note: press q (//quit//) to terminate the ''top'' or ''less'' command. ====== OSX shell snipplets ====== ===== hdiutil ===== I needed to use a HFSX (or UFS) disk-image in order to install fink gnu-software. (I think it has sth. to do with case sensitive file names and links..) you can automate the disk-image creation by using the shell script ''pkgsrc/bootstrap/darwinimage.sh'' from env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc/bootstrap read ''pkgsrc/bootstrap/README.Darwin''. it basically does the following: hdiutil create -megabytes 512 -partitionType Apple_HFSX -layout SPUD -fs HFSX -volname NetBSD hditool mount ''man hdiutil'' or ''hdiutil -h'' is your friend.