Install R on Ubuntu

R is one the best open source programming language used for statistical computing and data analytics.

You can directly install R from its website

Step 1 :Find what distribution of Ubuntu you are using

go to System-Settings -> Details

I am using ubuntu 16.04 LTS ( Xenial )

Step 2 : Got to


Click on Download R for Linux

Step 3 : Click on ubuntu


Step 4 : Choose your .deb file ( I have choosen r-base-core_3.2.5-1xenial_amd64.deb )


Step 5 : Choose open with option and click ok


Step 6 : Click install button. This will install R in your machine


Step 7 : Open a terminal and type R


I am also started diving into R.

Happy learning R !!!!






Install Gimp 2.8 in Ubuntu

Gimp 2.8

Arguably Gimp is the best image editor in Ubuntu ( You can do a lot more than this )

Currently Ubuntu12.04 is running stable version Gimp 2.6.1. Great news is that Gimp 2.8 is available but not directly available through Ubuntu repository.  So I tried 2.8 version and its much better and lot of performance improvements. single-window mode is the best features of 2.8 version.

Install Gimp 2.8 from terminal

Open a terminal and run below commands

sudo apt-add-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp

Now you have successfully installed Gimp 2.8 !

Open dashboard and type Gimp. See below screen shot of Gimp 2.8 in single-window mode.

Gimp 2.8

Gimp website  —

For Gimp 2.8 features —

Hope Gimp 2.8 will include in the Ubuntu Repository soon. Please share your experience.

Install Microsoft fonts in Ubuntu 12.04

Microsoft fonts in Ubuntu 12.04

Many developers and programmers might be looking for Microsoft Windows fonts. It is a third part codec for Ubuntu. So sometimes installation will not succeed because third part packages will have some Hash Sum mismatch.

( Hash Sum mismatch :- Ubuntu validates all packages and software which are not in its repository using a Hash value. If this value is not authenticated we cannot install it using apt-get install command or Ubuntu Software center and need to install manually )

So I have provide all methods of installation.

1. Using terminal

Run below command as sudo

$ sudo apt-get install ttf-mscorefonts-installer

2. Using Ubuntu Software Center

Enter ttf-mscorefonts-installer and accept EULA agreement

3. Manual Installation

Go to below website

msttcorefonts debian package

download latest deb package and install using Software Center or Archive Manager.

I have downloaded ttf-mscorefonts-installer_3.4ubuntu3_all.deb

Install it via Ubuntu software Center and enjoy Microsoft Fonts in Ubuntu.

Also read

Install Notepad++ in Ubuntu
Notepad++ – Tips and Tricks
 Remote desktop in ubuntu 12.04
Install Skype in Ubuntu 12.04
Latest version of Oracle database – Oracle 12c
Install Oracle in Ubuntu 12.04

Please comment.

Install Notepad++ in Ubuntu 12.04

Installing Notepad++ in Ubuntu 12.04

Notepad++ is an excellent open source editor. But it is not officially supported for Ubuntu. But we can install it in via Wine. ( Wine is a windows package for Ubuntu)


1. If you doesn’t have Wine installed, install it from Dashboard or terminal using sudo apt-get install wine

2. Go to Notepad++ website and download windows installer ( Direct Link here )

Click on v6.3 installer

Choose Open with Wine Windows Program

Choose language.

Install. create short cut on Desktop

( Note:- I have modified the GUI property using Setting –> Style Configurator –> Default Style )

Alternatively I have a youtube video too

Notepad++ is arguably best free editor in Windows and now you can use it in Ubuntu too.

See also

Notepad++ – Tips and Tricks
Remote desktop in ubuntu 12.04
Install Skype in Ubuntu 12.04
Install Microsoft fonts in Ubuntu 12.04
Latest version of Oracle database – Oracle 12c
Install Oracle in Ubuntu 12.04

Install LAMP on Ubuntu Desktop

Step by step instructions for Installing LAMP on Ubuntu Desktop

LAMP stands for Linux (Ubuntu operating system), Apache ( Web server ), MySQL ( Database ), Php or Perl or Python ( Programming Language).  By default LAMP consists Php.
I have used Ubuntu 12.04 ( Precise Pangolin ) Desktop.LAMP installation in linux distro is pretty straight forward.


1. Sudo privileges to install
2. Internet connection

Step 1 –  Open a terminal

Step 2 –  Installation

Enter below command

$ sudo apt-get install lamp-server^  

( Note that caret(^) is required. Caret denotes it is part of tasksel packages)
It will prompt for MySQL administration password. Please remember the password. We need it to log into mysql.
After a few LAMP installation completed.
Following softwares installaed

1. Apache 2.2.22
2. Php 5.3.10
3. MySQL 5.5.22

Step 3 – Find and verify the versions installed

a) Verify Apache version

$ apache2 -v
Server version: Apache/2.2.22 (Ubuntu)
Server built:   Feb 13 2012 01:37:27

b) Verify Php version

$ php -version
PHP 5.3.10-1ubuntu3.1 with Suhosin-Patch (cli) (built: May  4 2012 02:21:57)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

c) Verify MySQL version

$ mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 55
Server version: 5.5.22-0ubuntu1 (Ubuntu)

Step 4 –  Connect to MySQL

Enter the below command and provide the password we supplied at the time of installation.

$ mysql -b -h localhost -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 56
Server version: 5.5.22-0ubuntu1 (Ubuntu)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
| Tables_in_mysql           |
| columns_priv              |
| db                        |
| event                     |
| func                      |
| general_log               |
| help_category             |
| help_keyword              |
| help_relation             |
| help_topic                |
| host                      |
| ndb_binlog_index          |
| plugin                    |
| proc                      |
| procs_priv                |
| proxies_priv              |
| servers                   |
| slow_log                  |
| tables_priv               |
| time_zone                 |
| time_zone_leap_second     |
| time_zone_name            |
| time_zone_transition      |
| time_zone_transition_type |
| user                      |
24 rows in set (0.01 sec)

Step 5 – Test Apache installation

a) Open a web browser

b) Enter below url


If browser displays below texts then Apache is working is fine

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

You can start building websites using LAMP packages.

Step 6 – Test Php installation

Open a text editor and enter below text and save as “one.php”

echo “;;

Now open a browser and type below url and press enter or refresh

see the result as shown

Install oracle 11g on windows 7

This article clearly describes installation of Oracle 11g release 2 on Windows 7
1. Operating system – Windows 7 64 bit operating system
2. Hard disk space – At least 2 GB free space
3. System RAM – At least 512 MB
4. Administrator privilege to install

1) Download Oracle 11g release 2

1Go to Oracle website 
2. Log in. You need to have an oracle account to download
3. Make sure you are downloading Oracle 11g release 2 for Windows 64 bit operating system.
4. Create a Oracle11g folder in desktop.

5.Extract both zip files into same folder. ( This will help us while installation)

2) Installation


1. Goto Oracle11g folder in desktop.
2. Open database folder

3. Right click setup.exe and select Run as Administrator

Right click and run as administrator

4. This is will launch Oracle Universal Installer. In landing page it will prompt you to put your email address for any future security update or support. Click Next.

Enter the email if you wish to receive support

5.  Next step is to choose the database options. There are 3 options. It is best to choose ‘Create and Configure database” if you do not sure how to install database manually. Click Next.

Select installation option – Database

6. Next we choose ‘Desktop Class’. This is for normal desktops and laptops. If you wish to install server you could choose ‘Server Class’ which is server-based systems. Click Next.

Choose Desktop Class for desktops and laptops

7.  Next step is to provide configuration details

Oracle Base – Base folder. ORACLE_BASE

Software Location – This is called ORACLE_HOME

Global Database Name – This is the database identifier. You need to specify while logging into database. ORACLE_SID

Password – This is administrative password. You must supply Oracle recommended standards for passwords.

Click Next.

Database Configuration Details

8. Next is pre-requisite checks. Wait till it finishes. Sometime it might take a while.

Pre-requisite Checks

9. When finished it will display the window with summary of installation. Click Finish

Installation Summary

10. Next is installation. This might take few minutes.


11. In between it will ask to click ‘Allow Access’  since windows firewall blocked it. Just click ‘Allow Access’

Allow Access

12.   It will create and configure the database if you choose ‘Create Database and Configure’ in step 5.

Database Configuration

13. Password Management. Unlock the account you want and supply password. Click OK

Password Management

14. Database installation successfully completed. Click Close.


Congratulations ! You have successfully installed Oracle 11g on Windows 7 .

Please post your comments below. 

Installing Oracle 11g on Ubuntu

This article clearly describes installation of Oracle 11g release 2 on Ubuntu 10.10 desktop

1. Operating system – Ubuntu 10.10 32 bit operating system (Maverick Meerkat)
2. Hard disk space – 2 GB free space
3. System RAM – At least 512 MB

1) How to install Ubuntu 10.10
Go to Ubuntu Home page Ubuntu and download Ubuntu 10.10 desktop and install.

2) Download Oracle 11g release 2
1Go to Oracle website 
2. Log in. You need to have an oracle account to download
3. Make sure you are downloading Oracle 11g release 2 for 32 bit operating system.
(Direct link – Oracle 11g R2 linux 32 bit opertaing system )
4. Extract both zip files into one folder
E:- Create a Oracle11g folder in desktop and copy both folders into it.

Now we have Ubuntu operating system and Oracle installations files ready.

3) X Server configuration
For Oracle installation in Linux machines need X server configuration.

1. Open a terminal
2. Connect as root ( You need to have root account )
root@ubuntu$ su – root
3. run ifconfig
root@ubuntu$ ifconfig
Find the ip address. (find for inet addr looks like format )
Say,  ip address is
4. run  below command
root@ubuntu$ xhost +
5. To verify X Server configuration you can use xclock command
root@ubuntu$ xclock
If a clock pop ups server configuration is fine.

4)  Updating packages
If you ave the fresh install of Ubuntu you can skip this step.
Otherwise run below commands

root@ubuntu$ apt-get update
root@ubuntu$ apt-get dist-upgradeRestart
root@ubuntu$ reboot

Install missing libraries
root@ubuntu$ apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm

5) Updating shell and system configurations
Run below commands in sequential order and enter password for your oracle user

root@ubuntu$ cd /bin

root@ubuntu$ ls -l /bin/sh
root@ubuntu$ ln -sf bash /bin/sh
root@ubuntu$ ls -l /bin/sh
root@ubuntu$ lrwxrwxrwx 1 root root 4 2008-05-01 22:51 /bin/sh -> bash
root@ubuntu$ cd /root
root@ubuntu$ addgroup oinstall
root@ubuntu$ addgroup dba
root@ubuntu$ addgroup nobody
root@ubuntu$ usermod -g nobody nobody
root@ubuntu$ useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
root@ubuntu$ passwd oracle
root@ubuntu$ mkdir /home/oracle
root@ubuntu$ chown -R oracle:dba /home/oracle

root@ubuntu$ ln -s /usr/bin/awk /bin/awk
root@ubuntu$ ln -s /usr/bin/rpm /bin/rpm
root@ubuntu$ ln -s /usr/bin/basename /bin/basename
root@ubuntu$ mkdir /etc/rc.d
root@ubuntu$ for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done

root@ubuntu$ mkdir -p /u01/app/oracle
root@ubuntu$ chown -R oracle:dba /u01

Change the run level if it is 2 or 3 (It should be 5 for oracle install)
root@ubuntu$ telinit 5

Now we need to update few configuration files

1. /etc/sysctl.conf
Run below command and add the following entries at the end of the file.
root@ubuntu$ gedit /etc/sysctl.conf

fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

2. /etc/security/limits.conf
Run below command and add the following entries at the end of the file.
root@ubuntu$ gedit /etc/security/limits.conf

oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

3. /etc/pam.d/login

Run below command and add the following entries at the end of the file.
root@ubuntu$ gedit  /etc/pam.d/login

session required /lib/security/
session required
Run below command or re-start
root@ubuntu$ sysctl -p

6) Oracle Installation
Now we are almost ready for Oracle Installation.
Log in as oracle user.

user@ubuntu$ su – oracle

For oracle user also need x server setup. Try to run xclock command. If it pop ups we are fine. Otherwise go to step 3)

oracle@ubuntu$ xclock

Go to the folder we have extracted the Oracle 11g.
oracle@ubuntu$ cd /home/user/Desktop/Oracle11g
oracle@ubuntu$ cd database1
oracle@ubuntu$ ./runInstaller

Wait few seconds. It will launch Oracle 11g installation wizard.

Starting Oracle Universal Installer…

Checking Temp space: must be greater than 80 MB.   Actual 80115 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3917 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall

Click Next. Chose custom installation. Enter database configuration parameters while prompting. In pre-requisite check it will show there are some library files are missing. Just ignore those and continue installation.

6) Setting environment variables

First make sure
1) /u01/app/oracle/product/11.2.0/dbhome_1 is exists
2) /u01/app/oracle/product/11.2.0/dbhome_1/bin exists
3) orcl is the tnsname specified at installation.
Add the below entries in /etc/profile as root user

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export PATH=$PATH:/u01/app/oracle/product/11.2.0/dbhome_1/bin
export ORACLE_SID=orcl

7) Running Oracle 11g first time
Log in as oracle

oracle@ubuntu$ echo $ORACLE_HOME

oracle@ubuntu$ echo $ORACLE_SID

oracle@ubuntu$ sqlplus /nolog
It connect to SQL as idle instance. Execute below commands. Enter password created for sys at installation. Start database using startup command


SQL> connect sys as sysdba
Enter password:
SQL> startup

SQL> select count(*) from all_objects;


Congratulations ! You have successfully installed Oracle 11g on Ubuntu.

Related posts

Install Oracle 11g on Windows 7
Oracle interview questions and answers

Please post your comments below, share this link and click like button.