History Lesson
I am currently running Ubuntu Edgy (6.10). As stated in the previous article, I have a Creative Zen Xtra PlaysForSure (MTP) device. PlaysForSure started out as a strictly Microsoft-only thing, but then an open-source library called libmtp came into the scene.
Fact:
Amarok rocks your face off.
Another Fact:
Amarok supports almost every type of portable music player. Including PlaysForSure devices.
Why I'm writing this:
I have just recently installed the latest version of Amarok from source into my Ubuntu distribution (Edgy). The latest and greatest version supports all of these portable devices, whereas the one in the Ubuntu repositories does not. To see a full feature list, visit Amarok's main site.
The rest of this article will focus on how to set up and install the latest version of Amarok from source into Ubuntu Edgy (6.10).
The next release - Feisty (7.04) - will come with a version of Amarok that will support PlaysForSure (MTP) devices.
For each of the command's given, copy and paste each line into a terminal window.
i) You must have the repositories enabled to do anything else. Note that you will need the administrator password for all of this as well.
- Click on System --> Administration --> Software Sources
- Make sure all of the check in the first tab under "Internet" are checked.
1) First we must make sure you do not already have Amarok installed.
sudo apt-get remove amarok amarok-xine
If you have previously installed amarok with checkinstall and a different package name, use Synaptic to find it and remove it.
2) Installing the necessary tools to build Amarok
*NOTE - this step will require approximately 160mb of hard disk space.
*Thanks Cigar_Jack on the correction.
sudo apt-get install build-essential checkinstall
sudo apt-get build-dep amarok
2a) Installing the latest version of libmtp from source.
- Travel to http://sourceforge.net/projects/libmtp and download libmtp to your desktop.
- Right-click the archive and select "Extract here"
- Then do these commands:
sudo apt-get remove libmtp2 libmtp-dev #Thanks to oxyrosis at ubuntuforums!
cd /home/$USER/Desktop/libmtp*
./configure
make
sudo checkinstall #I named it libmtp-built, to avoid any problems
2b) Installing the latest version of libgpod from source.
- Travel to http://sourceforge.net/project/showfiles.php?group_id=67873&package_id=156254 and download libgpod to your desktop.
- Right-click the archive and select "Extract here"
- Then do these commands:
cd /home/$USER/Desktop/libgpod*
./configure
make
sudo checkinstall #I named it libgpod-built for the same reason as above.
3) Download the file.
- Browse to http://amarok.kde.org/wiki/Download:Source
- Click on tarball
- Click on a local mirror.
- Create a folder on your desktop called Amarok
- Click on the file "amarok-1.x.x.tar.bz2" and save it into the folder
- Browse to the folder, right-click the file, and click on "Extract Here"
4) Install the program
- For the last command, make sure you rename the package before hitting enter the third time. Don't leave the package named as "amarok" - Ubuntu will "update" it to the older version. Instead, rename it to "amarok-built" or something different than "amarok". Just follow the on screen directions and you should be ok.
sudo chown -R $USER:$USER /home/$USER/Desktop/Amarok
cd /home/$USER/Desktop/Amarok
cd amarok*
./configure --with-libnjb --with-libmtp --with-libgpod --prefix=`kde-config --prefix`
make
sudo checkinstall
This how-to was written with the help of this how-to at ubuntuforums:
http://ubuntuforums.org/showthread.php?t=316246&highlight=amarok+mtp