Copy the iTunes Folder from yourhomefolder/Music/ to the same location on the new machine.
Copy the iPhoto library from yourhomefolder/Pictures/ to the same location on the new machine.
You can do this via an external drive, or via wireless network (enable file sharing in System Preferences --> Sharing on the old machine, and it will automatically show up under "Shared " in the sidebar of the new machine's Finder windows.