Ubuntu 12.04 LTS Precise Pangolin: Desktop Essentials

In a previous article I showed you how easy it was to install Ubuntu 12.04 LTS and by now you should be making yourself familiar with the idea of how your desktop works, where your files are stored and some of the basic concepts that make Ubuntu 12.04 LTS Precise Pangolin a truly great operating system.

On the whole it would be true to say that Ubuntu also comes pre-installed with an excellent range of software and for the purpose of installing software Ubuntu maintains its very own Software Centre. Giving you instant access to thousands of free and open-source applications, games, and magazines does make things nice ‘n’ easy but with so much to choose from and for those of us who want to ‘hit the floor running’ it can be a little overwhelming (if not time consuming). So the question remains, where do I start?

To get the most out of your computer it is simply a question of what software you can run, what music you can listen to, what videos you can watch and what games you can play. You want to own your desktop and make it do fantastic things, you want familiarity but you also want something different. Choice can be a dilemna but it is purpose of this article is take up the running with a check-list of post install ‘tips and tricks’ that will deliver a fully functional desktop in no time at all. I  am not only going to show you short-cut the Software Centre process but I will also show you how to install a whole host of screensavers, remove the guest account, and install the classic Gnome interface – leaving you with plenty of time on your hands to discover the hidden gems of the Ubuntu Software Centre at your leisure.

So let’s get started …

Additional software sources.

Before we begin we must make sure that our software sources list is up-to-date.

You can achive this by simply opening the Ubuntu Software Center icon (found in the Launcher or by searching for the ‘Ubuntu Software Center’ in the search bar of the ‘dash’) and then:

  • Place your mouse over the top bar (near your username), choose Edit > Software Sources
  • From the resulting window choose ‘Other Software’.
  • Tick the checkboxes next to ‘Canonical Partners’ and ‘Canonical Partners (Source Code)’. This repository includes access to software such as Skype and Adobe Reader.
  • Choose the ‘update tab’ to configure your update schedule. A weekly or daily schedule is advised.
  • Click ‘close’ when done thereby allowing the operating system to update itself with the new settings.

Please note,
For the purpose of this article I will not be addressing the use of any Personal Package Archive (PPA). Otherwise known as PPAs, these archives are used to help test pre-release or specialty software.

Using Terminal.

A brief introduction to software installation can be found here, but for the purpose of this article we will be using the Terminal.

By single definition the Terminal is similar to the command line in Microsoft Windows but it differs in the fact that it can perform any operation on the system. It is a very powerful application, but after a little practice you will discover that it is a very easy tool to use.

You can find Terminal by using one of the following methods:

  • Dash > Search for Terminal
  • Dash > More Apps > Accessories > Terminal
  • But my favourite is to simply use Ctrl + Alt + T as a keyboard shortcut.

A helpful guide on this subject can be found here and here but once Terminal is open you will see somthing similar to the following:

username@ubuntu:~$

Let’s digress and just for a quick experiment try the a command. Type in the following (exactly as you see it) or use copy/paste and press the ‘return/enter’ key when done:

date

By doing this you have just requested the system to tell you the time and date. Obviously the exact time and date will be different on your system but you should now see something like this:

Sat Apr 28 15:35:35 BST 2012

And throughout this article that’s as complicated as we will get :-)

Naturally, I would encourage you to read the background information at your leisure but it isn’t necessary as all we are going to do is run the following types of command in order to perform an installation request:

sudo apt-get install <package_name>

or to install multiple packages we will use:

sudo apt-get install <package_name_1> <package_name_2> <package_name_3>

In reverse or if you ever make a mistake and you need to remove a package, simply use the following command format (replacing <package_name> with the name of the software you wish to remove):

sudo apt-get remove <package_name>

The most important thing to remember is. It may be a little awkward and strange at first (and I have merely introduced you to the subject), but by doing it this way, you will not only get a true feel for the Linux operating system but you will discover that Terminal is the fastest and most efficient way of getting the job done.

Updating your system

So without further hesitation, let’s jump straight in and use the Terminal to update our system. The commands are a little bit different to what we just discussed but I am sure they will be self-explanatory :-)

Open Terminal and type:

sudo apt-get update && apt-get upgrade

You will be asked to authenticate yourself – so simply enter your password and hit the ‘return/enter’ key.
Terminal will now perform a check on your system to see if any updates are available to you.

If none are available then no further action is required but if updates are available, Terminal will respond by asking you to confirm the update by using either a simply Y (Yes) or N (No) to complete the task.

A large update may take a while to complete but that’s it, to update your system it really is that simple and you can repeat these steps whenever you need to.

Building your desktop

Now we will turn our attention to building the desktop.

So let’s begin by installing a collection of useful utilities by returning to Terminal and typing:

sudo apt-get install flashplugin-installer gsfonts-x11 unace rar unrar p7zip-rar p7zip zip unzip sharutils uudeview mpack lha arj cabextract file-roller acroread geany geany-plugins filezilla calibre gparted

Some of the package names will be familiar to you whilst some others may not, but we have just asked the system to install a collection of tools that includes the Adobe Flash Plugin and the associated fonts, (acroread) Adobe Acrobat Reader, a series of zip/compression utitlities, (gparted) a disk partitioning tool, (calibre) an e-book catalogue and viewer, (filezilla) for FTP, and (geany) a compact text editor that shares some features of a larger IDE.

In the same way we can now consider installing a collection of tools to finish off Libre Office with a global menu bar, provide PDF functionality and incorporate the Mozilla plugins whilst including a Viso-like diagram creator called DIA.

sudo apt-get install dia libreoffice-pdfimport mozilla-libreoffice

While we are here, let’s install the basic tool kit that will enable you to compile from source (you may not want to do anything like this now, but by installing these utilities you will be giving yourself options for the future):

sudo apt-get install build-essential checkinstall cdbs devscripts dh-make fakeroot libxml-parser-perl check avahi-daemon

And to finish up, for those who like options and want to install Google Chromium, in Terminal type:

sudo apt-get install chromium-browser chromium-browser-l10n

Now wasn’t that quicker and easier than searching for and installing each item individually :-)

Building for sound, vision and design

For those who want the very best in audio-visual play back and recording in Terminal type:

sudo apt-get install smplayer libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev libquicktime2 gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-sdl gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly totem-plugins-extra gstreamer-dbus-media-service gstreamer-tools ubuntu-restricted-extras ttf-mscorefonts-installer regionset

This collection of important utilities should provide you with enough media codecs and players to keep you happy for quite a while :-)

For those who want to use their desktop for photography and/or graphic design, in Terminal type:

sudo apt-get install scribus gimp gimp-data gimp-plugin-registry gimp-data-extras inkscape pinta libraw-bin ufraw ufraw-batch and gimp-ufraw rawtherapee

This will install Scribus, Gimp, Pinta and Inkscape with a collection RAW file viewers/editors/plugins for SLR Digital Photography.

How do I remove the guest account

The Ubuntu ‘Guest’ account is installed by default and for those of us who want to keep the login screen nice and tidy, to remove it all we need to do is this:

In Terminal type:

sudo gedit /etc/lightdm/lightdm.conf

This will open the ‘lightdm’ configuration file in your text editor.
At the bottom of this file, underneath the existing copy add the following line:

allow-guest=false

Now save the file, close it and reboot.
The Guest account should no-longer be visible!

Restoring the screensaver

Ubuntu 12.04 LTS Precise Pangolin does not feature any screensavers in the standard installation and if you are like me (and miss them) this can fixed like so.

Run the following command to remove the existing gnome-screensaver package:

In Terminal type:

sudo apt-get purge gnome-screensaver

Next, run the following command to install the ‘xscreensaver’ packages:

In Terminal type:

sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra

Next, run the following command to create the ‘xscreensaver autostart file’.

In Terminal type:

sudo gedit /etc/xdg/autostart/screensaver.desktop

This will open a newly created file in your text editor. Simply copy and paste the following lines into that file and click ‘save’:

[Desktop Entry]
Name=Screensaver
Type=Applicaton
Exec=xscreensaver -nosplash

Close the file, reboot, search for screensavers in the ‘dash’ and configure as required and you will have as many screensavers as you will ever need …

Fall-back to the Gnome desktop environment

Some people like Unity, some people do not; (who am I to judge) but if you ever find yourself wishing to see the face of Gnome back on Ubuntu simply open Terminal and enter the following commands, one line at a time (press the ‘enter/return’ key at the end of each line):

sudo apt-get install gnome-session-fallback
sudo apt-get install indicator-applet-appmenu
sudo apt-get install gnome-tweak-tool

Each command may take a few minutes to complete but when done, simply ‘reboot’ your computer and at the login prompt, use the small ‘cog’ icon to change the user interface style.

You will have the choice of Unity, Gnome Classic or Gnome 3.

On the other hand, if you do not want to do this right now and just in case you are curious, Gnome Classic looks like this:

Whereas Gnome 3 looks like this:

And what about security they ask …

Last but not least we want to make our desktop environment safe and secure and to do this we need an anti-virus solution.

In Terminal type:

sudo apt-get install clamav clamtk

This will install ClamAV, an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats.

When the installation is complete simply search for ClamTK in the ‘dash’, it is very easy to use, the software also runs on Windows and all updates are made free of charge. See http://www.clamav.net/ for further details.

And finally, to finalise our ‘desktop starting point’ we now want to install a firewall.

Thank fully, Ubuntu have made this an easy choice that simply requires you to install the ‘Uncomplicated Firewall’. Otherwise known as UFW, it is designed to be very simple and is packaged with an intuitive user interface. According to the developers,

“The reason ufw was developed is that we wanted to create a server-level firewall utility that was a little bit more for ‘human beings’”

They may call it simple (and it is), but don’t underestimate its power.

In Terminal type:

sudo apt-get install gufw

When the installation is complete you will be able to find it in the ‘dash’ under UFW but for now this is where I will leave you as I shall come back to the UFW and the art of firewall configuration at a later date.

If you followed this article you should (by now) have a desktop swimming with ‘apps’ and more than enough to get you started. And I think it’s time to let you play …

I hope you enjoy using Ubuntu 12.04 LTS Precise Pangolin.

If you enjoyed reading this post, you’ll love Learnable; the place to learn fresh skills and techniques from the masters. Members get instant access to all of SitePoint’s ebooks and interactive online courses, like Ubuntu Linux.

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

  • http://dragannikolic.com Dragan

    Thank you for sharing these essentials

    However, before taking this OS into consideration one should know that Ubuntu:

    - uses more resources than necessary and has serious memory leaks.

    - still lives in a world of desktop computing, while most of users have switched to mobile computing and need power saving options.

    - has mediocre, if not unusable, software repository.

    This is what I’ve noticed from my 5-minute tour around it, so go easy on me :).

    • Elmar H.

      I can only contradict your opinion. Ubuntu has an exelent desktop expierence and every full animaed desktop needs its performance. If you look at the server version with no GUI, you will get an exelend performance on low level mashines. For mobile devices there are special versions
      and one of the most interesting versions is ‘Ubuntu for Android’. That is an inovating project. Your problem with the software repository I only can ingnore.

      • Elmar H.

        Sorry, I forgotten to share my exp. I have some Ubuntu 10.4 LTS Server making it’s job for nearly 2 years now without any problems (MySQL, Apache, nginx, PHP, LDAP, Samba). Not a single restart caused by OS problems. I never had any problems with the rep and the updates. You will get never the newest but a well tested version.

    • Max

      Dragan,

      You made the mistake by commenting on something you obviously know very little about. Please refrain from spreading FUD.

      I’ve been using Ubuntu as my primary PC for 6 years now (since Ubuntu 6.06 LTS) and haven’t had any “memory leak” issues.

      I will admit, my install of 11.04 had power issues (2.6 kernel branch) w/ my ThinkPad. I would only get 2 hours, tops. Now, with Ubuntu 12.04, I’m getting 4 hours easily; same exact laptop.

      The Ubuntu Software Center is works pretty well in my opinion. I’ve never had a problem with it since it first debuted.

      Spending 5 minutes w/ an OS and having the audacity to comment on it in such a fashion is ridiculous!

      Please, Please, and more PLEASE: Think before you post. In most cases, its not worth embarrassing yourself.

  • Don VanDemark

    Thanks for this! Always great to have a starting place. Linux/Ubuntu folks normally have to attitude of “you add what you want”. This is a good way to get introduced to those things you may not know you want.

  • wantingflash

    My computer wouldn’t be complete without the first two items to the right of dotdeb.com. Netpix, and the Text Reader.

  • Patrick

    I can’t help but feel that the author is pushing his own software preferences upon unsuspecting users, and encouraging them to install all kinds of things they don’t need in a manner which may confuse them. Most people don’t need 10 different compression tools, an FTP client, or an advanced text editor. And if they do, they don’t necessarily want to use the ones the author has picked out here. Similarly, I don’t imagine that many people want to use this author’s favourite browser, word processor, or graphic editing software just because he likes them. By throwing a list of lengthy and confusing (to a novice user) terminal commands at people, you’re reducing their ability to make their own informed choices about what software is right for them.

    I’m also not sure that showing off terminal commands to users who might not really understand what they’re doing (or the potential dangers involved in using the terminal) is a responsible thing to do. There’s really nothing wrong with using Ubuntu’s excellent graphical Software Center to hand-pick the software you really want and installing it using a simple interface. Not to mention getting the benefits of user reviews and detailed information about what you’re installing.

    Overall I think this article is actually quite sinister in its intent, essentially a combination of “look how clever I am, I use the terminal for everything” and “install this software because I say so”. My advice to the novice user: ignore this article, and make your own informed software decisions. Copying and pasting these lists of software packages you’ve never heard of is not a good idea – you’ll probably never use most of them. Even more importantly, always adhere to this security rule: never type anything into the terminal unless you fully understand the commands you’re using.

  • http://timwahrendorff.de Tim

    Developing webapplications in PHP and Java with ubuntu since 2008…

    What Dragan wrote about ressources is true for Mac OS and Windows, too…

    Memory leaks mostly happen with java apps, it is an issue with java that exists on Win and Mac, too.

    Windows and Mac OS doesn’t even have a software respository? And to say the repository is mediocre or unusable is kind of ignorant if not really stupid.

    Ubuntu breaks with the pure Dektop computing by sporting Unity, which is designed to work on dektops, smartphones, smart tvs, tablets and so on…

    Dragan, you sure only spend 5 Minutes with ubuntu. How you could possibly test intensivly and discover all those problems you mentioned in 5 Minutes is a mystery to me.

  • Clyde W. Phillips Jr.

    Ubuntu has finally nailed a destop for pc’s that functionaly replaces windows for me. This is a real alternative with support, in other words your page here, which is much needed and sometimes harder to find amidst the plethora of true techie info one normally wades into.

    My hardy appreciation for all who’s labor of love I now love. Thank you all!

  • metasansana

    I was supprised to see this on sitepoint. This is a great write up. It makes a few things seem trivial but
    thats ok (you don’t want to scare people away). Great job dude!

    @Dragan you have kicked a diamond and called it coal.

  • http://plainshunter.com Bill

    Nice write up. Explains things in good detail. I have one question though. Since this appears to be written towards new Ubuntu users who probably aren’t familiar with Linux or terminal for that matter, why go into so much command line stuff? Nearly all of that could be done with the Software Center. Just a thought.

  • Chelo

    Hi, this is good article, I recently install all these essentials in my ubuntu os, after restart my laptop I have many applications crashing, I don’t know why. May be if someone have the same problem can share the solution. thanks