Fink

Introduction

fink brings the Unix Open Source software to Darwin and Mac OS X.

They have a pretty good website and I basically just followed the 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 1) and I've gotten the idea on setting up disk images from 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 <filename> -megabytes 512  -partitionType Apple_HFSX -layout SPUD -fs HFSX -volname NetBSD

hditool mount <filename>

man hdiutil or hdiutil -h is your friend.

1) NetBSD does have a ffmpeg port included in their distribution.
 
wiki/fink.txt · Last modified: 06.11.2006 17:57 (external edit)