Using online repositories
QTM can be installed as plain binary packages, or installed from online repositories. The advantage of doing this is that your software management system will take care of downloading dependencies, such as the Qt 4 libraries which are not present on all operating systems as standard yet. Presently, there are online repositories for four operating systems: Ubuntu, OpenSUSE, Fedora and FreeBSD.
- Installing with APT on Ubuntu
- Installing from the OpenSUSE repository
- The YUM repository for Fedora
- Installing from a port on FreeBSD
My personal package archive (PPA) on the Ubuntu Launchpad system includes packages for recent versions of Ubuntu (Gutsy and Hardy). To access it, you will need to tell your operating system about the archive, by editing your sources list file (/etc/apt/sources.list). To do this, you can either use a text editor or a desktop package manager like Synaptic.
The line you need to add is this (type gutsy instead of hardy if you are using that release):
deb http://ppa.launchpad.net/indigojo/ubuntu hardy main
You can do this by opening up /etc/apt/sources.list in a text editor (I use JOE, which you can download by typing sudo aptitude install joe, as it is simpler to use than the usual editor, vim). You need to do this as root, by typing sudo at the beginning of the command you use to open your editor (e.g. sudo joe /etc/apt/sources.list). You can copy and paste that line by moving over it with the mouse, with the left button down, and then moving to the window where the editor is running, and clicking the middle mouse button or scroll wheel if you have one, or both mouse buttons together if you don't, to paste the line in. Make sure it's on its own line.
Then type the following two commands:
sudo aptitude update
sudo aptitude install qtm
After you have done this, you should find QTM in your desktop menu and ready to load.
You may find it easier to use Synaptic, the desktop client for APT. Synaptic can be found by clicking System, then Administration. You will need to provide your password (and you must be an administrator).
Once Synaptic opens, choose the Settings menu from the menu bar and the Repositories option from that menu. Click the tab that says "Third Party Software", then click the button marked "Add". Copy the following text (by moving over it with the mouse, with the first button down), then paste the "deb http://" line shown above into the box marked "APT line" (by pressing the middle mouse button if you have one, or both of them together).
Then click the button marked "Close", followed by the one marked "Reload" in the main button bar. This will refresh your system's software database. You can then search for "qtm", or you may select the "Networking" section and hopefully find the package there.
Installing from the OpenSUSE repository
If you want, you can simply download the RPM files for OpenSUSE from the Downloads box on the right, but you may find it easier to use YaST if you do not have Qt 4 installed already. There are repositories for OpenSUSE 10.2 and 10.3, in both 32- and 64-bit versions. To do this, open the YaST main menu (it should be under "System" in the K menu, or "Computer" if you use KDE 4), enter your root password, and then click "Software Repositories" in the YaST Control Centre window.
A window should open which says "Configured Software Repositories". Near the bottom of the window, there is a button which says "Add"; click it. Then select "Specify URL", click Next, and copy and paste one of these links (SUSE 10.2, SUSE 10.3, SUSE 11) into the box marked "URL". (You can also give it a name if you like; otherwise, it will be called "OpenSUSE 10.x" which is not very helpful.) Then click Next.
YaST will then communicate with the OpenSUSE repositories so that it knows where to find packages. The "Configured Software Repositories" box should soon reappear, and you need to click "Finish".
After the window closes, open "Software Management" from the YaST main menu. It often takes a while to build its package database, particularly if you use lots of online repositories, but after a while it should display a window with a large empty box on the right and a box marked "Search" on the left. Type "qtm" into that box, and it should find it and display "qtm - A client for content management systems" in the box on the right. Click the square box to the left until a check-mark appears in it, then click the button marked "Accept" at the bottom right of the window. If you do not have Qt 4, it should tell you that it needs to install that; click Accept, and it should install Qt, if necessary, and QTM.
The YUM repositories for Fedora are also located at the OpenSUSE build service. YUM is a Python-based program which fetches packages and their dependencies from a server, much as APT does on Debian. You need to configure YUM so that it loads from that repository. Download one of these files (Fedora 8, Fedora 9) and copy it (as root) to the directory /etc/yum.repos.d. Then, also as root, run yum update so that YUM knows where to find QTM. Once the update is done, you can install QTM by typing:
yum install qtm
QTM is in the FreeBSD ports tree. They presently have version 0.6.0.1. Please refer to the FreeBSD documentation, such as The Complete FreeBSD or Absolute FreeBSD, for details on how to install a port or package on that operating system.

