RSS feed
<< January 2007 | Home | March 2007 >>

OS X/*NIX Tips

OS X/*NIX Tips

  • diskutil repairPermissions / repairs permissions via the Terminal, same as using Disk Utility in the GUI.

  • When creating folders on OS X for WebDAV use, make sure the Owner is _www and the Group is staff.

  • Making Any App in the Dock Invisible.
    1. Right click on the app and choose show package contents.
    2. Open the Info.plist
    3. Look for a Child called NSUIElement, if there is not one create it under Root
    4. Change it's String Class to 1
  • sudo grep "failed to auth" /var/log/secure.log | sed "s/^.*user \(.*\) for.*$/\1/" | sort | uniq -c to quickly look for failed login attempts.

  • find <filename> -type f -mtime +10 finds files in a directory greater than 10 days old (in the example).

  • location of SquirrelMail config /usr/share/squirrelmail/config/conf.pl

  • location of Java "home" on OS X (example of 1.5 follows) /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
     
  • ssh -N -C -L 5271:server.example.com:548 -f server.example.com
     
  • Example of an SSH Tunnel that maps the local port to the destination followed by the port number on the host to be mapped to. -f backgrounds it. The last part is the remote hostname. Switches are: -N no shell; -C compression; -L port forwarding

  • Disable CrashReporter Dialog: defaults write com.apple.CrashReporter DialogType none
  •  
  • sudo update_prebinding -root / -force updates prebindings in the event of a failed update.

  • lsof -i:8005 will tell what processes are occupying this port.