Saturday, October 11, 2008

How to install applications on Ubuntu, through internet.

Before do this you have to set the repositories properly. Go to the
  • System -> Administration -> Software Sources
Then do as following images. (if you want you can add more third party repositories. Like in second image.)







Then it will prompt a message. Then click on 'Reload' button. After this you can install application though terminal or Synaptic package manager (System -> Administration -> Synaptic Package Manager).
use the following command to install through the terminal.
sudo apt-get install "name of the application"
For an example if you want to install VLC Player then,
sudo apt-get install vlc

In Synaptic Package Manager you can simply search the application that you want and mark them for installation and then click on apply.

Friday, October 10, 2008

Install Apache, MySQL, PHP and PHPMyAdmin on Ubuntu

First we have to install Apache. Open a terminal (Applications >> Accessories >> Terminal). Then type the following command.
  • sudo apt-get install apache2
After compleated that you can test for apache. Open your web browser and try to access the following URL.
  • http://localhost
If you have successfully installed that then you can see some text on your browser.

Then we can install PHP. Run following command on terminal for that.
  • sudo apt-get install php5
Now we have to install MYSQL. Use following command for that.
  • sudo apt-get install mysql-server
To administrate MYSQL you have to use PHPMyAdmin, which is an web based interface for this purpose. To do that run following command on terminal.
  • sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
While installing this it may ask you to select the webserver. then you have to select "apache2".

Finally you have to set the path for PHPMyAdmin. Follow the following steps,
  • sudo gedit /etc/apache2/apache2.conf
Then insert the following line and save it.
  • Include /etc/phpmyadmin/apache.conf
Then restart the apache,
  • sudo /etc/init.d/apache2 restart
Then try to access phpMyAdmin using web browser,
  • http://localhost/phpmyadmin/
Thats it..! :)