OsX

Reference

Samba performance under Mac OS X

I have a NetBSD/i386 3.0 file server at home running Samba 3.x. Read and write access from NetBSD and Windows XP clients is fast (although, under the NetBSD clients, NFS performance wins).

Unfortunately, reading large files from Mac OS X is incredibly slow. Adding the following to /etc/sysctl.conf solves this annoying problem:
net.inet.tcp.delayed_ack=0
This configuration file does not exist in a default installation so simply create it from scratch. rc(8) takes care of it automatically.

Give an NTFS drive an icon

Finally I found a methode to give my NTFS windows drive a different icon.
Normally this is not possible because the drive is not writeable and icon information is stored on the drive itself.

This is the methode:

1. Format a USB stick/drive in OSX as FAT

2. Download an icon from the web, and put it in clipboard by selecting it and do the copy command. (windows keyboard: ALT-C / apple Command-C)

3. Select the USB stick/drive and get the info of it. (windows keyboard: ALT-I apple Command-I)
Now click on the little icon on the upper left so its getting selected.
Choose paste by doing ALT-V/command-V. The icon is now changed to the new icon

4. Open Terminal and type cd /Volumes followed by [Enter], then type ls -al
You see a file wich has the same name as the USB device but with ._ in front of it.
For example: ._USB
Copy this file and give it the same name as the windows NTFS drive.
Example: cp ._USB ._WindowsXP (Caution: if you have spaces in the volumenames then put it between quotes!)

5. Reboot your computer and boot in Windows. Now copy the file .VolumeIcon.icns from the USB stick/drive and put this in the root of your windows drive.

6. Now boot in OSX and your drive has an own icon!
## Burn an .iso file to disc
to burn an ISO image to disc, here's what to do:
Insert a blank disc.
Start Disk Utility.
From the File menu, choose Open Disk Image and select the ISO to be burned.
In the list of volumes, you will now see an item representing the ISO file. Select it.
Click the Burn button and follow the instructions.
That's it! Sure, it may seem simple enough, but when you've been using Linux and Windows utilities for years, these steps can be a little perplexing and hard to remember.

Make a .dmg file

Suppose you have:
1. Folder of content
1. Background image file for that folder, in the folder.
1. Icon for dmg, anywhere.

To make disk image (with background, and with custom image icon):

1. Open Disk Utility
1. Images-->New-->Blank Image
  1. leave it on read/write disk image
  1. leave it on Encryption: none
  1. Size: select a size somewhat larger than the size of the folder (since the available space is less when formatted).
  1. Save As: This is the name for the mounted Image. Choose a good name for your disk image. It can contains spaces, etc., but you will not be able to change this later (You will only be able to change name of .dmg file).
1. Move your folder contents into the empty disk image that you just created (and it automatically mounts after the previous step).
1. From the finder while you are viewing the opened image, Apple-J (View-->Show View Options)
  1. Use the icon view
  1. Select: This Window Only
  1. Select desired icon size
  1. Select Background: Picture, then choose the file that is *INSIDE* your disk image. There are a variety of ways to hide this file, such as in hidden folders beginning with ".", or using blank or camoflauged icons and space " " file names with hidden extensions in Get Info.
1. Apply the custom icon to your disk image, if desired. (Get info, and paste it in... 128x128).
1. Arrange icons & window size as desired, and close window.
1. Go back to Disk Utility, and in the left window click to select the .dmg (not the disk image that is hanging off of it). 
1. Select Images--> Convert...
1. Choose a new filename for the converted (final) .dmg file. Note that the name of the mounted image itself will remain unchanged.
  1. Select Compressed, then go ahead & convert.
1. Voila, you are finished.

[::BootCamp]

Remap your keyboard.
Use Input Remapper http://www.olofsson.info/index.html?inputremapper.html
disable the apple keyboard drivers though... ? http://forum.insanelymac.com/index.php?showtopic=27211

Now everything should be working.


In its default state, the Mac keyboard reverses the Alt and Windows keys. If you want to switch them to their proper Windows places (or fill any other remapping need), download and install the Windows Server 2003 Resource Kit Tools from the Microsoft Download Center(just do a search for "rktools" to find the appropriate link). This suite of utilities includes a Remap Key program which allows you to drag and drop keys from the Base keyboard to the Remapped keyboard


Lilt - triggers with the macbook sensors
http://homepage.mac.com/jonn8/lilt/

Email Extensions

Miscellaneous

OsX crisis links.



Hotkeys

"Press X during startup" = Force Mac OS X startup
"Press Option-Command-Shift-Delete during startup" = Bypass primary startup volume and seek a different startup volume (such as a CD or external disk)
"Press C during startup" = Start up from a CD that has a system folder
"Press N during startup" = Attempt to start up from a compatible network server (NetBoot)
"Press T during startup" = Start up in FireWire Target Disk mode
"Press Shift during startup" = start up in Safe Boot mode and temporarily disable login items and non-essential kernel extension files (Mac OS X 10.2 and later)
"Press Command-V during startup" = Start up in Verbose mode
"Press Command-S during startup" = Start up in Single-User mode
Finder window
"Command-W" = Close Window
"Option-Command-W" = Close all Windows
"Command-Right Arrow" = Expand folder (list view)
"Option-Command-Right Arrow" = Expand folder and nested subfolders (list view)
"Command-Left Arrow" = Collapse Folder (list view)
"Option-Command-Up Arrow" = Open parent folder and close current window
Menu Commands
"Shift-Command-Q" = Apple Menu Log out
"Shift-Option-Command-Q" = Apple Menu Log out immediately
"Shift-Command-Delete" = Finder Menu Empty Trash
"Option-Shift-Command-Delete" = Finder Menu Empty Trash without dialog
"Command-H" = Finder Menu Hide Finder
"Option-Command-H" = Finder Menu Hide Others
"Command-N" = File Menu New Finder window
"Shift-Command-N" = File Menu New Folder
"Command-O" = File Menu Open
"Command-S" = File Menu Save
"Shift-Command-S" = File Menu Save as
"Command-P" = File Menu Print
"Command-W" = File Menu Close Window
"Option-Command-W" = File Menu Close all Windows
"Command-I" = File Menu Get Info
"Option-Command-I" = File Menu Show Attributes Inspector
"Command-D" = File Menu Duplicate
"Command-L" = File Menu Make Alias
"Command-R" = File Menu Show original
"Command-T" = File Menu Add to Favorites
"Command-Delete" = File Menu Move to Trash
"Command-E" = File Menu Eject
"Command-F" = File Menu Find
"Command-Z" = Edit Menu Undo
"Command-X" = Edit Menu Cut
"Command-C" = Edit Menu Copy
"Command-V" = Edit Menu Paste
"Command-A" = Edit Menu Select All
"Command-1" = View Menu View as Icons
"Command-2" = View Menu View as List
"Command-3" = View Menu View as Columns
"Command-B" = View Menu Hide Toolbar
"Command-J" = View Menu Show View Options
"Command - [" = Go Menu Back
"Command - ]" = Go Menu Forward
"Shift-Command-C" = Go Menu Computer
"Shift-Command-H" = Go Menu Home
"Shift-Command-I" = Go Menu iDisk
"Shift-Command-A" = Go Menu Applications
"Shift-Command-F" = Go Menu Favorites
"Shift-Command-G" = Go Menu Goto Folder
"Command-K" = Go Menu Connect to Server
"Command-M" = Window Menu Minimize Window
"Command-?" = Help Menu Open Mac Help
"Command-Space" = Open Spotlight (Mac OS X 10.4 or later)
"Command-Alt-Space" = Open Spotlight Guide (Mac OS X 10.4 or later)
"F12" = Opens Dashboard (Mac OS X 10.4 or later)
Universal Access and VoiceOver
"Option-Command-* (asterisk)" = Turn on Zoom
"Option-Command-+ (plus)" = Zoom in
"Option-Command-- (minus)" = Zoom out
"Control-Option-Command-* (asterisk)" = Switch to White on Black
"Control-F1" = Turn on Full Keyboard Access When Full Keyboard Access is turned on, you can use the key combinations listed in the table below from the Finder.
"Control-F2" = Full Keyboard Access Highlight Menu
"Control-F3" = Full Keyboard Access Highlight Dock
"Control-F4" = Full Keyboard Access Highlight Window (active) or next window behind it
"Control-F5" = Full Keyboard Access Highlight Toolbar
"Control-F6" = Full Keyboard Access Highlight Utility window (palette)
"Command-F5 or fn-Command-F5" = Turn VoiceOver on or off (Mac OS X 10.4 or later)
"Control-Option-F8 or fn-Control-Option-F8" = Open VoiceOver Utility (Mac OS X 10.4 or later)
"Control-Option-F7 or fn-Control-option-F7" = Display VoiceOver menu (Mac OS X 10.4 or later)
"Control-Option-; or fn-Control-option-" = Enable/disable VoiceOver Control-Option lock (Mac OS X 10.4 or later)
Mouse Keys
"8" = Move Up
"2" = Move Down
"4" = Move Left
"6" = Move Right
"1, 3, 7, 9" = Move Diagonally
"5" = Press Mouse Button
"0" = Hold Mouse Button
". (period on keypad)" = Release Mouse Button (use after pressing 0)
Other Commands
"Option-Command-D" = Show/Hide Dock
"Command-Tab" = Switch application
"Command-Up Arrow" = Move up one directory
"Command-Down Arrow" = Move down one directory
"Page Up or Control-Up Arrow" = Move up one page
"Page Down or Control-Down Arrow" = Move down one page
"Option-Drag" = Copy to new location
"Option-Command-Drag" = Make alias in new location
"Command-Drag" = Move to new location without copying
"Command-C" = Show Colors palette in application
"Command-T" = Show Font palette in application
"Command-Shift-3" = Take a picture of the screen
"Command-Shift-4" = Take a picture of the selection
"Command-Shift-4, then press Control while selecting" = Take a picture of the screen, place in Clipboard
"Command-Shift-4, then Spacebar" = Take a picture of the selected window
"Option-Command-esc" = Force Quit
"Control-Eject" = Restart, Sleep, Shutdown dialog box
"Control-Command-Eject" = Quit all applications and restart
"Option-Command-Eject or Option-Command-Power" = Sleep
"Command-click window toolbar button (upper right corner)" = Cycle through available views for the window's toolbar (dependant on the nature of the Finder or application window)
"Command-`" = Cycle through windows in application or Finder (if more than one window is open)
"Function-Delete (PowerBook, iBook only)" = Forward Delete (delete the character to the right of your cursor)