Posts Tagged ‘ ubuntu ’

Simple solution to Fast duplicate key press problem on keyboard in Ubuntu10.10

In my Ubuntu10.10 suddenly got some problem. The problem is that —

When i was pressing duplicate key very fast then it accepts only the fast key and escape the other duplicate keys. Such as if i type “http://” then it write “htp:/”, “teen” becomes “ten” etc.

To solve this problem go to

Then go to “accessibility” tab and uncheck the “Ignore fast duplicate keypresses” under “Bounce Keys” section.



Thats it…

Simple solution to android when running on ubuntu 10.10 – Failed to get the adb version: Cannot run program: error=2, No such file or directory

After installing android i got some problem when i was going to create a project and problem is —

Failed to get the adb version: Cannot run program “/usr/src/android-sdk-linux_x86/tools/adb”: error=2, No such file or directory

After that 
1. download getlibs from
2. open terminal and go to your download folder where getlibs-all.deb is placed 
3. then on terminal use the following command —      

getlibs aapt

How to login ubuntu as root user

here the tricks of how to login ubuntu as root user…
Open the terminal and type:

sudo passwd root

When you see the prompt that says “Enter new UNIX password”, enter the password you want for the root user and confirm it.
Save the file.

Click other and type your user name: root, and enter the password of root you have set.

Thats it ………
***Note this is a bad Idea to do if you are connected to the Internet while logged in as root. Any malicious scripts execute themselves with out user permissions.

Browse folder as root user on Ubuntu

Open you terminal and use the following command which will open a 
new window that one allow you to browse folder as root user—

gksudo nautilus

Changing default apache page on Ubuntu

Open your Apache configuration file httpd.conf

on ubuntu it is in /etc/apache2/httpd.conf and open it using

sudo gedit /etc/apache2/httpd.conf

then put your desired filename on directory index—

DirectoryIndex index.html index.htm default.htm index.php

Changing default apache page on Ubuntu

Open your Apache configuration file httpd.conf

on ubuntu it is in /etc/apache2/httpd.conf and open it using

sudo gedit /etc/apache2/httpd.conf

then put your desired filename on directory index—

DirectoryIndex index.html index.htm default.htm index.php

Simple steps to setting up virtual host host on Ubuntu Server

Virtual host is a virtual environment over the top of your current web server to simulate a separate hosting environment. Using virtual host you can enable site specific features and keep your development environment totally separate from another one.

For tutorial you need to mod_rewrite enabled.

Step 1: setup hosts file

open /etc/hosts and add a virtual domain with a specific local IP.

Lets assume that our virtual domain name is “” and It will listen to the ip “″

so on /etc/hosts file we will add

now whenever you browse your browser will actually hit

Step2: configure virtual host with apache
Now goto /etc/apache2/sites-available and create a file named “

sudo touch ruzdi
sudo gedit /etc/apache2/sites-available/ruzdi

write the following contents inside. but please note to create the appropriate directory before linking your virtual host with that, for example we’ve create a folder named “/var/opt/ruzdi” and linked that directory as my document root in the following configuration file.

        DocumentRoot /opt/ruzdi
        <Directory /opt/ruzdi/>
                Options FollowSymLinks
                AllowOverride All


now create a symbolic link of this file to /etc/apache2/sites-enabled directory as “

sudo ln -s /etc/apache2/sites-available/ruzdi /etc/apache2/sites-enabled/ruzdi

**** here look directory location is /opt/ruzdi so you must create a directory named “ruzdi” on /opt location

Step 3: restart apache

simple, either one of the followings

sudo a2ensite ruzdi


sudo /etc/init.d/apache2 restart

now on your browser to http://

***This is post is similar Hasin Hyder blog post I just change a little. In my case on the hosts file port was not working so I removed it and I got everything all right.

source :


Hasin Hyder

Setting up zend framework on ubuntu server

Now i am going to install the Zend Framework. Download the most recent version from the Zend Framework website and extract it to the /opt folder.

To enable us to easily switch out different versions, we will create a symbolic link to this folder (just right click and select the ‘Make link’ option and name it ‘zend’ and place it to your favourite location in my case I placed it to /var/www/ )

Next, we will tell php to include the zend framework in the include_path.

sudo gedit /etc/php5/apache2/php.ini

Add/Change the include_path in to :

include_path = ".:/var/www/zend/library"

Note that I used the symbolic link in the include path.. This way, when there is a new version of ZF, we can just switch out the symlink without having to edit the ini file!

In order to use the zend framework command line tool (/var/www/zend/bin/, we need to install the php command line interface (php5-cli).

sudo apt-get install php5-cli

Note that the CLI uses a different version of the php.ini file (NOT the one in the apache2 folder but in the cli folder!). We need to tell CLI also where the zend framework directory is located.

sudo gedit /etc/php5/cli/php.ini

and set:

include_path = ".:/var/www/zend/library"

The final step is to include the path to /opt/Zend/bin in the unix PATH variable (this way, you can use instead of /var/www/ zend/bin/ use the following command .

sudo gedit ~/.bashrc

Add the following line at the end:


The Zend Framework relies on the apache “rewrite” module. So, go ahead and enable the “rewrite” module using the following command:

sudo a2enmod rewrite

Restart apache..

sudo /etc/init.d/apache2 restart

and you should be all set