Category Archives: Ubuntu 11.10

Ubuntu 11.10 (Oneiric Ocelot) – the latest stable version of Ubuntu – the most popular Linux based operating system for common desktop users as well as server.

gufw - firewall configuration tool

Firewall for Ubuntu 11.10

Due to increased ‘online security risks’ in past few years, Firewall is a mandatory application/software these days, for everybody. When you’re using Ubuntu 11.10 (or any other Linux based operating system such as Debian, Linux Mint, openSUSE, Fedora etc) then you shouldn’t worry much about security because a packet filtering system called – ‘netfilter‘ is already there (shipped with Linux kernel) by default. iptables provides a complete suite of commands to configure/control each incoming/outgoing packets – thus it provides a highly flexible and powerful firewall solution.

iptables has only command line interface (and it’s not so easy to become a Guru of iptables), which creates some difficulties for newbies who just want to use some basic features of it’s underlying packet filtering system (I mean – netfilter). That’s why there are lot of front end applications available with graphical user interface (GUI) for iptables, and it’s really very helpful for absolute beginners. So this post is written for beginner users – who want to get started with Firewall on Ubuntu. Firewall configuration allows you to configure individual ports, common p2p, allow/block default ports for programs etc.

gufw - firewall configuration tool

In Ubuntu, one such application is installed by default – named as – Uncomplicated Firewall (ufw). So all you need to do is to install its front end. gufw is the front end for ufw, it has very simple GUI with a lot of powerful features and it’s available in official package repository – you can install it in a click – from Ubuntu Software Center or by using a simple command.


Install firewall in Ubuntu (11.10 – Oneiric Ocelot)

To install gui for uncomplicated firewall – fire up a terminal (Ctrl+Alt+t) and execute the command –

sudo apt-get install gufw

That’s all.. now you’re ready to play with the firewall. have Fun!

Warning!  The above application is intended for common users, so if you’re looking for a complete firewall solution for a server (running Ubuntu server edition or some other Linux distro such as CentOS or RedHat or…) then you should consider using iptables instead of ufw.


how to install MySQL server on Ubuntu 11.10

MySQL is one of the most popular open source Relation Database Management System (RDBMS), used very widely developing database based Applications – it’s specifically very popular in web development (The blog – you’re reading right now, is based on wordpress, which also uses MySQL databases for storing contents such as post, category, comments, and other meta data). Since Ubuntu (11.10 beta 2 – latest version, final is coming within few weeks) has now become the most popular choice for application development, LAMP (Linux, Apache, MySQL and PHP).

most popular open source RDBMS

In Ubuntu 11.10 (based on Gnome 3), synaptic package manager has been removed so you can use Ubuntu Software Center or terminal (or install synaptic package manager in Ubuntu 11.10 (Oneiric Ocelot) if it’s you favorite application for managing application – although due to some major improvements in Ubuntu Software Center you might not need it anymore).

In Ubuntu or any other Linux based systems there are lot of other database programs are also available such as SQLite, mongoDB, H2, CouchDB, etc but MySQL is probably the most reliable, fast and powerful database – although it depends on the type of application or your interest.

 Installing MySQL in Ubuntu 11.10 – Oneiric Ocelot

I prefer Terminal for managing applications, as I think it’s very handy, although installing new softwares/Apps from Software center is also very simple – just search for the mysql server meta package (if you don’t know the actual name of the package then search using name of equivalent proprietary software, e.g if you search for Photoshop then you will get GIMP) which will automatically select the latest version and click on Install button….and wait for the download/installation procedure to finish and you’re done!

1. Open a terminal (Ctrl+Alt+t) and execute the following command(s)

sudo apt-get install mysql-server

2. During the installation process – you will be prompted to set the password for root user (for MySQL server).


Then, enter the password again (for confirmation) and the installation process will complete within a minute.


3. That’s’re successfully installed the mysql server, client and other dependent packages successfully.

Login to MySQL Server in Ubuntu @localhost

using mysql-server in localhost

Now, you’ve mysql program installed on your computer, you can start creating databases, tables, users ..whatever you want! Login using terminal or install a query browser tool (search in Software Center). In terminal execute the command –

mysql -u root -h localhost -p

Then enter your root password (you entered during installation – step#2 ) and you will get the mysql prompt.


Just for testing purpose, lets create a database. Execute the following commands –

create database forfun;
show databases;

Have Fun!


webcam software/driver for Ubuntu 11.10

After installing some must have apps on Ubuntu 11.10, you might have missed few things e.g if you’re using webcam either on Desktop/PC using USB (or other port) or in laptop or netbook, you need to install the driver software for your webcam, because it is very likely that your webcam manufacturer doesn’t supply driver software for Linux based OS such as Ubuntu (e.g I’m using Logitech Webcam, and there is no official software for GNU/Linux platform, although it’s available for Microsoft Windows – with advanced features and configure options to use/control webcam more effectively, e.g there is no option for controlling the LED indicator attached near the camera lens, in Linux based software. Similarly zoom in/out ..and a lot of other features are not available in any open source alternative).

Here is a snapshot (outside view from my Logitech webcam) – running cheese on Ubuntu 11.10, with Gnome Shell


Cheese Webcam Booth – best Webcam Software

On Ubuntu 11.10 (Oneiric Ocelot) – there are many webcam softwares are available but unfortunately, none of them have features – equivalent to that we get with native drivers available for Windows. Anyway, it does have the basic features such as capturing pictures/photos (in normal and burst mode, count down timers are also available), recording videos (with different resolutions options are also available) and some funky graphical effects (it’s cool). The application name is ‘Cheese’ – the version 3.0 has arrived earlier this year, with a lot of extra features, cheese is (probably) the best application for webcam, on Gnome based Linux distributions. Cheese 3.0 requires Gnome 3 (although older versions run smoothly on Gnome 2.*).

Cheese : Webcam Software for Ubuntu
Cheese - Webcam Software

How to install Cheese Webcam Booth in Ubuntu 11.10

You can either install it from Ubuntu Software Center (search for ‘cheese’  and click on install) or Command Line interface – terminal.


Open a terminal (search or hit Ctrl+Alt+t) and execute the following command(s) –

sudo apt-get install cheese

Have Fun! check out the preferences and effects – for other features/options.



how to install skype on ubuntu 11.10

If you have installed Ubuntu 11.10 (latest version : beta 1, final is coming on Oct 13th) then first you would need to install some basic applications ( Recommended post – top things to do after installing ubuntu 11.10) to begin, e.g a VoIP software – that can be used to make free calls (audio/video) over the internet. Google talk or gtalk is one of such applications but it’s not available for Ubuntu or Linux distros.

For text/voice chat there is another good program – skype, although Ubuntu 11.10 has one such program (installed by default) – Empathy which can be used for text chat, video calls, audio calls etc but skype is probably better than that. Besides text chat or audio/video calls over the web, skype can also make calls to phone/mobile at some rates and one of the most cool feature is audio/video conferencing. Other great features include – screen sharing, file sharing etc.

Skype is based on peer to peer protocol and hence it provides better quality as compared to other chat client. That’s why skype is the most popular chat application. In Ubuntu 11.10 (oneiric ocelot) skype has been added in official package repository –  so you can install it in a couple of click, right from the Ubuntu Software Center.


Installing Skype on Ubuntu 11.10 – oneiric ocelot

Open Ubuntu Software Center and search for ‘skype’ , then click on install and authenticate yourself (enter your ubuntu login password) to begin download/installation process.


Or Install skype from Terminal

sudo apt-get install skype

how to install jdk on Ubuntu 11.10

Java is one of the most popular programming language and its popularity has undergone an exponential growth (probably because it’s well suitable in distributed environment – you can use Java to develop cool web application with a lot of complex features as well as in developing sophisticated desktop applications, and it’s platform independent – ‘write once and run everywhere‘) in fast few years.

Similarly Ubuntu (latest version : Ubuntu 11.10 beta 1) has become the most popular Linux distro – for desktop environment. That’s why, Ubuntu is now considered as a great platform for developing Java applications.

Anyway, if you are an Ubuntu user and going to start learning Java or a java programmer/developer – want to start coding on Ubuntu, this post is about installing Java Development Kit (JDK) on Ubuntu 11.10 (although it is expected to work on other Debian based Linux distro too). On the other hand if you’re an Ubuntu user, interested only in running java applications then you don’t need to install jdk (it has lot of components which is not required for executing a java program/software) – instead you just need to install jre on Ubuntu 11.10 i.e java runtime environment (includes Java Virtual Machine, for executing java bytecode/class).

Java - jdk for Ubuntu 11.10

Installing Java Development Kit (JDK) on Ubuntu

There’re many JDK available thesedays. One of the most popular – open source jdk is openjdk. OpenJDK is well compatible with Ubuntu/Linux and it is available in official repository – so you can install it a click.

install openjdk on Ubuntu 11.10

Open a terminal (Ctrl+Alt+t) and execute the command(s) –

sudo apt-get install openjdk-7-jdk

OR you can install sunjdk

Update1 : The sun jdk isn’t included with the official repository, so you first need to add a PPA for that; Thanks to Casier :).

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

That’s All..have fun in programming in Java, with Ubuntu!