Wednesday, November 5, 2008

How to use your iPod to move your music to a new computer

How to use your iPod to move your music to a new computer

  • Last Modified: September 24, 2008
  • Article: HT1329
  • Old Article: 300173

Summary

Got a new computer and want to move your entire iTunes library? Starting with iTunes 7 there is a new backup feature that will archive your entire library to CD or DVD, including ratings and playcounts, which can be moved to another computer. If you are interested in moving your library using this method click, here.

If you do not have access to a CD or DVD burner then there is another option if you own an iPod. Because your iPod contains a high-capacity hard drive, you can use it to move all your music from your old computer to the new one.

Note: While you can use the Transfer Purchases from iPod option under the File menu to copy iTunes Store purchases from the iPod to another computer, you can't transfer songs from other sources from the iPod library to iTunes, so you'll need to follow the steps below to use iPod as a hard disk to transfer music files from one computer to another. This process will require the use of iTunes 7 on all computers. Any computers running iTunes 6 or earlier will need to be updated to follow these steps. Download the latest version of iTunes here. Once you have the files transferred, you'll need to authorize any iTunes Store content. If you won't be using your old computer, you'll want todeauthorize it.

Important: Windows operating systems don't recognize Mac OS-formatted disks (HFS or HFS Plus formats), so you can't use a Mac-formatted iPod to move your music to a Windows PC. See "iPod: How to determine iPod's hard disk format" if you're not sure what format your iPod is.

Products Affected

iTunes 7 for Mac, iTunes 7 for Windows, iPod, Microsoft Windows

Switch the iPod to manual update and enable disk use

The first thing you need to do is make sure have configured your iPod to enable disk use. To do this:

  1. Open iTunes on your old computer.
  2. Connect your iPod to your old computer and wait for it to appear in iTunes.
  3. Select your iPod in the Source pane under the Devices section to display your iPod preferences in the main library window.
  4. Click the Summary tab in the main iTunes window.
  5. Click the Manually manage music button. Changing from automatic updating to manual puts a check mark by Enable disk use. A message says
    "Disabling automatic update requires manually unmounting the iPod before each disconnect."

  6. Click OK in the message window.
  7. Click Apply in the iPod preferences section of the iTunes window.

Is all the music together?

To make the move as easy as possible, be sure your music is all in one place.

  1. Open iTunes Preferences:
    Mac: From the iTunes menu, choose Preferences.
    Windows: From the Edit menu, choose Preferences.
  2. Click Advanced and then click General.
  3. Look to see if the checkbox for "Copy files to iTunes Music folder when adding to library" is selected. If it is, skip ahead to Is there enough room on the iPod. If it is not, continue to step 4.
  4. Select the "Copy files to iTunes Music folder when adding to library" checkbox.
  5. Click OK. Note: Clicking OK will cause iTunes to copy all of your music files to another location on your computer. You will need to manually remove the files from their previous locations if you are concerned about space. If your computer does not have enough hard-drive space this process will not work correctly. Please speak to your computer manufacturer or Microsoft for more information on how to obtain more space to perform this action.
  6. From the Advanced menu, choose Consolidate Library. A window appears reading: "Consolidating your library will copy all of your music into the iTunes music folder. This cannot be undone."
  7. Click Consolidate.

Is there enough room on the iPod?

iPod shares its hard disk space between the songs that iTunes puts on it and any files you've added when using its disk mode. To transfer music with your iPod, you need enough free space to hold a copy of all your music files in addition to any copies that may already have been placed by iTunes (this is because non-purchased songs placed on the iPod by iTunes cannot be copied off the iPod while in disk mode). To figure out how much space you have on your iPod:

  1. Open iTunes on your old computer.
  2. Click on Music in the Source pane. The size of your library appears at the bottom of the iTunes window:
  3. Connect your iPod to your old computer and wait for it to appear in iTunes.
  4. Click the iPod under the Devices section of the Source pane.
  5. The amount of free space on the iPod appears near the bottom of the iTunes window:
  6. If the amount of free space left on your iPod is larger than your library, skip to Copy iTunes folder to iPod.

Free up space on the iPod

If your library is larger than the amount of free space on your iPod, you'll need to free up some space on it. Here's how:

  1. Click your iPod in the Source pane.
  2. Click on the Music option listed under iPod in the Source pane. (If you do not see this option, click the gray arrow next to the iPod to reveal the iPod's contents)
  3. Click any song that appears in the main part of the iTunes window (to the right).
  4. From the Edit menu, choose Select All.
  5. Important: The next step will delete all music from your iPod. If you have been using automatic update you don't need to worry, because all your music is also on your computer. If you have not been using automatic update, and your iPod has music on it from another source (other than your iTunes library), following the next step will delete that music.
  6. Press Delete on the keyboard. If you see a message that says "Are you sure you want to remove the selected items from the list?", click Yes.

Copy iTunes folder to iPod

To copy all your music files (including the library file that holds all your playlists and other settings) to your iPod:

  1. Quit iTunes.
  2. Locate your iPod:
    Mac OS X: On the desktop
    Windows: In My Computer
  3. Locate your iTunes folder:
    Mac OS X: /Users/username/Music
    Windows: \Documents and Settings\username\My Documents\My Music\
  4. Drag the iTunes folder to the iPod. This can take a while if you have a lot of songs.

    From your old Mac to the iPod

    From your old Windows PC to the iPod
  5. When the copy completes open iTunes.
  6. Click on the iPod in the Source pane
  7. Click the Eject button in the lower right corner of the iTunes window.
  8. Disconnect the iPod from the computer when the "Do not disconnect" message no longer appears on the iPod screen.

Get iTunes ready on your new computer

To get iTunes ready to accept all your music on your new computer:

  1. Download and install the latest version of iTunes.
  2. Open iTunes on your new computer. If this is your first time to open iTunes on your new computer you will need to choose your options in the iTunes Setup Assistant.
  3. Connect the iPod to your new computer.

Backup any music that's already on your new computer

Do you already have some music showing up in your Library in iTunes on the new computer? If so follow these steps to make sure this music gets saved (You can see how to add it back into iTunes in the Adding music on new computer back in section below). If not you can skip down to the Copy music to new computer section.

  1. Open iTunes Preferences Mac OS X:
    From the iTunes menu, choose Preferences.
    Windows: On the Edit menu, click Preferences.
  2. Click the Advanced tab.
  3. Click the Reset button next to iTunes Music folder location.
  4. Make sure the checkbox next to Copy files to Music folder when adding to library is checked.

  5. Click OK.
  6. From the Advanced menu, choose Consolidate Library. An alert message appears: "Consolidating your library will copy all of your music into the iTunes music folder. This cannot be undone."
  7. Click Consolidate.
  8. Quit iTunes.

Copy music to new computer

To copy all your music files (including the library file that holds all your playlists and other settings) to your new computer:

  1. Locate your Music folder (Mac OS X) or your My Music folder (Windows) on your new computer:
    Mac OS X: /Users/username/Music
    Windows: \Documents and Settings\username\My Documents\My Music\
  2. Drag the iTunes folder in this location out to the desktop.

    From the Music folder to the Desktop on your new Mac



    From the My Music folder to the Desktop on your new PC

  3. Locate the iPod on the new computer:
    Mac OS X: On the desktop.
    Windows: In My Computer.
  4. Double-click on the iPod to open it.
  5. Drag the iTunes folder from the iPod to the Music folder (Mac OS X) or My Music Folder (Windows) on your new computer. This can take a while if you have a lot of songs.

    From the iPod to the Music folder on your new Mac

    From the iPod to the My Music folder on your new PC
  6. Open iTunes.

There you go. All your music, playlists, and other information like play counts and ratings have all been moved from your old computer to your new one.

Add existing music on new computer back in

If you already had some music on your new computer, and you want to incorporate it into the music you just moved from your old computer:

  1. From the File menu in iTunes, choose Add to Library (Mac OS X) or Add Folder to Library (Windows).
  2. Navigate to the iTunes folder on your Desktop.
  3. Click Choose (Mac OS X) or OK (Windows).

Note: Information like ratings and play count are not preserved for these songs.

Free up room on the iPod

To free up room on your iPod so iTunes can put all your music back on it:

  1. Quit iTunes.
  2. Drag the iTunes folder out of the iPod to the Trash (Mac OS X) or Recycle Bin (Windows).
    Mac OS X: From the File menu, choose Empty Trash.
    Windows: A Confirm Folder Delete window appears. Click Yes.

Switch the iPod back to automatic update

To set up your iPod to be updated with all your music from iTunes on your new computer:

  1. Open iTunes.
  2. Select your iPod in the Source pane and click the Music tab that is available on the right in the iPod Settings.
  3. Click the “Sync music” option, and the “All songs and playlists” option. An alert message appears:
    "Are you sure you want to enable automatic updating? All existing songs and playlist on the iPod "ipod name" will be replaced with songs and playlists from the iTunes music library."

    Optional: Uncheck the Enable disk use button in the Summary tab if you don't want to use the iPod as a disk. If you leave this option checked you need to eject your iPod from iTunes before you disconnect the iPod from your computer.

  4. Click Apply.

The iPod update begins. All your music is now on your new computer, and after the update completes it will be on your iPod again too.

 

Configure Advanced File Sharing with SharePoints

Configure Advanced File Sharing with SharePoints


Mac OS X only: Share more than just your user folder on your Mac using the SharePoints preference pane. You already know how to access your Mac's files from your PC, but OS X's default Windows sharing only shares the user folder. To share other folders, grab SharePoints, which offers a graphical interface for configuring Samba (Windows sharing) as well as advanced AFS (AppleFileServer) properties. SharePoints is a free download for Mac only, donations requested.

Monday, November 3, 2008

How to mount a Windows shared folder on your Mac

How to mount a Windows shared folder on your Mac

samba-in-finder-thumb1.png

So you've made the switch to Mac, but kept your old PC, and now you've got both connected to your home router. How do you access your Windows files from OS X?

Sure you could set up an FTP or SSH server, but that's overkill for a regular home network. Turns out that Mac OS X can connect to Windows shared folders very easily. Read on to find out how.

Set up sharing on your PC. To get this going, make sure your PC is set up for file sharing. In Windows, choose the folder you want to access from your Mac, and right-click to get to its Properties dialog box. From the sharing tab, turn on sharing, and choose a name for the shared folder. (This is the name you'll see on your Mac.)

If you try to use a name more than 12 characters long, Windows will warn you about some operating systems not being able to grok it. To be safe, stick with something less than 12. Here, I'm sharing the "My Documents" folder as "PC - My Docs." Also, check the "Allow network users to change my files" if you want to save files to this share from your Mac.

Determine your PC's IP address. You'll need to give your Mac an address to look for this shared folder, so get your PC's local IP address from the command line by running ipconfig. In my setup (shown below), that address is 192.168.1.102. Write that number down.

UPDATE: Several readers have pointed out that you can use your PC's name versus its IP address to connect to it. Using the name is a better method than IP address because the IP can change if it's assigned dynamically, but the name won't unless you change it.

Connect to the server on your Mac. Now, on your Mac, from Finder's Go menu, choose "Connect to Server." Enter the IP address you just obtained from your PC, preceded by smb://, as shown:

UPDATE: To use your PC's name instead of IP address, replace the number with the name. So if your PC's name is "MyWindowsBox", you'd usesmb://mywindowsbox (not case-sensitive).

If it finds your server, you'll get prompted to enter your network credentials - by default, your Windows username and password:

Once you're in, you'll get to choose which shared folder you want to mount on your Mac. In this case, we're going to choose the "PC - My Docs" share:

samba-shre.pngAnd you're done! Now the "PC - My Docs" folder will be mounted on your Mac, and accessible from your desktop and in Finder. If you've allowed reading and writing to the shared folder in Windows, you can drag and drop and save files to it as if it were any disk.

This technique comes in very handy for backing up your Mac's data to a PC, too - just set your Mac's backup software destination to the Windows drive. Also,using Hamachi, you can also do this over the internet when you're away from home.

UPDATE: You can automatically mount your Windows drive every time you login to your Mac by adding it to your Login items. In System Preferences, Accounts, choose the "Login Items" tab and add the Volume to the list of apps that automatically start up. Thanks, Snorbalp!

Tuesday, September 16, 2008

XAMPP for Mac OS X [run php and my sql on OSX]

Welcome to XAMPP for Mac OS X


XAMPP for Mac OS X is the simplest, most practical and most complete webserver solution for Mac OS X. The distribution includes an Apache 2 web server, integrated with the latest builds of MySQL, PHP (both 4 and 5) and Perl. It comes as a Mac OS X Installer package which contains all the necessary files and requires no dependencies.

If you are an experienced web developer or a Mac enthusiast who needs to run a webserver, create dynamic webpages or use databases, this is your lucky day!
This version is for Mac OS X 10.4 (Intel&PPC) and higher.

Jump-off point

Installation in 4 Steps

Step 1: Download
Step 2: Installation
Step 3: Start
Step 4: Test

READ ME

A matter of security (A MUST READ!)
Advanced start and stop parameters
What's where?
Stopping XAMPP
Uninstall
Thanks

Installation in 4 Steps

* Step 1: Download

Simply click on the link below. It's a good idea to get the latest version. :)

A complete list of downloads (older versions) is available at SourceForge.
There are none yet, but there will be.

XAMPP for Mac OS X 0.7.3, 2008/2/11

Version

Size

Notes
XAMPP Mac OS X 0.7.3
Installer Version
Universal Binary
91 MB Apache 2.2.9, MySQL 5.0.51b, PHP 4.4.8, PHP 5.2.6, Perl 5.10.0, ProFTPD 1.3.0a, phpMyAdmin 2.11.7, OpenSSL 0.9.8h, GD 2.0.35, Freetype 2.3.5, libjpeg 6b, libpng 1.2.18, libungif-4.1.4, zlib 1.2.3, expat 2.0.1, Ming 0.3, Webalizer 2.01-10, pdf class 009e, mod_perl 2.0.3, SQLite 3.4.0, phpSQLiteAdmin 0.2, libiconv-1.11, gdbm-1.8.3, libxml-2.6.29, libxslt-1.1.21, openldap-2.3.36, imap-2004g, gettext-0.16.1, libmcrypt-2.5.8, mhash-0.9.9, curl-7.16.4, zziplib-0.10.82, bzip2-1.0.3, freetds-0.64
MD5 checksum: 6d01e64fffa87f471c5641cf6e845b97
XAMPP Mac OS X (tar) 0.7.3
Universal Binary
91 MB Apache 2.2.9, MySQL 5.0.51b, PHP 4.4.8, PHP 5.2.6, Perl 5.10.0, ProFTPD 1.3.0a, phpMyAdmin 2.11.7, OpenSSL 0.9.8h, GD 2.0.35, Freetype 2.3.5, libjpeg 6b, libpng 1.2.18, libungif-4.1.4, zlib 1.2.3, expat 2.0.1, Ming 0.3, Webalizer 2.01-10, pdf class 009e, mod_perl 2.0.3, SQLite 3.4.0, phpSQLiteAdmin 0.2, libiconv-1.11, gdbm-1.8.3, libxml-2.6.29, libxslt-1.1.21, openldap-2.3.36, imap-2004g, gettext-0.16.1, libmcrypt-2.5.8, mhash-0.9.9, curl-7.16.4, zziplib-0.10.82, bzip2-1.0.3, freetds-0.64
MD5 checksum: 4589036275ac404d3b6b41f56eca7f50
Upgrade 0.7.2 to 0.7.3 5 MB Upgrade package
MD5 checksum: c943e7144410d596c8041abdf0c2b805
Developer package 32 MB Developer package
Installation tar xvfpz xampp-macosx-0.7.3-dev.tar.gz -C /Applications/xampp
MD5 checksum: 94780a90c45b90d93027ce04dbeeeaf2

* Step 2: Installation

After downloading simply run the following commands in a terminal:

    Installation requires an admin account.
    # Enter „sudo su“. You will be prompted for a password.
    # tar xfvz xampp-macosx-0.7.3.tar.gz -C /

    Notice: all old installations of XAMPP for MacOS X will be overwritten!
That's all. XAMPP is now installed below the /Applications/xampp directory.

* Step 3: Start

After installing simply type in the following commands to start XAMPP for MacOS X:

  1. Go to a Terminal shell and login as the system administrator root:

    sudo su

  2. To start XAMPP simply call this command:

    /Applications/xampp/xamppfiles/mampp start

    You should now see something like this on your screen:

    Starting XAMPP for MacOS X 0.7.3...
    XAMPP: Starting Apache with SSL (and PHP5)...
    XAMPP: Starting MySQL...
    XAMPP: Starting ProFTPD...
    XAMPP for MacOS X started.

Ready. Apache and MySQL are running.

If you get any error messages please take a look at the MacOS X FAQ.

* Step 4: Test

OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:

http://localhost

Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples.

READ ME

* A matter of security (A MUST READ!)

As mentioned before, XAMPP is not meant for production use but only for developers in a development environment. The way XAMPP is configured is to be as open as possible and allowing the developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.

Here a list of missing security in XAMPP:

    1. The MySQL administrator (root) has no password.
    2. The MySQL daemon is accessible via network.
    3. ProFTPD uses the password "xampp" for user "nobody".
    4. PhpMyAdmin is accessible via network.
    5. MySQL and Apache running under the same user (nobody).
To fix most of the security weaknesses simply call the following command:
/Applications/xampp/xamppfiles/mampp security
It starts a small security check and makes your XAMPP installation more secure.

* Advanced start and stop parameters

With /Applications/xampp/xamppfiles/mampp you can not just start and stop XAMPP für MacOS X, you can do loads more. To see what else you can do, just read below.
ERWEITERTE START- UND STOP-PARAMETER

Parameter

Bedeutung
start
Starts XAMPP.
stop
Stops XAMPP.
restart
Stops and starts XAMPP.
reload
Apache, MySQL and - if started - ProFTPD reload their config files
startapache
Only starts the Apache.
startssl
Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restart XAMPP in the future SSL will stay activated.
startmysql
Only the MySQL database ist started.
startftp
Only the ProFTPD-Server is started. Via FTP you can upload files for your web server (user "nobody", password "xampp"). This command activates the ProFTPD permanently, e.g. if you restart XAMPP in the future FTP will stay activated.
stopapache
Stops the Apache.
stopssl
Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restart XAMPP in the future SSL will stay deactivated.
stopmysql
Stops the MySQL database.
stopftp
Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restart XAMPP in the future FTP will stay deactivated.
reloadapache
The Apache webserver reloads its config files.
reloadmysql
The MySQL database reloads its config files.
reloadftp
ProFTPD reloads its config files.
For example: To start Apache with SSL support simply type in the following command (as root):
/Applications/xampp/xamppfiles/mampp startssl
You can now also access your Apache server via SSL under https://localhost.

Stopping XAMPP

To stop XAMPP simply call this command:
/Applications/xampp/xamppfiles/mampp stop
You should now see:
Stopping XAMPP for MacOS X 0.7.3...
XAMPP: Stopping Apache with SSL...
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.

And XAMPP for MacOS X is stopped.

* Uninstall

To uninstall XAMPP just type in the following command in your Terminal shell as administrative user root:
rm -rf /Applications/xampp
The end.

* Thanks

We would like to thank Kai "Oswald" Seidler, Kay Vogelgesang, the whole Apache Friends Team and of course also our users for supporting us and to have made Apache Friends what it is today.

February 2005, Kristian Marcroft