Introduction
Intermediate to Advanced
Advanced: The Dark Arts
fink
Apache
MySQL
Start: sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &
Stop: sudo /usr/local/mysql/bin/mysqladmin -u root -p shutdown
A Quick and Easy Back Up Script
The actual script, backup-script:
Code:
#! /bin/bash
tar -cvzf /Users/michaeldesilva/My\ Files/OS\ X\ Files/Backup\ of\ Safari\ -\ Copy\ to\ ~\:Library/Safari.tar.gz /Users/michaeldesilva/Library/Safari/
tar -cvzf /Users/michaeldesilva/My\ Files/OS\ X\ Files/Backup\ of\ Address\ Book/AddressBook.tar.gz /Users/michaeldesilva/Library/Application\ Support/AddressBook/
tar -cvzf /Users/michaeldesilva/My\ Files/OS\ X\ Files/Backup\ of\ iCal\ Calendars/Calendars.tar.gz /Users/michaeldesilva/Library/Calendars/
$ chown 755 backup-script
Start a new file with nano using the '-w' flag to prevent line wrapping. If you do not have nano, perform a 'fink install nano' first
$ nano -w crontab.cron
Now copy the following into the crontab.cron file. You will need to update the location of the script accordingly.
Code:
# crontab.cron
# minute (0-59),
# | hour (0-23),
# | | day of the month (1-31),
# | | | month of the year (1-12),
# | | | | day of the week (0-6 with 0=Sunday).
# | | | | | commands
# ------{ daily cron jobs }------------ #
0 18 * * * /Users/michaeldesilva/Scripts/backup-script
Now add settings into crontab by performing the following
$ crontab crontab.cron
To check that the changes have taken place perform
$ crontab -l
Securing Your Mac
Setting up Open Firmware Password Protection --Update for Tiger
http://docs.info.apple.com/article.html?artnum=106482
Adding Users & Groups
Updating the SMB Workgroup
For a freshly installed issue of OS X, this machine will sit on the samba network @ 'workgroup'. What if you have a whole other network on a different name? Simple fix. Open up the Directory Access utility.
Click on the padlock icon and authorize with an admin account. Then click on SMB and configure and define what you want for the workgroup name and hit 'OK'. All done!
Troubleshooting
Reseting the PMU (Older Power Macs)
How to reset the SMU on a Power Mac G5 (Late 2004)
http://docs.info.apple.com/article.html?artnum=300341
If you have any content that you would like to contribute here please email it to mike@bsodmike.com please