giovedì 10 febbraio 2011

Install Tomcat 6 on Ubuntu 10.04 by apt-get

Apache Tomcat is a web container that allows you to serve Java Servlets and JSP (Java Server Pages) web applications.

The Tomcat 6.0 packages in Ubuntu support two different ways of running Tomcat. You can install them as a classic unique system-wide instance, that will be started at boot time and will run as the tomcat6 unpriviledged user. But you can also deploy private instances that will run with your own user rights, and that you should start and stop by yourself. This second way is particularly useful in a development server context where multiple users need to test on their own private Tomcat instances.

System-wide installation

To install the Tomcat server, you can enter the following command in the terminal prompt:

sudo apt-get install tomcat6
This will install a Tomcat server with just a default ROOT webapp that displays a minimal "It works" page by default.

Configuration

Tomcat configuration files can be found in /etc/tomcat6. Only a few common configuration tweaks will be described here, please see Tomcat 6.0 documentation for more.

Changing default ports

By default Tomcat 6.0 runs a HTTP connector on port 8080 and an AJP connector on port 8009. You might want to change those default ports to avoid conflict with another server on the system. This is done by changing the following lines in /etc/tomcat6/server.xml:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
               redirectPort="8443" /&rt;
...
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /&rt;

Changing JVM used

By default Tomcat will run preferably with OpenJDK-6, then try Sun's JVM, then try some other JVMs. If you have various JVMs installed, you can set which should be used by setting
JAVA_HOME in /etc/default/tomcat6:

JAVA_HOME=/usr/lib/jvm/java-6-sun

Declaring users and roles

Usernames, passwords and roles (groups) can be defined centrally in a Servlet container. In Tomcat 6.0 this is done in the /etc/tomcat6/tomcat-users.xml file:


Using Tomcat standard webapps

Tomcat is shipped with webapps that you can install for documentation, administration or demo purposes.

Tomcat documentation

The tomcat6-docs package contains Tomcat 6.0 documentation, packaged as a webapp that you can access by default at http://yourserver:8080/docs. You can install it by entering the following command in the terminal prompt:

sudo apt-get install tomcat6-docs

Tomcat administration webapps

The tomcat6-admin package contains two webapps that can be used to administer the Tomcat server using a web interface. You can install them by entering the following command in the terminal prompt:

sudo apt-get install tomcat6-admin
The first one is the manager webapp, which you can access by default at http://yourserver:8080/manager/html. It is primarily used to get server status and restart webapps.
[Note]
Access to the manager application is protected by default: you need to define a user with the role "manager" in /etc/tomcat6/tomcat-users.xml before you can access it.

The second one is the host-manager webapp, which you can access by default at http://yourserver:8080/host-manager/html. It can be used to create virtual hosts dynamically.
[Note]
Access to the host-manager application is also protected by default: you need to define a user with the role "admin" in /etc/tomcat6/tomcat-users.xml before you can access it.

For security reasons, the tomcat6 user cannot write to the /etc/tomcat6 directory by default. Some features in these admin webapps (application deployment, virtual host creation) need write access to that directory. If you want to use these features execute the following, to give users in the tomcat6 group the necessary rights:

sudo chgrp -R tomcat6 /etc/tomcat6
sudo chmod -R g+w /etc/tomcat6 

Tomcat examples webapps

The tomcat6-examples package contains two webapps that can be used to test or demonstrate Servlets and JSP features, which you can access them by default at http://yourserver:8080/examples. You can install them by entering the following command in the terminal prompt:

sudo apt-get install tomcat6-examples

Using private instances

Tomcat is heavily used in development and testing scenarios where using a single system-wide instance doesn't meet the requirements of multiple users on a single system. The Tomcat 6.0 packages in Ubuntu come with tools to help deploy your own user-oriented instances, allowing every user on a system to run (without root rights) separate private instances while still using the system-installed libraries.
[Note]
It is possible to run the system-wide instance and the private instances in parallel, as long as they do not use the same TCP ports.

Installing private instance support

You can install everything necessary to run private instances by entering the following command in the terminal prompt:

sudo apt-get install tomcat6-user

Creating a private instance

You can create a private instance directory by entering the following command in the terminal prompt:

tomcat6-instance-create my-instance
This will create a new my-instance directory with all the necessary subdirectories and scripts. You can for example install your common libraries in the lib/ subdirectory and deploy your webapps in the webapps/ subdirectory. No webapps are deployed by default.

Configuring your private instance

You will find the classic Tomcat configuration files for your private instance in the conf/ subdirectory. You should for example certainly edit the conf/server.xml file to change the default ports used by your private Tomcat instance to avoid conflict with other instances that might be running.

Starting/stopping your private instance

You can start your private instance by entering the following command in the terminal prompt (supposing your instance is located in the my-instance directory):

my-instance/bin/startup.sh
[Note]
You should check the logs/ subdirectory for any error. If you have a java.net.BindException: Address already in use:8080 error, it means that the port you're using is already taken and that you should change it.
You can stop your instance by entering the following command in the terminal prompt (supposing your instance is located in the my-instance directory):

my-instance/bin/shutdown.sh

References

How to download and install prebuilt OpenJDK packages by apt-get

Ubuntu logo

On Ubuntu 10.04, do one of the following:
  • On the Gnome desktop (Ubuntu):
    • In the main desktop menu, choose "Add/Remove ..."
    • In the "Show" toggle box, select "All Open Source Applications"
    • Search for "OpenJDK"
    • Select the "OpenJDK Java Runtime" (openjdk-6-jre)
    • Confirm the installation of community maintained software
    • Press the "Apply Changes" button
  • On the KDE desktop (Kubuntu):
    • In the main desktop menu, choose "Add/Remove Programs"
    • In the "Adept Installer" search for "OpenJDK"
    • Select the "OpenJDK Java Runtime" (openjdk-6-jre)
    • Press the "Apply Changes" button
  • On the command line, type:
    $ sudo apt-get install openjdk-6-jre
The openjdk-6-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-6-jdk package.
For more information on how to install Java on Ubuntu, including on versions prior to 8.04, please see the Ubuntu Java Community page.

Fedora logo

On Fedora 9 the OpenJDK 6 runtime and development packages are installed by default during any large-media install, such as from the Fedora 9 DVD.
If installing from a live image, such as a live CD or USB flash drive, add the OpenJDK 6 runtime after the install:
  • To install with the graphical package manager, follow Applications > Add/Remove Software and use search to find the package(s) to install.
  • To install from the command line:
    $ su -c "yum install java-1.6.0-openjdk"
    This package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.6.0-openjdk-devel package. You can also install all the OpenJDK 6 packages, including the API documentation, by using the wildcard java-1.6.0-openjdk*.
On Fedora 8 the OpenJDK 7 runtime and development packages are installed by default during any large-media install, such as from the Fedora 8 DVD, under the name IcedTea. If installing from a live image then follow the above instructions but replace 1.6.0-openjdk with 1.7.0-icedtea.

Red Hat Enterprise Linux, CentOS, etc.

The OpenJDK 6 packages are also available in EPEL, a community-run project which makes Fedora packages available to users of Red Hat Enterprise Linux 5, CentOS 5, and other RHEL 5 derivatives.
First install the package that enables the EPEL repository:
$ su -c "rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm"
Then add the OpenJDK 6 runtime, or the development package and related packages if so desired, by following the instructions above for Fedora.

openSUSE logo

On openSUSE 11.1, do one of the following:
  • On the Gnome desktop:
    • In the "Computer" desktop menu, choose "Install Software"
    • Search for "OpenJDK" in the software installer application
    • Select the java-1.6.0-openjdk package
    • Press the "Apply" button
  • On the command line, type:
    $ sudo zypper install java-1.6.0-openjdk
The java-1.6.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.6.0-openjdk-devel package.

Debian logo

On Debian GNU/Linux 5.0 (lenny) , do one of the following:
  • On the Gnome desktop (Debian):
    • In the "System" desktop menu, choose submenu "Administration"
    • In the submenu, choose "Add/Remove Applications"
    • In the "Show" toggle box, select "All Open Source Applications"
    • Search for "OpenJDK"
    • Select the "OpenJDK Java Runtime" (openjdk-6-jre)
    • Confirm the installation of community maintained software
    • Press the "Apply Changes" button
  • On the command line, type:
    $ sudo apt-get install openjdk-6-jre
The openjdk-6-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-6-jdk package.

Innovate on OpenSolaris

We are working on putting everything in place to start providing OpenJDK 7 builds in OpenSolaris package repositories beginning in July 2009.
If you want to have a head start, you can build OpenJDK 7 on OpenSolaris yourself now by following the instructions. In brief:
  • On the command line, type:
    $ pfexec pkg install SUNWgmake SUNWj6dev SUNWant sunstudioexpress SUNWcups SUNWzip SUNWunzip SUNWxwhl SUNWxorg-headers SUNWaudh SUNWfreetype2
    to install the build dependencies.
  • Set a handful of environment variables:
    $ export LANG=C PATH="/opt/SunStudioExpress/bin:${PATH}" ALT_COMPILER_PATH=/opt/SunStudioExpress/bin/ ALT_DEVTOOLS_PATH=/usr/bin ALT_CUPS_HEADERS_PATH=/usr/include/
  • Kick off the build:
    $ gmake
  • When the build finishes, the binaries will be in the
    build/solaris-i586/j2sdk-image
    subdirectory.

Memory Usage with cat /proc/meminfo

The entries in the /proc/meminfo can help explain what's going on with your memory usage, if you know how to read it.
Example of 'cat /proc/meminfo':

total:  used:    free:  shared: buffers:  cached:
Mem:  1050001408 1012899840 37101568        0 113672192 420950016
Swap: 2097434624 217985024 1879449600
MemTotal:      1025392 kB
MemFree:         36232 kB
MemShared:           0 kB
Buffers:        111008 kB
Cached:         279304 kB
SwapCached:     131780 kB
Active:         677908 kB
ActiveAnon:     487272 kB
ActiveCache:    190636 kB
Inact_dirty:    129164 kB
Inact_laundry:   23948 kB
Inact_clean:     15332 kB
Inact_target:   169268 kB
HighTotal:      131008 kB
HighFree:         2336 kB
LowTotal:       894384 kB
LowFree:         33896 kB
SwapTotal:     2048276 kB
SwapFree:      1835400 kB
Committed_AS:  1079884 kB
The information comes in the form of both high-level and low-level  statistics. At the top you see a quick summary of the most common values  people would like to look at.

total:    used:    free:  shared: buffers:  cached:
Mem:  1050001408 1012899840 37101568        0 113672192 420950016
Swap: 2097434624 217985024 1879449600
Below are the individual values. First we will discuss the high-level statistics.

MemTotal:      1025392 kB
MemFree:         36232 kB
MemShared:           0 kB
Buffers:        111008 kB
Cached:         279304 kB
SwapCached:     131780 kB

High-Level Statistics

  • MemTotal: Total usable ram (i.e. physical ram minus a few reserved bits and the kernel binary code)
  • MemFree: Is sum of LowFree+HighFree (overall stat)
  • MemShared: 0 is here for compat reasons but always zero.
  • Buffers: Memory in buffer cache. mostly useless as metric nowadays
  • Cached: Memory in the pagecache (diskcache) minus SwapCache
  • SwapCache: Memory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)

Detailed Level Statistics

VM Statistics

VM splits the cache pages into "active" and "inactive" memory. The idea is that if you need memory and some cache needs to be sacrificed for that, you take it from inactive since that's expected to be not used. The vm checks what is used on a regular basis and moves stuff around.
When you use memory, the CPU sets a bit in the pagetable and the VM checks that bit occasionally, and based on that, it can move pages back to active. And within active there's an order of "longest ago not used" (roughly, it's a little more complex in reality).

Active:         677908 kB
ActiveAnon:     487272 kB
ActiveCache:    190636 kB
Inact_dirty:    129164 kB
Inact_laundry:   23948 kB
Inact_clean:     15332 kB
Inact_target:   169268 kB
  • Active: Memory that has been used more recently and usually not reclaimed unless absolutely necessary.
  • Inact_dirty: Dirty means "might need writing to disk or swap." Takes more work to free. Examples might be files that have not been written to yet. They aren't written to memory too soon in order to keep the I/O down. For instance, if you're writing logs, it might be better to wait until you have a complete log ready before sending it to disk.
  • Inact_clean: Assumed to be easily freeable. The kernel will try to keep some clean stuff around always to have a bit of breathing room.
  • Inact_target: Just a goal metric the kernel uses for making sure there are enough inactive pages around. When exceeded, the kernel will not do work to move pages from active to inactive. A page can also get inactive in a few other ways, e.g. if you do a long sequential I/O, the kernel assumes you're not going to use that memory and makes it inactive preventively. So you can get more inactive pages than the target because the kernel marks some cache as "more likely to be never used" and lets it cheat in the "last used" order.

Memory Statistics

HighTotal:      131008 kB
HighFree:         2336 kB
LowTotal:       894384 kB
LowFree:         33896 kB
SwapTotal:     2048276 kB
SwapFree:      1835400 kB
Committed_AS:  1079884 kB
  • HighTotal: is the total amount of memory in the high region. Highmem is all memory above (approx) 860MB of physical RAM. Kernel uses indirect tricks to access the high memory region. Data cache can go in this memory region.
  • LowTotal: The total amount of non-highmem memory.
  • LowFree: The amount of free memory of the low memory region. This is the memory the kernel can address directly. All kernel datastructures need to go into low memory.
  • SwapTotal: Total amount of physical swap memory.
  • SwapFree: Total amount of swap memory free.
  • Committed_AS: An estimate of how much RAM you would need to make a 99.99% guarantee that there never is OOM (out of memory) for this workload. Normally the kernel will overcommit memory. The Committed_AS is a guesstimate of how much RAM/swap you would need worst-case.

How to Kill a Running Process in Ubuntu (or any Linux distro)

So, you’ve been running Ubuntu for awhile and you’re happy with it. Everything is running smoothly. You think to yourself, this is going better than I expected. And then, out of nowhere, Firefox (or some other mischievous app) crashes. You try to reopen it, only to find this warning: “Application X is already running. Please close all versions of the application and try again.” You instinctively hit ctrl+alt+delete, only to remember that you’re not in Microsoftland anymore. How exactly do you kill a running process in Ubuntu?
Upon first glance, killing a process in Ubuntu may seem frightening. Rest assured that it is not. There are a few different methods for killing a process–in fact, you can even set up a ctrl/alt/delete sequence–but by far the easiest is to simply open the terminal and type one simple line. It literally takes less than ten seconds.

Step 1: Open the Terminal by navigating to Applications > Accessories > Terminal. Type: ps aux and press enter.
A long series of processes will appear in your Terminal. 

process1
click for full size image
Step 2: Scroll through the processes and look for the application you want to kill. If you’re logged in as a user, scroll down past the ‘root’ processes and into the processes running under your username. Look at the end of the lines for the name of the applications. For example, if you need to kill Firefox, look for ‘usr/lib/firefox’ at the end of a line.

Step 3: Once you find that process, look at the very front of the line. You will see something like “username 23873 6.8…..” It’s the number right after the username you need–in this case, 23873. That is the process number.
process2
click for full size image

Step 4: Now, to simply kill that process, type: sudo kill -9 process number (replaced ‘process number’ with the actual number) and then press enter. 

process3

The process will be shut down. Close the Terminal and restart the application.

lunedì 7 febbraio 2011

10 Applications You Must Install On Ubuntu 10.10




Whether you have already installed Ubuntu 10.10 , or you are going to, this article will inform you nonetheless about the 10 best applications for the newbie Ubuntu 10.10. From enhancing looks to utilities this article best describes the ten applications that you must install on Ubuntu 10.10 and whats more? You can also follow the simple download and installation instructions and get these 10 best applications on your Ubuntu 10.10  working easily.

The open source Ubuntu community is working hard to make sure that Ubuntu is no longer meant just for geeks to use.  Enhancing the looks of your out of the box Ubuntu system to make it pleasing to the eye, more comfortable to work on, and adding its powers are the priorities. So lets try and make Ubuntu 10.10 a beautiful monster!  by downloading and installing these 10 best applications for Ubuntu 10.10 -

Bisigi Themes 

 This is the collection of most amazing gnome themes available for Ubuntu , makes Ubuntu look more attractive. Once installed, you do not need anything else to make your Ubuntu 10.10 system look more attractive than it ever was.

So what are you waiting for?
Open your Ubuntu 10.10 terminal and copy the following commands,

sudo add-apt-repository ppa:bisigi/ppa
After this,
sudo apt-get update
and now install the collection using,
sudo apt-get install bisigi-themes

 After installation completes, go to System -> Preferences -> Appearance and the first look of it makes you amazed. More then a dozen of some beautiful themes that are eagerly waiting to get applied on your desktop!

bisigi-themes
 Select theme of your choice and enjoy .
Screenshots of some of my favourite themes -
 ellanabalanzan
bamboo-zenexotic


After enhancing the looks, what about enhancing  your workstation by installing a really cool launch bar? So here is one of the best launch bar available for your Ubuntu system.

Cairo-dock

If you want to make your launch bar of your Ubuntu system look alluring  then, cairo-dock is undoubtedly the best option. It includes multi-docks, launchers and a lot of useful applets. Infact the most adorable feature is that applets can be detached from the dock to act as desktop widgets.
Now lets install it -
Copy the following commands -
sudo -v
echo "deb http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu $(lsb_release -sc) main ## Cairo-Dock-PPA-Stable" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E80D6BF5
cairo-dock
Now, update the repository,
sudo apt-get update
And finally install cairo-dock,
sudo apt-get install cairo-dock cairo-dock-plug-ins
After installation, you can launch it from Applications -> System Tools -> Cairo Dock.
Screenshot:
cairo-dock

Screenlets

This is another application to make your desktop adorable and the most powerful desktop you had on your Ubuntu system ever before. Screenlets are small owner-drawn applications that can be described as "the virtual representation of things lying/standing around on your desk". Clock, rulers, calendars, gmail, picframes, weather, feed reader, launcher and much much more. I will get tired in telling you the possibilities but they won't end. So better install it yourself and check it out!!!
Copy the following command in you terminal-
sudo apt-get install screenlets
Then to launch it go to Applications -> Accessories -> Screenlets and this will open Screenlets Manager. You can choose your favourite widgets from here and add them to let your Ubuntu system shout - 'I am the most powerful Ubuntu desktop'.
screenlet-manager

screenlets

Ubuntu Tweak

Ubuntu Tweak is another powerful application that makes it very easy to configure your Ubuntu system. You do not need to know all the geek to configure Ubuntu. This application provides many useful desktop and system options that the default desktop environment does not provide you with. Weather you are a geek or a regular user configuring Ubuntu with Ubuntu Tweak is what you are going to love!
You can download it from here - http://ubuntu-tweak.com/
Or, you can install this application by the following commands -
sudo add-apt-repository ppa:tualatrix/ppa
ubuntu-tweak-repository
Then, run the update command-
sudo apt-get update
Finally, install it using -
sudo apt-get install ubuntu-tweak
ubuntu-tweak-install
After installation, go to Applications -> System Tools -> Ubuntu Tweak and as said you no longer need to be a geek to configure your Ubuntu 10.10 system.
ubuntu-tweak

Some of the features of this application are -
  • Gnome session control

ubuntu-tweak-gnome-settings

  • Window Manager Settings - Felt uncomfortable with window's buttons on left? Then you can change their position with Ubuntu Tweak

ubuntu-tweak-windows.png 
  • Desktop-recovery
ubuntu-tweak-desktop-recovery
Not to forget -
  • Login Settings - You can easily cusomize your login screen.
ubuntu-tweak-login

This is not all, they are many more options available, so just download and keep tweaking with just simple clicks.

 Compiz

Compiz is a compositing manager, which means that this great application for your Ubuntu 10.10 enhances the overall user interaction by adding fancy effects to your windows, from drop shadows to awesome desktop effects. Compiz can substitute for the default Metacity in GNOME. Compiz is one of the first compositing window managers for the X Window System that uses 3D graphics hardware to create fast compositing desktop effects for window management.
We will install compiz with SimpleConfig settings manager. 
Follow these simple steps to install Compiz,
sudo apt-get install simple-ccsm compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-plugins emerald
 compiz-install 
To launch Simple CompizConfig settings manager, go to System --> Preferences --> SimpleCompizConfig Settings Manager 


compiz-config-manager
You can change animation effects -
compiz-animation

To customize desktop-
compiz-desktop

See the effect of setting appearance to Desktop cube -
compiz-desktop-cube

VLC Media Player 


If you have been using Ubuntu before then you do not need to know more about VLC. This is the best media player for a linux based system as it plays everything and that means just playing everything on your Ubuntu 10.10 system.  It is a powerful media player which supports and plays almost all of the media codecs and video formats. And whats more, want to play damaged media files? then VLC can do it charmingly for you. Missing or broken pieces wont stop in VLC. All the video and audio information that remains can be played through this powerful media player.

Just one step to go and you can play just everyhting .
Copy the following command in your terminal,
sudo apt-get install vlc            

After installation go to Applications --> Sound & Video --> VLC media player.
Screenshots:                                                       
vlc     vlc-screenshot 

PlayOnLinux

Dont like Ubuntu games? Still have more affinity for window's games? Games is the only reason which making you to switch completely from the Windows to Linux? Then here is a must have application for all game freeks. PlayOnLinux is a powerfull piece of sofware which allows you to easily install and use numerous games and applications designed to run just with Windows. So you just need to install this and in a few minutes you will be able to play your favourite Window's games on Ubuntu .
What are you waiting for, open your terminal and copy the following command -
sudo apt-get install playonlinux

After the installation go to Applications --> Games --> PlayOnLinux .
 Accessories-
playonlinux-accessories


 Install games- 
playonlinux-games
Infact you can install Windows media Player-
playonlinux-multimedia
And you can also install soul of windows, MS office.
playonlinux-office

For further installation instructions or documentation visit http://www.playonlinux.com/en/

XBMC

XBMC is an award-winning free and open source (GPL) software media player and entertainment hub for digital media. It is a popular alternative to Microsoft's Windows Media Center and Apple's Front Row. XBMC features several open APIs to enable third-party developers to create capabilities which extend XBMC with a multitude of addons, such as plugins, scripts, skins/themes, visualizations, screensavers, web scrapers, web interfaces, and more. XBMC developers encourages users to make and submit their own addons to add additional content accessible from within XBMC.

Open your terminal and type the following commands to install -
sudo add-apt-repository ppa:team-xbmc
sudo apt-get update
sudo apt-get install xbmc
Screenshots:    xbmc-screenshot

FILEZILLA

 filezilla FileZilla is free, open source, cross-platform FTP software, consisting of FileZilla Client and FileZilla Server. Filezilla is the best FTP client for Ubuntu just install it and enter some details and there you find yourself transferring files to your remotehost in the best and the mpst powerful way.
You can simply install this application by -
sudo apt-get install filezilla
After installation , you can open it from Applications -->Internet -->FileZilla.
Screenshot:
 filezilla-screenshot

PIDGIN 

logo-pidgin Pidgin is the last application that you need to install on your Ubuntu system. Pidgin is easy to use and free chat client that supports a number of protocols. The innumerable users that it has speaks of its power and usabilty. This amazing application lets you connect to your e-pals on AIM, Googles - Gmail, MSN, Yahoo, and many more chat networks all at once. So just download this application and keep and let talk out your social life with just one application!


 You can either download it from- http://www.pidgin.im/download/
or install it through command terminal -
sudo apt-get install pidgin
After installation you can launch it from Applications -->Internet -->Pidgin Internet Messenger.
Screenshot:
 pidgin-screenshot

Install the new Ubuntu 10.10 Netbook interface 'Unity' [screenshots]





One of the key announcements during Mark’s plenary speech was the immediate availability of "Unity": the new Ubuntu 10.10 Netbook interface.

The interface is in the very early stages of development so do bare that in mind when trying it out but, for those who like to stay on the bleeding edgen here’s how to install it: -
  • sudo add-apt-repository ppa:canonical-dx-team/une
  • sudo apt-get update
  • sudo apt-get install unity
  • Choose the Unity session at GDM login.
The new ‘datetime’ indicator applet

The ‘dock’ is draggable


Sadly the ‘search’ bar doesn’t work for me just yet!


How much do you earn per day through Google AdSense program?


Google AdSense income! Do you know much about Google AdSense income? Many web sites, blogs, forum post etc. claiming that they earn $1000 or even more through Google AdSense. I spent much time reading these type of articles or pages. But what is the real truth? I will tell you. After reading this page, you have a basic idea about AdSense income. You then easily calculate your the daily income through Google AdSense. Before accessing to main contents, I want to say something about Google AdSense.

What is Google AdSense program?

Google AdSense program is really a reliable program to earn money. If you have a google adsense account, you can easily earn some money through google AdSense program. You just need to insert some lines of code to your web site or blog or forum posts. And that's all. Now, google adsense program will display several ads or google ad based on your contents and thus you can easily earn some money through google AdSense.

Why you use Google AdSense Program?

At first I want to say that Google AdSense Program is a nice program for all types of publishers. There are lots of other program like AdBrite, Clicksor, Bidvertiser, Chitika, AdToll, Exit Junction, Yahoo Publisher Network etc. I already have used several of them and found that Google AdSense is the best among all of them. Moreover, I see that Google AdSense offers the best ads which is very relevant to your content. The earning report of Google AdSense is very transparent and easy to understand to all. So, I personally suggest to use Google AdSense program for earning money.

What is the lie of people to earn money through Google AdSense program?

This section will tell you the great lie of several advertising companies. You might have seen that several advertisers or web publishers or blog owners or software marketing person always advertise that the earn more than $1000 per day.They also even give prove that they earn more than $1000 per day. For example, there is a screen shot which tells that this publisher can earn more than $1000 everyday.
The false earnings of several advertisers to sell or advertise their products
Do you believe this? If yes then answer a question: How much effort and time is needed to earn $1 for you? I think, you already get the answer.
Actually these type of screen shots and prove is totally false. They are just advertising their own products. For example, they just show you their success and at last they offer several courses or books or tutorial materials for some small payments. If they offer one book just $20 and if 1000 people buy that book then the easily get 20000$ dollars. So, they just advertise and earns a lot. So, don't believe their false prove.

Is Google AdSense program is a lie?

No, definitely it's not a lie. Google AdSense Program is the real truth to earn money through Google AdSense. You can really earn some money through Google AdSense easily. If you use Google AdSense program, you may get $100 to 1000$ easily of each month (Remember, I say each month not every day). But to do that you have to work some times. If you are new, please do not think much income at first. Work and wait, you will see that day by day your earnings are increasing. So, you have to wait for some day.

The real scenario of Google AdSense

Do you know how much people generally do income from Google AdSense? I have some friends who are using Google AdSense program more than 1 years ago. I was first introduced to Google AdSense program by my friends. They have several web sites and blogs. They earn money but not huge. In the following table, I will present my four friends income. The following earnings are not my earnings. Those earnings are my four friends earnings. They use only Google AdSense program and earn like:
AdSense Users
Laste Month(June) Income
Last Month (June) Avg. Per Day Income
AdSense User : 01
$72.89
$2.42
AdSense User : 02
$56.01
$1.87
AdSense User : 03
$51.24
$1.70
AdSense User : 04
$38.42
$1.28
The above figure is the real scenario of Google AdSense income. So, don't believe to the advertisers who advertise that they will help you to earn $1000 per day.

How much money is possible to earn through Google AdSense program?

Yes, it's the most critical question to answer. No body can give you the exact answer. People can only guess and then answer.
I will try to answer this question based on my friends earnings. The earnings are totally based on page impressions and clicks. So, the no of visitors of your web page or blog is very important to earn money easily. The more visitors you get, the more you will be able to earn.
Typically, if you get 1000 visitors per day, you may earn $1 to $3 per day. I again tell you this is just the estimation not the real value. If you analysis the above table, you will see this type of situation.
So, you can conclude that if you get 10000 visitors, you may get $10 to $30 per day.

How to increase visitors and increase Google AdSense income?

When people really understand Google AdSense, then they keep attention on the following two things:
  • No of page visitors: If the total no of visitors of your site or blog is increased then the total no of clicks and impressions will also be increased. So, you then earn much easily per day. You can easily increase visitors by publishing contents daily, by telling to the friends of your new published contents, by answering the questions of others of several forums, by answering the comments of your contents, by commenting others posts etc. When the no of page views are increasing, your earning will also be increasing.
  • Placement of Ads of Google AdSense Ads: You also have to find out the better ad placement space. If you place your ads at the end of the page, then you may loose high income. I suggest the following figure to place Google AdSense ads. See the red marked area. This is the best place for showing ads. Later, the orange areas are suitable for Google AdSense ads. So, try to place Google AdSense ads on those places.
By satisfying the above two conditions, you can easily earn much and you will see that Google AdSense income is increasing very rapidly.
Red color and orange color areas are the best suitable place for Google AdSense ads.