Monthly Archives: July 2010

Install phpmyadmin in ubuntu

In the previous article you’ve seen how to setup a LAMP server. Now if you want to install phpmyadmin open your terminal and type
sudo apt-get install phpmyadmin
follow the screen.

Now, open browser go to http://localhost/phpmyadmin/

you are done with your phpmyadmin installation. now, login with the password you provided earlier.

Install LAMP on ubuntu

Installing LAMP(Linux, Apache, MySQL, PHP) is not that tough now-a-days.

The easiest way
First open the synaptic manager with sudo synapti
then Edit ==> Mark Packages by Task
select LAMP server from the list and click OK.

Another easy way
go to terminal and type
sudo tasksel

press space bar to select and then tab to <ok>
Follow the screen.

One line command setup
go to terminal and type
sudo apt-get install lamp-server^
N. B the character ‘^’ is not a typo
Follow the screen, it’ll ask to change password for the root user of MySQL database.

Now. test Apache. Open a browser and type http://localhost/

if you see this, you are done with you apache installation.

test PHP installation. open terminal and type
sudo vim /var/www/test.php
save the file.
again, sudo /etc/init.d/apache2restart
now, open browser and try http://localhost/test.php

you see this, means your PHP installation is completed.

Test MySQL setup
go to terminal and type
mysql -u root -p

you see this, ahhhh….you are done with the famous LAMP installation :D

For phpmyadmin setup try this

gnome-keyring password ubuntu

After my latest setup of ubuntu 10.04, I was facing problem with the keyring password access whenever I was accessing yahoo on Empathy.

To change gnome-keyring password graphically

Places ==> Home Folder

then, ctrl+h to view the hidden files.

.gnome2 ==> keyrings

delete the the file default.keyring
next time when you’ll try anything like that, it’ll ask for new password.

To change gnome-keyring password for CLI
rm ~/.gnome2/keyrings/default.keyring

to keep backup of the original file
mv ~/.gnome2/keyrings/default.keyring ~/.gnome2/keyrings/default.keyring.bak

alias in unix

alias is probably the best option in order to save key strokes.

to make an alias
suppose I want to open htdocs folder which is in /Application/MAMP/htdocs/ , but for that i have to type few lines in terminal. But by making an alias it can be done with only one small word. To do so, just type this line in the terminal.
alias ht='open /Applications/MAMP/htdocs/'

to see the alias
just type
alias

to remove all aliases
unalias -a

to remove a specific one
unalias [name of the alias]

synaptic/update manager update in ubuntu 10.04

Even if I’m trying to update with update manager or apt, synaptic is not updating. I faced this weired problem in ubuntu 10.04.
There is a very simple solution to get rid out of this problem.
Just execute this command in your terminal.

sudo gedit /etc/apt/sources.list

remove the line which contains CD/DVD ROM and the next line (if any, without starting with #)

update again with

sudo apt-get update

If you are no too unlucky you are already done with updating. enjoy :D