Monday, October 4, 2010

Different Command realted to UBUNTU to install LAMP and WINE Application

HOW TO UNUSTALL PROGRAM FROM WINE:
wine uninstaller
HOW TO RUN IE6 IN UBUNTU: Run the following command on terminal.
 /home/impelsys/bin/ie6

HOW TO UPGRADE THW WINE IN UBUNTU: Run the following command on terminal.
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list
sudo apt-get update
sudo apt-get install wine

sudo apt-get install opera



*************Installing Apache2, PHP, MySQL and phpMyAdmin on Ubuntu - 8.04, 9.04 or 9.10*******************
sudo apt-get install lamp-server^
and press enter, after installation mysql will ask you for the root password.
Testing Apache server:-

Open mozilla or any other web browser and type the following in the address bar - http://localhost/. If everything is working fine you will see the following message in your browser as shown be
sudo gedit /var/www/testing.php   to edit the testing.php file

Testing MySQL:-

Just write this in terminal :-

$ mysql- u root -p

To install phpMyAdmin open the terminal and type the following command

sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
1.An example of how to install PHPMyAdmin on Ubuntu

sudo apt-get install phpmyadmin
2.An example of how to edit /etc/apache2/apache2.conf in Ubuntu

gksudo gedit /etc/apache2/apache2.conf

The command above will open the apache2.conf configuration file in gedit, but you can also use vi, vim, nano or other text editor software. Now add the following line of code inside apache2.conf:

How to include PHPMyAdmin's configuration in the apache2.conf file

Include /etc/phpmyadmin/apache.conf
Now you need to restart the Apache web server by using the following command.

How to restart the Apache web server

sudo /etc/init.d/apache2 restart
Now you should be able to open your PHPMyAdmin MySQL manager by pointing your browser to: http://your-best-domain.net/phpmyadmin


*************Installing Apache2, PHP, MySQL and phpMyAdmin on Ubuntu - 8.04, 9.04 or 9.10 end here**********

********************Installing LAMP on Ubuntu 7.10/8.04/8.10 (Linux,Apache,MySQL,PHP)*****************
Lets start with Apache:
1. Open the terminal (we will be using it through most of my guide) from Applications > Accessories > Terminal
2. Install apache2 using apt-get by typing the following

sudo apt-get install apache2

Note that you should know the root password.
Now everything should be downloaded and installed automatically.
To start/stop apache2 write:
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop

Your www folder should be in: /var/www/

If everything is OK you should see an ordinary HTML page when you type: http://localhost in your firefox browser

Finished with Apache ? lets conquer PHP:
1. Also in terminal write:
sudo apt-get install php5 libapache2-mod-php5

or any php version you like
2. restart apache
sudo /etc/init.d/apache2 restart

This is it for PHP :D
Wanna test it ? Just create an ordinary PHP page in /var/www/ and run it.
Example:
sudo gedit /var/www/test.php

and write in it: < ?php echo “Hello World”; ?>

Now run it by typing http://localhost/test.php in firefox… You should see your ” Hello World ”
66 % is over, lets continue to installing MySQL:
1. Again and again in terminal execute:
sudo apt-get install mysql-server

2. (optional) If you are running a server you should probably bind your address by editing bind-address in /etc/


/my.cnf and replacing its value (127.0.0.1) by your IP address

3. set your root password (although mysql should ask you about that when installing)
mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(‘xxxxxx’);

4. Try running it
mysql -uroot -pxxx

where xxx is your password.
Note: You can install PHPMyAdmin for a graphical user interface of MySQL by executing
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a file entitled php.ini. To open it type the following:
Now we are going to have to uncomment the following line by taking out the semicolon (;).

Change this line:

;extension=mysql.so

To look like this:

extension=mysql.so

Now just restart Apache and you are all set!


5. restart apache for the last time
sudo /etc/init.d/apache2 restart



UPDATE:
Due to the large number of people emailing about installing/running phpmyadmin.
Do the following:
sudo apt-get install phpmyadmin

The phpmyadmin configuration file will be installed in: /etc/phpmyadmin
Now you will have to edit the apache config file by typing
sudo vi /etc/apache2/apache2.conf

and include the following line:
Include /etc/phpmyadmin/apache.conf

Restart Apache
sudo /etc/init.d/apache2 restart

Another issue was making mysql run with php5
First install these packages:
sudo apt-get install php5-mysql mysql-client

then edit php.ini and add to it this line : ” extensions=mysql.so” if it isnt already there
sudo vi /etc/php5/apache2/php.ini

Restart Apache
sudo /etc/init.d/apache2 restart



********************Installing LAMP on Ubuntu 7.10/8.04/8.10 (Linux,Apache,MySQL,PHP)end here*********


**************How to Install Safari, Internet Explorer, Opera on Ubuntu*************
Install Wine

In your terminal,

sudo apt-get install wine

Next, download the Microsoft Core Fonts

sudo apt-get install msttcorefonts

Copy the fonts to Wine directory

cp /usr/share/fonts/truetype/msttcorefonts/Arial*.ttf ~/.wine/drive_c/windows/fonts/

Configure Wine

In your terminal, type

winecfg

or Select Application -> Wine -> Configure Wine

Installing IE 6

The software ies4linux has made it very easy to install Internet Explorer 5 and 6 on your Ubuntu desktop.

In your terminal,

wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux

ubuntu-ies4linux1.jpg


Installing Opera

Installing Opera is the easiest since it has a Linux version. Either in your terminal, type

sudo apt-get install opera

or go to System -> Administration -> Synaptic Package Manager, select Opera and click “Apply“.
**************How to Install Safari, Internet Explorer, Opera on Ubuntu end here*************

For uninstall the programms from wine
wine uninstaller