AyeTea

...IT in Tea Break Sized Bytes

  • Increase font size
  • Default font size
  • Decrease font size
Technorati Profile
Home A Room Without Windows Installing a Linux Application from Outside the Supplied Repositories

Installing a Linux Application from Outside the Supplied Repositories

E-mail Print PDF
User Rating: / 4
PoorBest 
On a tip off from "Photon" who was good enough to say hello in the forums here at Ayetea.com I tried to install a screenshot application.  Up until now I have been using the screenshot application that came within the Ubuntu 9.04 distribution.  Its actually a pretty good little utility, I especially like it's configurable timer.  However being used to using a third party application names screenhunter through Windows, I am used to and really would like some more features.

So far in Linux I have been using the Add/Remove button on the Ubuntu menu to install Thunderbird and some add ons for it, and this is very easy.  The screenshot application that I was recommended however is not available via this tool.  In installing it I was about to be given a crash course lesson in how different installing Linux applications differs from Windows.

Windows users will quite probably be reasonably knowledgeable on the basics of installing an application.  The application generally speaking is included with an installer program and the rest of the software is included either in a download or on disk.  Although this is a simplistic description and installations can occur using various methods, the install program is pretty easy to identify.  After this, the Windows user is generally looked after.  A status bar proceeds, and a few minutes later the application is installed and ready to run. 

Of course this approach has some pitfalls.  It's pretty easy to install just about any software (including malicious code) into your system.  Compatibility with your version of windows can be in doubt and bitter experiance has shown me that occaisionally it is only after messing up your installation irrevibly that this becomes clear. Sometimes finding the correct software can be a hazardous journey. 

I already knew that there were differences in how Linux installed it's applications.  However using the Add/Remove tool in Ubuntu shields the user slightly from what is going on in the background.  If Windows makes it easy, in many ways Linux makes it even easier.  This was to begin with a bit of a shock for me.  My impression was that Linux was a geeky OS, complicated enough to fend off the noob and delight the command line junky. 

The Add/Remove tool, gives you a searchable list of applications that should run on your installation.  Tick the check boxes for the application (or applications, yep you can install several at a time... Take that Microsoft) that you are interested in and hit the apply changes button.  From there on the application (or applications) is downloaded and installed on your machine.  No restarts, no hours of googling and hey presto software installed. 

As I said though, straight out of the box the user is shielded from the installation process.  For many users, this will be all that they need.  With hundreds of apps available, your average user may never have to leave this cosy and safe installation environment. 

What I learned today is a bit more of how that list of tempting applications is produced. 

Within Windows, applications can be located just about anywhere, on a disk, at a software companies website or on the websites of various third party software distributers.  Linux on the other hand downloads most of it's software from theser mystical locations named repositories,

Repositories hold some major advantages over the Windows way of doing things.  If you hold all your software in one or two places far more control can be asserted on what is being downloaded both from a users point of view and also from the software creators point of view.  The user can chose to see software from trusted sources, the main repositories hold large numbers of applications, all virus free and when controlled by the authors of the Operating software, less likely to give you compatibility issues.  From the software authors point of view, encouraging users to take their downloads from a single server allows you to control versions and ensure those out there are using your latest and greatest. 

Ubuntu comes already with some reputable repositories pre-set, however not every package that a user may want will be in these repositories.  Sometimes it is necessary to point your operating system at additional sources of software.

To download Shutter, the application that Photon suggested I was going to have to add a new source of information.  Over at the Shutter website, instructions are given as to how to add the companies repository.  This was going to be my first attempt at this.  To be honest I didn't think I would have to get more involved in the workings of the operating system just as quickly as this but well here goes.

The first part of the task I felt quite comfortable with.  In the adminstration menu, I found the "Software Sources" item.  This is a utility that allows you to see which sources are configured.  The software sources tool appears in a dialogue box and offers accross its top tabs the opportunity to select where Linux looks to for itself, third pary software, updates, authentication and also wether you wish your downloads to be monitored for statistical purposes.  To add a third party source the second tab is the place to go.

The supplier of Shutter gives the address on their website.  For my installation of linux it was
deb http://ppa.launchpad.net/shutter/ppa/ubuntu jaunty main

I clicked on the add button and pasted this text in to the form control. This is the first part over and done with and now my Linux distribution is going to look to this web address for available software in future.  This to me seems prety safe, but not safe enough for Linux apparently.

If downloading your software from trusted sources only seems pretty secure, another level of security has been placed on top of this.  You need to add a public key.  Now I am not 100% sure on hoe the key thing works other than you install it on your machine and it is used to authenticate the source of the software.  Never the less trying to install Shutter without the key installed resulted only in an error message when the package manager tried to download a list of files.

I don't know yet wether this is something to do with Launchpad
- Launchpad is a web application and web site supporting software development, particularly that of free software and used by the creator of Shutter to distribute the application - or if it's accross the board that these keys are essential.  However to install the key I was instructed to open terminal, the command line interface and place this command.

"wget -q http://shutter-project.org/shutter-ppa.key -O- | sudo apt-key add -"
At this point I realised that I had become confused by the instructions at the Shutter website and in fact I should have installed the key before adding the repository.  The site had taken me to other instructions that had not mentioned the key and I had got myself out of sequence. 

However it did not seem to matter.  I clicked on a hyperlink on their site and the install took place.  This is what is called an Apt URL

Searching I found this description of an Apt URL

"The APT protocol, or apturl, is a very simple way to install a software package from a web browser.

On computers where apturl is enabled, the clic in a web page on a special link starts the installation of one or several packages available in the package repositories of this computer. "
According to their site you can also install from the command line interface terminal using the wget install command

This seemed to work and the install went ahead with a progress bar,  Low and behold the software works ok.  Of course it is late now, but tomorrow I will give it a try and see how I like it.

As you can probably guess I have managed this evening to get a limited apreciation of how Linux achieves its download process.  I still feel though I have much to learn. 



Share Link:
Google Yahoo MyWeb Del.icio.us Digg Facebook Myspace Reddit Ma.gnolia Technorati Stumble Upon
Last Updated on Sunday, 07 June 2009 23:07  
Discuss (1 posts)
Re:Installing a Linux Application from Outside the Supplied Repositories
Jun 30 2009 23:14:51
It might be more precise to rename the article to "Installing an Application from Outside the Supplied Repositories in Debian-Derived Distros." Because the process is quite different in other Linux distros.


Keep in mind that package management is NOT a feature of Linux itself. You need to have other software installed to do that. Linux is just a kernel, and without any other software Linux is useless. A distro is simply a pre-setup collection of software, bundled with the kernel.

So strictly speaking, you're not talking about Linux, you're talking about Debian's APT (Advanced Package Tool,) which Debian-based distros like Ubuntu use. APT doesn't just run on Linux, it runs on BSD, GNU/HURD, Mac OS X, and more (Debian is portable across multiple kernels.) You can even get it working with Windows using cygwin, a Windows implementation of Unix environment, invented so that people could use Unix tools at work even if company policy required them to use Windows.

Also, there are many other package managing tools besides APT (RPM, packman, tgz, Portage, PBI, Autopackage, etc.) So the article doesn't apply to all Linux installations. (Although APT is the most common.) The article title might confuse a new user who was using Fedora Linux, for example.
#128

Discuss this item on the forums. (1 posts)

JoomlaWatch Stats 1.2.8b_10-dev by Matej Koval Technorati Profile