Last week we analyzed the importance of proper system use and user permissions on the article Ubuntu Security
(II) - Users and key this week will continue with another pillar of security: the programs installed.
By controlling the source of the software and use an appropriate installation method will minimize the possibility of introducing malicious software on your system, improve stability and reduce security risks. installation methods
in Ubuntu and GNU / Linux in general have a wide variety of software installation methods, in the official guide Add
applications you have all these methods explained in detail, but I'll make a small look at the most common point of view of security:
Using the package manager
: (II) - Users and key this week will continue with another pillar of security: the programs installed.
By controlling the source of the software and use an appropriate installation method will minimize the possibility of introducing malicious software on your system, improve stability and reduce security risks. installation methods
in Ubuntu and GNU / Linux in general have a wide variety of software installation methods, in the official guide Add
applications you have all these methods explained in detail, but I'll make a small look at the most common point of view of security:
Using the package manager
Center Software among others). This is the most recommended for all users .
- The main advantages of this method are
- : - Installation and maintenance simple, unified software - The creator of the package is identified and is accessible by anyone - Ability to view the file list that contains the package - clean uninstall - If a package interferes with another's own package system solves the conflict - if a package requires another to operate the system itself resolve package dependency- conflicts and dependencies not managed
From Source:Another common method of installation on GNU / Linux but not in Ubuntu is to compile code directly source to get an executable. This method is recommended only for those (very few) programs not available in the package manager.
Typical installation from source
This method, although it is generally quite safe has major disadvantages
regarding the use of the packaging system:
- Each program has its own installation method
- For a novice user is difficult to know which files are installed and how to keep
- Some programs can only be installed and uninstalled manually - Requires the installation of compilers, libraries, utilities ... - If you are forced to install software using this method please note: read the installation instructions contained README or INSTALL file, make sure the website you got the program that is reliable and has a contact address of the author, points out that Package Manager can not uninstall, update or manage this software in any way.This is undoubtedly the most insecure
installable Scripts:
are files that contain within themselves the necessary orders for installation, this is the typical format of nvidia drivers (*. run) or user-created scripts for different purposes ( *. sh) among others.
autoinstalable Running a script (nVidia driver)
method of installing software and should be avoided whenever possible, its main disadvantages are- Normally the origin is little or no reliable- It's easy to insert malicious code in these scripts- To know exactly what is causing the script requires knowledge of shell programming -
Source
basic tool for managing Ubuntu repositories is software-properties-gtk and have available in the menu system - Administration - Software Sources
software packaging system (recommended method of installation) the software gets what are called repositories, you have a comprehensive guide to managing repositories
Add external repositories, but As before we will see what the best way to manage these repositories from the point of view of safety.
There are several types of repositories that are managed differently and that
software-properties-gtk control.
If you are forced to install software using this method keep in mind : well sure that the script source is reliable, especially wary of scripts that require administrator permissions, if possible edit the script and analyze everything he does before running it.
- official Ubuntu repositories This is the main repository of Ubuntu derived distributions that package, you can switch from the Ubuntu Software tab
Choice of primary server
need not take any special security measures to use these repositories.
personal Repositories PPA
- personal repositories are repositories
- PPA for Ubuntu users hosted on servers in Launchpad
and contain newer versions (or development) of certain programs. These repositories are not supported by Canonical but are created by users are identified and digitally signed so they are relatively safe.
The management of these repositories is simple and can be integrated in the transmission Ubuntu packages. The exact name of the repository and how to add will be detailed in the website of each repository.We will see better with an example, let's add the reposiorio PPA with the latest version of Wine
(version 1.2). The name of the repository is ppa: ubuntu-wine/ppa and to add we will use the following commands:
- Add the repository to the software sources list: sudo add-apt-repository ppa: ubuntu-wine / ppa -
- Uninstall the previous version of wine (only if you had installed): sudo aptitude purge wine - Install the program (in this case wine )
sudo aptitude install wine
- Check the version of wine installed: wine - version wine
-1.2
The main advantages of this type
repositories are among others: the availability of the latest development versions of certain programs, fully integrated into the packaging system and security system based on digital signatures. Its disadvantages
are: add a certain level of instability when using programs developed or not sufficiently tested and add some level of insecurity for these repositories are not checked by Canonical.
Externals
Sometimes (increasingly less) you want to install software that is packaged in third party repositories (or the main Ubuntu repositories or PPA), let's see how we manage these repositories and ensure with a digital key.
Again we will use an example to illustrate the process, in this case we will addfatástico GetDeb
repository containing a large number of programs that are not on the official Ubuntu repositories or are but in earlier versions. Installation instructions and all packages containing the find on its website. The exact name of the repository is deb
lucid-getdeb http://archive.getdeb.net/ubuntuand add apps will use the following commands:
- Manually add the repository to the list system repositories: sudo bash -c "echo 'deb-getdeb http://archive.getdeb.net/ubuntu lucid apps'>> / etc / apt / sources.list" - -O-http://archive.getdeb.net/getdeb-archive.key
aptitude update - Install any application GetDeb repositories, such as the social browser Flock: sudo aptitude install
flock
The most important point concerning the safety of such repositories is
never add repositories have no security key or do not make public.
- Update package list: sudo aptitude update
- Import digital key safety: wget-q
Ubuntu Guide -
Add external repositories
Ubuntu Guide -
Add applications
Wikipedia -
Repository Launchpad - PPA
Security Ubuntu (I) - Introduction
To access this account you must do so from a user session and started by clicking the session control applet, select