Install VirtualBox on Ubuntu 10.04


Category: ,

The Virtualbox (non-free) repository is available for Ubuntu 10.4 Lucid Lynx (kind of late I'd say). You can add it using the 
following command: 
sudo add-apt-repository "deb lucid non-free"
wget -q -O- | sudo apt-key add -
Then install it: 
sudo apt-get update && sudo apt-get install virtualbox-3.2 

How to install latex in ubuntu 10.04 LTS


Category: ,


sudo apt-get install texlive-full 

This will install full latex distribution.  Install taxmaker from System->administration->synaptic package manager.


Ruby on Rails on ubuntu 10.04


Category: ,

Use following commands

sudo su
apt-get install build-essential

sudo apt-get install build-essential rails
apt-get install ruby rdoc libopenssl-ruby

Download rubygems-1.3.7.tgz from web and extract that. Then

cd rubygems-1.3.7
ruby setup.rb
ln -s /usr/bin/gem1.8 /usr/local/bin/gem
gem install rails

Install the sqlite3 connector:

sudo apt-get install libsqlite3-dev
sudo gem install sqlite3-ruby

Then follow the link to create your first application using ruby on rails.

How to install flash player in ubuntu 10.04 for amd processors


Category: , ,

1. To get started, go to Applications –> Ubuntu Software Center
2. Next, type ‘Adobe Flash Plug-in’ in the search box, then select Adobe
3. Install it.
4. restart your PC

How to install Apache 2, MySQL 5 and PHP 5 in Ubuntu 10.04



Apache 2
To install Apache server type the following command in terminal.
sudo apt-get install apache2
When it says "Do you want to continue [Y/n]?" just press ENTER.
After installation is finished test it on your browser - "http://localhost". If it shows --

It works!

This is the default web page for this server.
The web server software is running but no content has been added, yet.
That means your server installation is working fine.
Changing document root see.
To install PHP type following command on terminal. 
sudo apt-get install php5 libapache2-mod-php5
Then restart Apache Server using
sudo /etc/init.d/apache2 restart
To install MySQL 5 put the following command on the terminal.
sudo apt-get install mysql-server mysql-client
After intalling MySQL you will need to install another package which will help PHP to connect with MySQL.
Type following command on the terminal for that package.
sudo apt-get install php5-mysql 
To install phpmyadmin use the following command
sudo apt-get install phpmyadmin
Also, by default the phpmyadmin script is installed in /usr/share/phpmyadmin, a directory that isn't access from Apache.

You'll want to do the following to get http://localhost/phpmyadmin to work
cd /var/www
sudo ln -s /usr/share/phpmyadmin phpmyadmin 

Root User in Ubuntu


Category: ,

If you want to enable root account (which is not recommended) enter the following command.
$sudo passwd root
This will prompt for a new root password and once you confirm it, you can start using the root account to login.
If you want to disable root account in ubuntu you need to lock the root account by using the following command
$sudo passwd -l root
If you want to work on a root console you’d better use the following command
$sudo -i