![]() the psycho cat on an HP Mini with Ubuntu
Just Beginning
Which Ubuntu to pick?
Ubuntu inside Windows
Install Software
Security in Ubuntu
Where's the Terminal? Next Steps Beyond the Basics Playing Around Troubleshooting * Off-site link
Cheap Plugs You may also want to consider donating directly to the Ubuntu project.
|
Installing Software in Ubuntu
Disclaimer
Does the command-line scare you? apt-get/Synaptic/Adept Manual installation of a .deb Manual installation of a .rpm Installing from source Other .tar.gz
Disclaimer
Here are the main ways to install software in order of ease (easiest to hardest):
1. apt-get, Synaptic, Adept, Add/Remove
sudo apt-get update sudo apt-get install thunderbird The first command looks both at what I have installed and what's available in the repositories. The second command downloads the packages needed for Thunderbird and installs them. Another great thing about apt-get is the ability to install several different packages at once. For example, if I wanted to install not only Thunderbird but Firefox, GIMP, Inkscape, Juk, and Wine, I could type in these commands:
sudo apt-get update sudo apt-get install thunderbird firefox gimp inkscape juk wine and all of those packages would download and install themselves. On the Ubuntu Forums and in many of the Wiki and other guides, you'll often see instructions to sudo apt-get install some package or other. People will give you commands because it's easier than describing what to click in a graphical user interface, and you can just copy and paste the command. However, there is a graphical version of the package manager that acts similarly to apt-get. For Ubuntu, it's Add/Remove. For Kubuntu, it's KPackageKit. In both, you're essentially doing the same thing. There's also a nice "browsing" environment in which you can search for packages by name and/or description. You can browse by categories of software or look at what's installed versus what's not installed. It's a lot like an ecommerce model of "shopping" for software, except you don't have to pay when you "check out." The graphical equivalent of sudo apt-get update is clicking the Reload button. The sudo apt-get install command, however, is broken into different steps. Instead of listing a bunch of applications you want to install, you mark each one for installation (or removal), and then click Apply Changes or Commit Changes and then everything's downloaded and installed (or uninstalled). Here's a guide on how to use Add/Remove (complete with screenshots), in case you need pictures to see what it's all about. If Synaptic and Adept seem a little overwhelming, there is also a simplified graphical interface called Add/Remove that does the same thing but presents you with fewer choices.
2. Manual installation of a .deb The only difference between manually installing a .deb file and using apt-get to install a .deb file is that apt-get will resolve dependencies for you (if one package needs another to be installed, apt-get will install that "pre-requisite" package). If you manually install a .deb file, you will also have to manually install its dependencies. Don't worry, though—if you try to manually install a .deb file and it has dependencies, you'll soon find out what those dependencies are. Here's what you should do. Download the .deb file to your desktop. For this example, let's use Opera. Now, the Opera file that's currently available for Ubuntu has a quite ugly name: opera_9.64.2480.gcc4.qt3_i386.deb. There are several ways to deal with this ugly name, seeing as how you have to type in the exact name of the .deb file in order to install it. You can rename it to something simpler (say, opera.deb), you can copy and paste the name, you can begin typing the name and then hit the Tab key to have the terminal autocomplete the name of the file, or you can just suck it up and retype it exactly as is. Let's assume, though, that you're going to do it the ugly way. You'd open up a terminal and type these commands:
cd Desktop
sudo dpkg -i opera_9.64.2480.gcc4.qt3_i386.deb sudo apt-get -f install That's it. And if you prefer pointing and clicking, you can also just double-click the .deb file to install it.
3. Manual installation of a .rpm One-time deal, just to get alien:
sudo apt-get update
sudo apt-get install alien Now you can actually use alien:
cd Desktop
sudo alien -i opera_9.10-20061214.6-shared-qt_en_i386.rpm Again, no dependencies will be resolved.
4. Installing from source The first thing you'll have to do in Ubuntu is install a meta-package called build-essential (a meta-package isn't a real package—it's a pointer that tells Synaptic/Adept/apt-get to install a bunch of other real packages):
sudo apt-get update
I can't think of a program off the top of my head that I ever needed to install from source, so I'm just going to make something up—let's call it obscure-1.0. Most likely, it'll come as zipped file called obscure-1.0.tar.gz. Download this to your desktop. Then type this in a terminal:sudo apt-get install build-essential
tar -xvzf obscure-1.0.tar.gz
cd obscure-1.0 ./configure make sudo make install Installing from source, like the previous two methods, also does not resolve dependencies—you'll have to install those separately. The ./configure command may indeed tell you what dependencies you need but in a rather peculiar way; for example, it will often return with, say, a rather cryptic gtk not found, in spite of the fact that the user has gtk installed! In fact, what is actually missing is the gtk development files, libgtkx.y-dev. In general, when it says can't find library blah and libary blah is already installed, it usually means that it can't find the blah development files, which can almost invariably be found and installed by searching synaptic for blah dev. [Most of this paragraph was contributed by GeneralZod from the Ubuntu Forums—thanks, GeneralZod!] There's also Checkinstall: Once checkinstall is installed, instead of typing sudo make install you type sudo checkinstall -D and the program creates a .deb file which is then installed. This makes removing any program compiled from source extremely easy. For more details see the Wiki: https://wiki.ubuntu.com/CheckInstall. [Most of this paragraph was contributed by gingermark from the Ubuntu Forums—thanks, gingermark!]
Note: in both Ubuntu and Kubuntu, you can "un-tar" (or unzip) a .tar.gz graphically. I've never had to use the tar terminal command. To un-tar a .tar.gz graphically, just open it (double-click usually does this), then click on Extract.
Other .tar.gz
|
|
If you have suggestions or corrections for these tutorials, please post in this Ubuntu Forums thread or leave a comment on my blog. I will not give help to people posting in the above places. If you require technical support, start a support thread on the Ubuntu Forums. That is the appropriate place to ask for help. |
|