Monday, August 22, 2016

Ubuntu Basic Software Installation Guide

Hey guys..... This is blog on Basic Installation Guide on Ubuntu.

However, before we start, let's start with some basic details of items in a Linux environment.

  1. apt-get  :- this is the Ubuntu's Advanced Packaging Tool (APT) meant for performing functions like installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system.
  2. repository :- A software repository is a storage location from which software packages may be retrieved and installed on a computer, usually a server (somewhere in the world), from where the installation files are retrieved.
  3. .deb files :- These are Debian packages, in some way like the .msi files in Windows. These are used for offline installation of softwares in and Debian-based Linux distro. Similarly, .rpm file is used for installation in RHEL based Linux distro.
  4. dpkg :- dpkg is used to install, remove, and provide information about .deb packages. dpkg itself is a low level tool. If and only if, apt-get is not supported, then will we shift to use dpkg. Still, more commonly used tools are aptitude and synaptic.

Some Basic commands of apt-get in Ubuntu :-
  1. update :- used as
    sudo apt-get update
    It's used for re-synchronizing the package index files from the their sources specified in settings, and updating system packages as required.
  2. upgrade :- used as style="list-style-type: square;"
    sudo apt-get upgrade
    It's used to upgrade all the currently installed software packages on the system. Under any circumstances currently installed packages are not removed or packages which are not already installed neither retrieved and installed to satisfy upgrade dependencies.
  3. dist-upgrade :- used as
    sudo apt-get dist-upgrade
    In addition to performing the function of upgrade, it also intelligently handles changing dependencies with new versions of packages.
  4. clean :- used as
    sudo apt-get clean
    The ‘clean‘ command is used to free up the disk space by cleaning retrieved (downloaded) .deb files (packages) from the local repository.
  5. install "package name" :- used as
    sudo apt-get install "package name"
    It is used for install one or more specified package.
  6. remove :- used as
    sudo apt-get remove "package name"
    It's used to un-install software packages without removing their configuration files (for later re-use the same configuration) and not un-installing their dependencies.
    To completely remove the sofware and all it's dependencies and config. files, use
    sudo apt-get remove --purge "package name"
  7. autoremove :- used as
    sudo apt-get autoremove
    This commands clears the cache files, thereby cleaning the downloaded files used during the process of installation.

So, now let's start up by first of all, doing the update and upgrade.
Open up the terminal:-  and execute the following commands, (enter password, if prompted)
  • sudo apt-get update
  • sudo apt-get upgrade

Now, let's add some quite necessary repositories in our Ubuntu installation.
  • sudo add-apt-repository ppa:webupd8team/java :- the oracle java repository for Ubuntu
  • sudo add-apt-repository ppa:nilarimogard/webupd8 :- the official repo of techblog of WebUpd8, that provides with stable built of quite many softwares.
  • sudo add-apt-repository ppa:ubuntu-wine/ppa :- The Wine repo for Ubuntu, for executing .exe in Ubuntu.
  • sudo add-apt-repository ppa:webupd8team/sublime-text-3 :- Sublime Text 3 repo for Ubuntu.
Before, proceeding to the installation, you may also do some tweaking in the Softwares and Updates.

  • Please keep all the sources enabled in Downloadable from Internet section.
  • You can also select the server in Download From section, (as I've selected Server for India).

Now, let's start with the installation of softwares :-
Remember, that you should install only the softwares useful to you:-
x264 and x265 are a must for any PC
  • vlc :- use
    sudo apt-get install vlc
    this will install vlc in Ubuntu, along with most of all the required codecs.
  • chromium-browser :- use
    sudo apt-get install chromium-browser
    This install Chromium Browser in Ubuntu, and believe me it's quite better than Google Chrome, because it's open source and even Google Chrome is based on Chromium.
  • codeblocks :- use
    sudo apt-get install codeblocks
    This will install Codeblocks IDE on Ubuntu, an awesome IDE for programmers.
  • sublime text :- use
    sudo apt-get install sublime-text-installer
    This will install Sublime Text 3 in Ubuntu, which is a very powerful text editor, available in Ubuntu.
  • Oracle Java :- use
    sudo apt-get install oracle-java8-installer
    This install Oracle Java 8 into the Ubuntu. But this works ONLY if you've added the oracle java repo.
  • Netbeans :- use
    sudo apt-get install netbeans
    This is a very powerful IDE for JAVA. This will i
    nstall Netbeans in Ubuntu.
  • x264 Codec for Video Player :- use
    sudo apt-get install x264
    sudo apt-get install libx264-148
    sudo apt-get install libx264-dev
    This will install x264 codec in Ubuntu. It's the codec for playing videos.
  • x265 Codec for Video Player :- use
    sudo apt-get install x265
    sudo apt-get install libx264-79
    sudo apt-get install libx265-dev
    sudo apt-get install libx265-doc
    This will install x265 codec in Ubuntu. It's the codec required for playing videos with newer codec encoding.
  • wine :- use
    sudo apt-get install wine
    this will install wine in Ubuntu, which is the Windows Apps Installer on Ubuntu. It is compatible with quite many useful Windows Desktop apps, but still not all. You'll find it useful, though.
So, that's all for the basically required softwares in Ubuntu.
Other than this installation of
are quite nicely explained in their official sites.






Thanks for going through my blog,
author CZ7,
Allahabad
India