Archive for the ‘Mac Tutorials’ Category

Transfer Time Machine Backups

Monday, June 28th, 2010

http://www.macworld.com/article/152179/2010/06/transfer_time_machine.html?lsrc=nl_mwweek_h_cbstories

Five unexpected uses for Copy and Paste in Snow Leopard

Tuesday, November 24th, 2009

Five unexpected uses for Copy and Paste

Use these commands in the Finder to manipulate more than just graphics and text

Sure, you copy (Command-C) and paste (Command-V) all the time. But did you know you can copy and paste a whole lot more than just text and graphics? When you start in the Finder, you can use the Copy command to lift all sorts of information from a selected Finder item: the item’s name; its icon; its pathname; its content; and, in effect, the entire file. What you get out of the operation depends on where you choose to paste. Here are some of my favorite tricks.

1. Quickly copy a file or folder’s name

You have a file named Docket#OCN-L-3854-09 and want to create a folder for it and related files. How do you do that without introducing a typo? Just select the file and press Command-C—you don’t even need to specifically select the name. Now create a new folder (Command-Shift-N), and while its name (“Untitled Folder”) is selected, use the Paste command.

If you need that docket number referenced in a document, select the file in the Finder, copy, and then go to your word processor and paste: there’s the name.

Bonus tip: Would you like a list of all the items in a folder? Open the folder, use Command-A to select everything in it, and then Command-C to copy them. Now switch to your word processor and paste to get a list of all the selected files.

2. Copy an icon from one file to another

I don’t like that by default both my e-mail and Web downloads go into the Downloads folder; I prefer them segregated. But after setting up a separate download folder through the general pane of Mail’s preferences, I’m stuck with its generic blue folder icon. Or, not.

It’s simple to copy and paste a file’s icon to customize a folder. In this example, click on the Mail application in the Applications folder and choose Edit -> Copy. Then select the new, plain e-mail downloads folder and use Command-I to open its Info window. Click on the icon in the Info window and then press Command-V. The Finder pastes the Mail icon over the default folder icon.

Copy and paste Finder icons
It’s simple to give a file or folder a new icon. At the top here you see the Get Info window before (background) and after (foreground) pasting in the new icon. At the bottom, you see the Finder’s window sidebar before and after an icon change.

3. Grab a file’s pathname

Need to use a file pathname? You don’t have to type out something like /System/Library/DirectoryServices/DefaultLocalDB/dsmappings. The alternative is a two-step process, but it’s quick, and guarantees accuracy. Select the file or folder, press Command-C, and then open Terminal (in your Applications folder). Press Command-V and the full path name appears at the Terminal prompt. Now you can select, cut, and then paste it wherever you need it.

4. Turn a file’s contents into a Preview document

Apple’s unsung workhorse, the Preview program, can open PDF files and a wide variety of graphics formats for viewing, annotation, or file-format changes. That means you can use it to put bookmarks in a PDF file, adjust the color or file format of almost any graphic file or photo, to annotate a Photoshop file, or even to mark up individual frames of a GIF. But you’ll probably want to work on a copy of your original file—particularly if, for example, you’re worried about mistakenly saving over the original document with markups.

There’s no need to open a file in Preview and then use Save As to make the copy. Instead, select the file while you’re in the Finder and copy it. Switch to Preview and use Command-N to activate the New From Clipboard command. Preview will create a new untitled document from the contents of the Clipboard—even if it’s a 200-page PDF file.

5. Paste a copy of a file wherever you need it

You can Option-drag a file or folder in the Finder to make a copy in a new location, but to do that you need both locations accessible at the same time. Instead, select the file in the Finder and copy it. Then open the perhaps deeply nested target folder and paste a copy of the file there.

Bonus tip: Once you’ve copied a file in the Finder, switch over to Mail and paste into a message window for a quick and easy way to attach the file to your message.

Copy music off your iPod with a MAC

Thursday, November 19th, 2009

Copy music off your iPod

It’s happened to the best of us: a hard drive crash takes our precious iTunes library down to Davy Jones’ Locker, and we either don’t have backups, or our backups are corrupted or out of date. If those files are on your iPod, however, you can restore them to your computer—with a little bit of work.

I’m so obsessive about my music collection that I keep two backups of my music, because Kirk’s First Rule of Computing is that you will, one day, lose your files. But let’s say something happens to your backups and you can’t get your music files restored. Apple doesn’t provide any way for you to copy files from your iPod back to your Mac. While there are legitimate reasons for blocking bi-directional copying—it would be simple to dump your entire music collection on a friend’s computer, for example—there are also good reasons why you might need to do so.

A friend of mine e-mailed me the other day asking how he could recover files from his iPod. There are several ways and utilities to help you, but let’s start with the easy and free way.

First, connect the iPod to your Mac; as soon as you do so, hold down the Command and Option keys, which will tell iTunes not to sync to your iPod. You’ll then see the iPod (but not iPhone or iPod touch) show up in the Finder sidebar. If you click it, to see its contents, you’ll see four folders by default: Calendars, Contacts, Notes and Recordings. But what you won’t see are any of the music files stored on your iPod; that’s because Apple has hidden them. You’ll need a way to display these hidden files in the Finder. If you’re comfortable using Terminal, you can run this command:

defaults write com.apple.Finder AppleShowAllFiles YES

Then hold down the Option key, click and hold the Finder icon in the Dock, and choose Relaunch. The Finder will quit, then restart and display invisible files. (After you’re all done, repeat the above Terminal command but replace YES with NO.)

If Terminal’s not your thing you can use a free utility such as Onyx to simplify this change in visibility. Click Parameters, then Finder, then check Show Hidden Files And Folders.


The contents of the iPod_Control folder, with its Music folder selected. The dimmed files and folders are normally hidden.

When you look at the contents of the iPod now, with hidden files displayed, you’ll see a folder called iPod_Control. Inside this folder are a number of sub-folders; double-click the Music folder to see more folders containing your music files. They are numbered from F00 to F50, and each one contains a number of music files. Look inside one of these folders; you’ll see cryptic names like “ACXD.m4a”. In other words, your music files don’t retain their original names; just another way to hide them from you.

If you’ve lost all your music, you can simply select all these folders (or the Music folder that contains them), and drag them into iTunes to copy all the files from your iPod back into iTunes. Your files will retain all of their tag information, but you won’t have your playlists.

If you’ve only lost some of your music, your best bet is to create a new playlist, then drag the music folders to that playlist. You’ll have to sort out which files are duplicates (you can select Library in the sidebar, then choose File -> Show Duplicates to find out), and delete the extras. There are also a bunch of utilities that can help you deal with dupes.

There are some limits to the above trickery, however. First, you can’t use this technique with an iPhone or iPod touch; they don’t show up in the Finder. Second, you can’t pick and choose what you want to copy, and you can only copy music files, not playlists.


Senuti compares the contents of an iPod with an iTunes library. Songs with blue dots at the left are already in the library.

To get around this, there are a number of utilities that can help, such as Findley Designs’ $20 iPod Access, KennettNet Software’s £10 Music Rescue, The Little App Factory’s $20 iPodRip, Sci-Fi Hi-Fi’s $8 PodWorks, or FadingRed’s $18 Senuti (many of these utilities also work on Windows PCs). Most apps look at the contents of your iPod—even an iPod touch or iPhone—and compares it with your iTunes library. They shows which tracks are not in the iTunes library, and let you copy the ones you want back to your Mac. Technorati Tags: , , , ,

Enabling and using the “root” user in Mac OS X

Sunday, November 15th, 2009

About the root user

The user named “root” is a special user in UNIX-style operating systems that has read and write privileges to all areas of the file system. The root user should only be used for specific administration or monitoring tasks. After completing a task as the root user, you should log out of Mac OS X and log back in using a normal or administrator account. You should disable root access if you do not use it often.

The root user does not appear in Users or Accounts preferences.

Important notes

  • Only the owner of a computer or its designated administrator(s) should have an administrator account or the root password.
  • Any user with an administrator account can become the root user or reset the root password.
  • A root password should be difficult to guess, containing both numbers and letters within the first eight characters.
  • A root user has the ability to access other users’ files.
  • The root user has the ability to relocate or remove required system files and to introduce new files in locations that are protected from other users.

How to enable the root user

Mac OS X v10.6 and later

  1. From the Apple menu choose System Preferences….
  2. From the View menu choose Accounts.
  3. Click on the lock and authenticate with an administrator account.
  4. Click Login Options….
  5. Click the “Edit…” button at the bottom right
  6. Click the “Open Directory Utility…” button.
  7. Click the lock in the Directory Utility window.
  8. Enter an administrator account name and password, then click OK.
  9. Choose Enable Root User from the Edit menu.
  10. Enter the root password you wish to use in both the Password and Verify fields, then click OK.

Note: If you are troubleshooting an issue that prevents you from logging in as an administrator, follow the steps in this article to enable the root user.

Mac OS X v10.5

  1. From the Finder’s Go menu, choose Utilities.
  2. Open Directory Utility.
  3. Click the lock in the Directory Utility window.
  4. Enter an administrator account name and password, then click OK.
  5. Choose Enable Root User from the Edit menu.
  6. Enter the root password you wish to use in both the Password and Verify fields, then click OK.

Note: If you are troubleshooting an issue that prevents you from logging in as an administrator, follow the steps in this article to enable the root user.

Mac OS X v10.4.x or earlier

  1. Click the Finder icon in the Dock.
  2. From the Go menu, choose Applications.
  3. Open the Utilities folder.
  4. Open the NetInfo Manager utility.
  5. Click the lock in the NetInfo Manager window.
  6. Enter an administrator account name and password, then click OK.
  7. For Mac OS X 10.2 and later, choose Enable Root User from the Security menu.
  8. For Mac OS X 10.0 and 10.1, choose Security from the Domain menu, then Enable Root User from the submenu.
  9. If you have not previously set a root password, an alert box may appear that says “NetInfo Error,” indicating that the password is blank. Click OK.
  10. Enter the root password you wish to use and click Set.
  11. Enter the password again for verification and click Verify.
  12. Click the lock again to prevent changes.
     

How to log in as root

Use these steps for Mac OS X v10.2 or later

  1. If you are logged in, choose Log Out from the Apple menu.
  2. If you are logging in from a list of usernames with pictures, click Other.
  3. In the Name field, type: root
  4. In the Password field, type the password you defined in the steps above.

Use thes steps for Mac OS X v10.0 to v10.1.5

After enabling the root user, you must log out from Mac OS X and log back in as the root user. Logging in to Mac OS X from a list of usernames is the default behavior for later versions of Mac OS X. Logging in by typing your username in a text entry field is the default behavior in earlier versions of Mac OS X. You can choose either method in Login preferences. The root user does not appear in the list, so you need the text entry option. If necessary, follow these steps to change the login method to text entry:

  1. From the Apple menu, choose System Preferences.
  2. From the View menu, choose Login.
  3. Click the Login Window tab.
  4. Select the radio button for “Name and password entry fields.”

Follow these steps to log in as root:

  1. If you are logged in, choose Log Out from the Apple menu.
  2. In the Name field, type: root
  3. In the Password field, type the password you defined in the steps above.


How to disable the root user
 

Mac OS X v10.6 and later

  1. From the Apple menu choose System Preferences….
  2. From the View menu choose Accounts.
  3. Click on the lock and authenticate with an administrator account.
  4. Click Login Options….
  5. Click the “Edit…” button at the bottom right
  6. Click the “Open Directory Utility…” button.
  7. Click the lock in the Directory Utility window.
  8. Enter an administrator account name and password, then click OK.
  9. Choose Disable Root User from the Edit menu. 

Mac OS X v10.5.x

  1. Click the Finder icon in the Dock.
  2. From the Go menu, choose Utilities.
  3. Open Directory Utility.
  4. Click the lock in the Directory Utility window.
  5. Enter an administrator account name and password, then click OK.
  6. Choose Disable Root User from the Edit menu.

Mac OS X v10.4.x or earlier

  1. Open NetInfo Manager. It’s in the Utilities folder.
  2. Click the lock.
  3. Enter the name and password for an administrator account, then click OK.
  4. For Mac OS X 10.2 and later, choose Disable Root User from the Security menu.
  5. For Mac OS X 10.0 and 10.1, choose Security from the Domain menu, then Disable Root User from the submenu.

What is the root directory?

The term root is used in two distinct ways: The “root user” and the “root directory.” The root directory is the highest directory level of a disk. The files and folders you see when you open (double-click) your hard disk icon are the contents of that disk’s root directory. A directory is represented graphically as a folder. You may know your home directory as your “home folder.” The terms “folder” and “directory” are generally interchangeable.

A user’s short name is also the name of his home directory.

The Finder and the Terminal show different contents for the root directory. Some items in the root directory are not visible in the Finder. This reduces visual clutter and enhances simplicity. If you are familiar with a UNIX-style command line you can use Terminal to view all items in a directory.

Screen Capture on a Mac

Tuesday, January 20th, 2009

There are few ways to do screen capture in Mac OS X.
Follow the steps below and you will be able to do a screen capture in Mac OS X.

  • Switch to the screen that you wan to to do screen capture
  • Hold down Apple key ? + Shift + 3 and release all
  • then use your mouse to click on the screen
  • Done. You will see a picture file in at your desktop. That’s the screen capture picture.

You can also do a screen capture for a portion of your screen.

  • Switch to the screen that you wan to to do screen capture
  • Hold down Apple key ? + Shift + 4 and release all key
  • Now, You will see the mouse cursor will change to +
  • You can start to drag your mouse to select the portion you wish to capture.
  • Once finish, you will see a picture file in at your desktop. That’s the screen capture picture!

If you want to do a screen capture for a particular application window, you can follow this:-

  • Switch to the screen that you wan to to do screen capture
  • Hold down Apple key ? + Shift + 4 and release all key
  • Now, You will see the mouse cursor will change to +
  • Press the space bar once
  • You will see the mouse cursor change to a camera
  • Now you can use the camera to select which application window to screen capture
  • Once finish, you will see a picture file in at your desktop. That’s the screen capture picture!