Category Archives: Ubuntu 12.04

postman image uploader

Postman – A simple image uploading application for Ubuntu/Linux Mint

Postman is a nice little application that can upload your images to various services, currently it supports Google Plus, Picasa, Flickr, Ubuntu One.

It’s an easy to use application, with an awesome looking graphical interface and minimal set of features, but it does support drag and drop feature for image upload. You can also set basic attributes for the images such as title and description.

postman image uploader

Installing Postman in Ubuntu 12.04/12.10 (or Linux Mint 13/14)

If you prefer Ubuntu Software Center, then you can install it from there or just install using the command –

sudo apt-get install postman-image-uploader

Or you can install it from the PPA

sudo apt-add-repository ppa:schumifer/postman
sudo apt-get update
sudo apt-get install postman-image-uploader

setup VPN (Virtual Private Network) connection in Ubuntu 12.04/12.10

VPN (Virtual Private Network) connections are great for those who want higher degree of security on the Internet. All of your web traffic will be encrypted. So even if you’re browsing a non-ssl website – your information (e.g login details) is always safe with VPN.

So even if you’re just a web surfer or a heavy torrent downloader you can try VPN to save yourself from the common spy (your ISPs and goverment) and it will also allow you to bypass geographical restrictions (it means if you use a US based VPN then you can browse CBS or Hulu videos from anywhere in the world).

Which VPN provider to choose ?

There are lot of VPN providers, I recommend Private Internet Access (I’m using it – and it’s working great) – it’s good and costs only few bucks a month. If you’re using other VPN provider then you may have to adjust few things according to their recommendation.

Setting up VPN on Ubuntu / Linux Mint

step 1. Go to Network settings and create a new interface for your network – select VPN.


Then a new dialog will appear to select the interface type – select VPN .

New Interface - VPN

step 2. Then select the VPN type – choose PPTP (Point to Point Tunneling Protocol).


step 3. Now – add your VPN account details (gateway, there are various gateway you can choose from here is the list of gateways).

vpn-provider - details

step 4. After adding some basic details for your VPN provider, go to advanced settings and enable MPPE.



step 5. Now – enable VPN and enjoy the higher degree of security :)

That’s all, your VPN setup is done and you can switch between vpn or direct access – just in single click.

Note: using vpn may slow down your browsing experience, it’s not recommended when your connection speed is too slow.


How to Install Nginx web server on Ubuntu 12.04/12.10

Nginx is a lightweight web server (HTTP, SMTP, IMAP, POP3 ..). It has very low memory footprints with higher degree of concurrency. It’s a free and open source software, runs on all major OS (Unix, Linux, BSD, Mac OS X, Microsoft Windows and more).


Setup Nginx on Ubuntu (12.04) LTS Server

Nginx is already available in Ubuntu repository, but it’s very outdated (it may be ok for development or testing but not for deployment) so for production environment you should install the newer version – either from the source or PPA.

1. Update

sudo apt-get -y update
sudo apt-get -y upgrade

2. Dependencies

For adding ppa you need to install the python-software-properties package.

sudo apt-get -y install python-software-properties

3. Install nginx

sudo apt-add-repository -y ppa:nginx/stable
sudo apt-get -y update
sudo apt-get -y install nginx

4. Start the server!

sudo service nginx start

Now, move on to the address (IP address of your VPS or the domain name or the localhost(in case of development environment)). You should see the default page served by nginx.

5. setup server configs

For editing file over the ssh, you can use a command line editor such as Vi or Nano. I recommend nano if you want a text editor without any learning curve.

Install Nano, a lightweight text editor

sudo apt-get -y install nano

Then create a server configuration file for your app/site. (you could also just edit the global config(/etc/nginx/nginx.conf), it’s fine if you’ve only one app/site running on a virtual private server but if you plan to deploy multiple apps/websites to a single VPS – then you should create seperate configs for each website)

sudo nano /etc/nginx/sites-available/

After creating the config file (if you don’t know how – then read the official tutorials), create a symlink

sudo ln -nfs /etc/nginx/sites-available/  /etc/nginx/sites-enabled/

Now, restart the server!

sudo service nginx restart
upgrading to Ubuntu 12.10

How to upgrade to Ubuntu 12.10 from 12.04

Ubuntu 12.10 “Quantal Quetzal”  has released, with a lot of new exciting features. So you’re running Ubuntu 12.04 LTS now, and you’re interested in the shinny features of 12.10, then you may want to upgrade now (or you can do a fresh install (12.10), in another partition/drive)

Upgrading to Ubuntu 12.10, from 12.04 LTS is very easy, but you must always have a backup of all your important data (to another hard disk or online such as Dropbox, Ubuntu One or Amazon S3).

First of all, Back up all your important data

Then, start Update Manager. Update the settings, so that it can notify you about the new version (by default it’s set for LTS only).


Now, restart the update manager and click on check to reload the package information. Now you should see the upgrade notification “New Ubuntu release 12.10 is available” at top.

upgrading to Ubuntu 12.10


Now, read the release notes and click on upgrade to start the upgrade process.


It may take time depending on your internet connection, once the process is complete, restart your computer and enjoy the cool features in latest Ubuntu release (12.10).

NOTE : If you prefer a solid and stable distribution over the new one with latest cool stuffs, then better stick with LTS version, specially in production environment or any situation where stability/compatibility is critically important. e.g in server environment. But for most of the desktop users, that might not be an issue, or you could run LTS as primary OS (for work) and the latest one as secondary OS in other partition/drive.

Removing a PPA from software-sources

How to remove a PPA in Ubuntu 12.04/12.10

PPA(Personal Package Archive) is great  for  installing new and cool apps/utils in Ubuntu or similar GNU/Linux distro such as Linux Mint etc. Due to PPA, publishing and distributing apps has become very easy.

Sometimes you may want to remove an application installed using PPA (may be because some sort of conflict occurred between the app installed from official repository and PPA) or may be you added a wrong PPA address and you get some error messages (on terminal, e.g file not found) or update manager is not working properly due to broken PPA etc. In that case, just follow any of the method (to uninstall the ppa) –

Removing a PPA address in Ubuntu 12.04/12.10/.. Linux Mint / similar_distro

Method #1. remove the ppa file(*.list) from  /etc/apt/sources.list.d directory. Open a terminal and execute the command

ls /etc/apt/sources.list.d
ppa_1.list       ppa_2.list       ....  ppa_no_longer_required.list

sudo rm /etc/apt/sources.list.d/ppa_no_longer_required.list


Method #2. If the ppa contains a newer version of standard package, then you have to use the command –

sudo ppa-purge <ppa_address>

ppa_address will be in the format of ppa:name/sub_directory (if required)

(so that it fall back to old version of the application as if there was no PPA)

Removing a PPA from software-sources

Method #3. From Software Sources – go to Ubuntu Software Center -> software sources -> other software (In Ubuntu 12.10, you can directly go to software sources) and uncheck the ppa you want to remove.

Finally, update the package cache, using the command –

sudo apt-get update