Mac OS X (Tiger and Leopard) Configuration Tips
Last modified on Sat, 22 Mar 2008 03:56:24 GMT
Note: I add items to this list when I discover configuration tips that I personally find useful. It is not meant to be a comprehensive list of everything you can do to customize OS X; it is mainly a record so I remember what customizations I've performed, so I can potentially undo them later and/or repeat them on new computers or after major OS upgrades. Good resources for more Mac OS X configuration tips are macosxhints, lifehacker, and secrets – most of the tips I've listed here were either found at one of those sites initially or have ended up archived there later.
Contents:
- SYSTEM:
- Change the default login shell
- Run the Mac OS X maintenance scripts
- Fix garbled fonts
- Set view options for the Desktop
- Use cron to schedule automatic tasks
- Make printers exit after finishing (Leopard only)
- Change Dock appearance (Leopard only)
- Show full directory path in Finder windows (Leopard only)
- Stop asking for confirmation before opening a downloaded file (Leopard only)
- TERMINAL AND X11:
- Recover when X11 freezes while scrolling
- Make focus follow mouse in Terminal
- Make focus follow mouse in X11 (using quartz-wm)
- Enable click-through in X11 (using quartz-wm)
- Configure a large xterm window in X11
- Disable starting an initial xterm when X11.app is started (Leopard only)
- OTHER APPLICATIONS:
- Set iChat to automatically accept incoming video invitations
- Change the highlight color in Preview
- Rotate individual PDF pages in Preview
- Change the default web browser
- Use Front Row without an Apple remote (Leopard only)
- Stop auto-switching in Spaces (Leopard 10.5.2+ only)
Recover when X11 freezes while scrolling Problem: When using an xterm or other X11 program (e.g., vim), aggresive (i.e., rapid and/or continuous) scrolling with the middle mouse wheel can cause X11 to freeze. This is a known bug in the Apple X11 software.
Solution 2:
Solution 3: If all else fails, then select Force Quit from the Apple menu, and kill the X11 program. WARNING: this will lose changes to any unsaved files. OS Version Compatibility: Tiger; untested in Leopard, but probably works. It's possible that this issue was fixed in 10.4.3+ and/or that it only occurs when using a Logitech USB mouse. Change the default login shell Problem: The “factory set” default login shell for Mac OS X (Panther+) is bash. Some users may wish to use other shells (e.g., tcsh is popular). Set iChat to automatically accept incoming video invitations Problem: You want iChat to automatically accept any incoming video chat invitation. This can be useful for keeping an eye on things at home when you are away (what are my cats doing right now?) or to help out less technologically savvy people (e.g., grandma). In AIM, this is a standard preferences settings, but in iChat it does not show up in the preferences menu. Make focus follow mouse in Terminal Problem: By default, mouse focus for Terminal is determined by clicking on the desired window, but it is often more convenient to have the focus automatically follow the mouse to any window. Make focus follow mouse in X11 (using quartz-wm) Problem: By default, mouse focus in X11 is determined by clicking on the desired window, but it is often more convenient to have the focus automatically follow the mouse to any window. Enable click-through in X11 (using quartz-wm) Problem: Clicking on an unfocused X11 window only focuses the window, but does not perform any additional action implied by the click (e.g., pasting text selected in another window). Configure a large xterm window in X11 Problem: The default xterm window in X11 is small with a very tiny font. Change the highlight color in Preview Problem: The highlight color in the Preview application is difficult to see; also, search terms don't appear to be highlighted in the viewed document. Run the Mac OS X maintenance scripts Problem: Mac OS X is a UNIX-based system, built specifically on FreeBSD. UNIX systems run scheduled maintenance routines to clean up a variety of System logs and temporary files. By default, these are executed between 03:15 and 05:30 local time, depending on the script. If your Mac is shut down or in sleep mode during these hours, the maintenance scripts will not run. This results in log files that will grow over time, consuming free space on your Mac OS X startup disk. If your Mac is shut down or left in sleep mode overnight, you should invoke these maintenance routines manually on a regular basis. Solution: Manually running the maintenance scripts – Using an admin account, you can execute all three maintenance scripts at once by issuing the following command in a Terminal or xterm (X11) window. Determining when the maintenance scripts last ran – You can check the date and time stamps of the log files associated with each maintenance script, which indicates when the scripts were last executed. Use the command
OS Version Compatibility: Tiger and Leopard. Fix garbled fonts Problem: Fonts in PDF or postscript files appear fine on screen, but are garbled when printed. Solution:
This removes system font cache files that can become corrupted. OS Version Compatibility: Tiger; untested in Leopard, but probably works. Set view options for the Desktop Problem: The Desktop can become crowded with icons. Which one is a PDF file? Which one is an image? Where's that file I just downloaded? I don't know! Help me! Rotate individual PDF pages in Preview Problem: Some PDF files contain a mix of portrait and landscape pages. Preview contains obvious functions (Rotate Left or Rotate Right in the Tools menu or on the toolbar) that will rotate all of the pages from one format to the other, but how can you rotate only certain pages? Use cron to schedule automatic tasks Problem: How can I schedule some tasks (like backing up one disk to another) to occur automatically on a regular basis?
The first line of the crontab file is a commented header line (indicated by a leading #). The specified tasks begin on the second line. Entries in columns are separated by tabs. In this example, the command in the first task line (to execute my disk backup script) is executed at 03:15 (i.e., 15 minutes after 3am) on every day of the week (wday) for every day (mday) of every month (month). The asterisks are read as “every”. As further examples, the second task line would execute its command at 03:15 only on the 1st day of every month. The third task line would execute its command at 03:15 on the 6th day of every week. The fourth task line would execute its command every 15 minutes. Allowed values for the crontab parameters are 0–59 for minute, 0–23 for hour, 1–31 for mday, 1–12 for month, and 0–7 for wday (0 and 7 are Sunday). The month and wday values can also be specified using the first three letters of the month or day name (e.g., “Jan” for January or “Thu” for Thursday). Ranges and (comma-separated) lists are allowed. For example, 8–11 in the hours column would run the associated command at hours 8, 9, 10, and 11. A list of 1,2,5,9 in the hours column would run the associated command at hours 1, 2, 5, and 9. Once the crontab file and the associated script file(s) have been created and stored in the specified locations, you must initiate the cronprocess by issuing the command crontab /Users/{login name}/.crontab (substitute your own name for your crontab file). The command crontab -r will stop the execution of cron tasks. The command crontab -l will list all of the currently schedulued cron tasks. I have found that cron will occasionally stop on its own (possibly associated with incremental software updates to the operating system), so it is a good idea to run crontab -l occasionally to make sure that your crontasks are still running. OS Version Compatibility: Tiger and Leopard. Change the default web browser Problem: I don't want to use Safari as my default web browser (e.g., for downloading URL-linked attachments in emails). How can I change the default web browser? Make printers exit after finishing Problem: Under Tiger (and earlier versions), when a print job finished, the printer utility would automatically quit and the associated icon would vanish from the Dock. Under Leopard, the default behavior is for the printer utility to remain active, with its icon in the Dock. How can I make the Leopard printer utility quit when it is done printing? Change Dock appearance Problem: Aaaargh! I hate the transparent, 3-D, glossy Dock in Leopard! What can I do? Use Front Row without an Apple remote Problem: Wow! Front Row is really cool! I can hardly wait to look at all of the files on my computer by flipping through a rotating display of album covers, photo thumbnails, etc. But, alas! My Mac did not come with an Apple Remote! Can I still Use Front Row? Show full directory path in Finder windows Problem: By default in Leopard, the title in a Finder window is set to the currently viewed folder. How can I make the title be the full directory path to that folder (i.e., similar to what would be returned by the Unix pwd command)? Stop auto-switching in Spaces Problem: Spaces is great and all, but it forces me to sort by applications instead of tasks. For example, if I select {application} from the Dock, then it automatically switches me to the virtual desktop space in which I first started {application}. However, what I really wanted was to start another instance of {application} running in my current virtual desktop space. Assigning {application} to all desktops in the Spaces preferences isn't the solution, because then Spaces just drags around all {application} windows onto all desktop spaces. Disable starting an initial xterm when X11.app is started Problem: Leopard's implementation of X11 is not intended to be started from the Applications/Utilities menu (as it was in Tiger). Instead, X11 is automatically started on demand when an X application is started. X11 can still be started by itself by double-clicking on the X11.app icon in the Applications/Utilities folder, but this will also automatically start an xterm. Under Leopard, there is no systemxinitrc file that can be edited to disable starting that initial xterm. Please make it stop! Stop asking for confirmation before opening a downloaded file (Leopard only) Problem: Leopard tags files downloaded from the web, and asks for confirmation before running a downloaded application or script. While this does provide a default layer of security against running downloaded programs, it is also annoying for people who already exercise an appropriate level of caution about trusting downloaded software. (Note that this feature of Leopard does not do anything with regard to checking downloaded files for viruses, preventing malicious software from running, etc. – all it does is remind you that it was downloaded - and require an extra button-click - before the application or script can start). How can I disable this behavior? |
Mac OS X Configuration Tips
Last modified on Sat, 22 Mar 2008 03:56:24 GMT by hoard@ipac.caltech.edu
Back to my Home Page