Posts Tagged ‘apple’

Restarting Apple Remote Desktop from the Command Line

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Posted: March 28th, 2011
Categories: macosx, os
Tags: , ,
Comments: No Comments.

Changing the Apple Time Machine Backup Interval

Time Machine Backups interval is setup for every 3600 seconds/60 minutes/1 hour. To verify, change and confirm your Time Machine Backup Interval, here is what you need to do.

Check the current interval:

sudo defaults read /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval

Change to new interval every 5 hours:

sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 18000

Confirm:

sudo defaults read /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval
Posted: March 5th, 2010
Categories: macosx, os
Tags: , ,
Comments: No Comments.

Starting VMware Fusion from the Command Line

open /Applications/VMware\ Fusion.app/Contents/MacOS/vmware
Posted: January 4th, 2010
Categories: fusion, macosx, os, virtualization, vmware
Tags: ,
Comments: No Comments.

Write Chinese Characters using Trackpad on Mac

From http://www.apple.com/macosx/refinements

Innovative Chinese character input.

Until Snow Leopard, if you wanted to enter Chinese characters on a computer, you had to type in the phonetic spelling of Chinese words and the computer would convert them into proper Chinese characters. Snow Leopard offers a breakthrough new way to enter characters: You write them directly on the Multi-Touch trackpad in your Mac notebook. They’ll appear on the screen in a new input window, which recommends characters based on what you drew and lets you choose the right one. The input window even offers suggestions for subsequent characters based on what you chose.

 

Mac Chinese Trackpad

Posted: January 4th, 2010
Categories: macosx, os
Tags: , ,
Comments: No Comments.

Recovering Lost Apple iPhoto Pictures during a failed iPhone Photo Import

During a iPhoto import from my iPhone, my iPhoto froze. The only thing I could do was execute a force quit. Unfortunately half the photos originally on my iPhone were deleted.

To recover those photos from my iPhone, I launched the terminal and went to the ~/Pictures/iPhoto Library/Data/2009. Within the directory, I saw the date stamp for today and I was able to recover my photos.

 

cd ~/Pictures/iPhoto Library/Data/2009
Posted: December 14th, 2009
Categories: macosx, os
Tags: ,
Comments: No Comments.

MacOS X 10.6 Snow Leopard 64 Bit Kernel

Although MacOS X 10.6 Snow Leopard is 64 bit capable. Turns out your Mac may not be using the 64-bit kernel.

Check if your system is 64 bit capable. Running the following command should show EFI64.

ioreg -l -p IODeviceTree | grep firmware-abi | awk '{print $5}'

Confirm the kernel loaded is or is not using the 64 bit kernel extensions. Running the following command will show either Yes or No.

system_profiler | grep -i 64-bit

Three options to enable the 64 bit kernel

Option 1 – Hold down the 6 & 4 keys when your Mac is booting.

Option 2 – Add the arch=x86_64 entry to the com.apple.Boot.plist file to automatically boot up using the 64 bit kernel.

Modify /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
add arch=x86_64 under Kernel Flags
Example:
<key>Kernel Flags</key>
<string>arch=x86_64</string>

Option 3 – Run the systemsetup utility.
systemsetup -setkernelbootarchitecture x86_64

Alternative method to identify if the kernel is 64 bit.

# uname -a with 64 bit not enabled
Darwin mac 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
# uname -a with 64 bit enabled
Darwin mac 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:35:19 PST 2009; root:xnu-1486.2.11~1/RELEASE_X86_64 x86_64
Posted: December 2nd, 2009
Categories: macosx, os
Tags: ,
Comments: No Comments.

Unmounting Disk via CLI on Mac

hdiutil unmount /dev/disk1s1
Posted: November 30th, 2009
Categories: macosx, os
Tags: ,
Comments: No Comments.

Safari Full Screen / Maximize Window, Resize Window, Email link, Print link, Open a New Window “button” for Safari

Safari Resources (from http://www.jydesign.com/safari)

Tools for Safari: Full Screen / Maximize Window, Resize Window, Email link, Print link, Open a New Window “button” for Safari, and more.

Full Screen: How can you make your Safari Browser window quickly expand to fill your full screen? Easy, just drag and drop the link below to your bookmarks bar OR bookmarks folder. Then click on it and the simple JavaScript will expand your browser to fill all available screen real estate. Drag this link to your bookmarks bar/folder* (feel free to edit the name of the bookmark):

Full Screen

Resize Browser Window: Automatically resize your browser window to various standard screen resolutions in order to see how pages will appear (similar to many Firefox plugins). Drag these link to your bookmarks bar or put them in a ‘browser sizes’ folder:

640×480
800×600
1024×768
1280×1024
1600×1200

Print “Button”: Want a mouse-happy way to print the page you are looking at?
Drag this link to your bookmarks bar/folder (feel free to edit the name of the bookmark):

Print

GmailThis!: “is an easy way to make a Gmail email without visiting mail.google.com. Once you add the GmailThis! link to your browser’s toolbar, emailing will be a snap. Or rather, a click. Clicking GmailThis! creates a mini-interface to Gmail pre populated with a link to the web page you are visiting, as well as any text you have highlighted on that page. Add additional text if you wish and then email or save as draft from within GmailThis!” (Source: thanks to “From the Hall” blog for this cool link code):

GmailThis!

digg this: “universal JavaScript Bookmarklet, which will automatically submit the URL of the page your browser is currently on, to Digg” (Source: thanks to “Skatter Tech” for this cool link code):

digg this

New Window “Button”: Want a mouse-happy way to open a new browser window?
Drag this link to your bookmarks bar/folder (feel free to edit the name of the bookmark):

New Window

Mail to / Email Page “Button”: This is a simple way to email a link to a friend and it even places the title of the current page into the subject field.*
NOTE: I’ve had this one up for a while, it’s not really necessary now that Safari has two different mailing options available via the File menu.
Drag this link to your bookmarks bar/folder (feel free to edit the name of the bookmark):

Mail

Posted: November 20th, 2009
Categories: macosx, os
Tags: ,
Comments: No Comments.

Resetting PRAM on Mac

From http://support.apple.com/kb/HT1379

- This has been known to clear up Macbook Pro Airport WiFi issues.

Resetting PRAM and NVRAM

  1. Shut down the computer.
  2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
  3. Turn on the computer.
  4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
  5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
  6. Release the keys.

Your computer’s PRAM and the NVRAM are reset to the default values. The clock settings may be reset to a default date on some models.

Posted: November 12th, 2009
Categories: apple, notebook
Tags: ,
Comments: No Comments.

Removing .DS_Store from Network Drives

Removing the .DS_Store files already created on your network drive. In the example below, specifically only list the smbfs based mount points.

#!/bin/bash
FS=smbfs
for mountpoint in `mount | grep ${FS} | awk '{print $3}'`
do
for mp_file in `find ${mountpoint} -name .DS_Store -fstype ${FS} -exec ls {} \;`
do
ls -lh "${mp_file}"
rm -fv "${mp_file}"
done
done
Posted: November 5th, 2009
Categories: macosx, os
Tags: ,
Comments: No Comments.