Archive for the ‘osx’ Category

G4/G5 compiler options

Wednesday, March 8th, 2006

To optimize for G5 is easy:

$ CFLAGS=”-fast” ./configure

For G4 you probably want the following:

$ CFLAGS=”-fast -mcpu=7450″ ./configure

If you are compiling some shared libs or get the following error:

has local relocation entries in non-writable section (__TEXT,__text)

then add -fPIC to CFLAGS

Adding a user from the command line

Saturday, April 23rd, 2005

E.g. Adding a postgres user

# nicl . -create /users/postgres
# nicl . -createprop /users/postgres uid 502
# nicl . -createprop /users/postgres gid 502
# nicl . -createprop /users/postgres passwd ‘*’
# nicl . -createprop /users/postgres change 0
# nicl . -createprop /users/postgres expire 0
# nicl . -createprop /users/postgres realname ‘PostgreSQL User’
# nicl . -createprop /users/postgres home /usr/local/pgsql
# nicl . -createprop /users/postgres shell /usr/bin/false
# nicl . -createprop /users/postgres _writers_passwd postgres

cron output

Thursday, February 3rd, 2005

To receive output from daily cronjobs by email, you need to edit the file:

/etc/periodic.conf

First make a copy from /private/etc/periodic.conf
cp /private/etc/periodic.conf /etc/periodic.conf

Then make the following changes:

daily_output="email@address.com"
daily_show_success="YES"