Saturday, January 11, 2014

Handling screen resolution problem after installing ubuntu

>> Changing Screen resolution :

Somtime ubuntu does not recognize correct resolution for the screen. But we can always make it up. Execute following steps in order to change screen resolution are you are interested in :

1) Screen resolutions that my screen can adjust to are :
   - 1280x1024
   - 1680x1050

2) Adding a new resolution starts with getting the right configurations for that resolution.
  - (todo: write cvt command here )

3) Execute : xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync

This will create a resolution entry in the file

4) Now add the resolution to GUI for changing resolution :

xrandr --addmode VGA-0 1680x1050_60.00

5) There must be an option to change to this resolution in the GUI. Go check and change to that GUI if interested ...

>> Installing JAVA
 
$ sudo apt-get install openjdk-6-jdk

>> Installing BUILD ESSENTIALS

$ sudo apt-get install build-essential

>> Installing Apache

$sudo apt-get install apache2

Few useful commands :
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop

Go to http://localhost in your browser and should get "It Works" message from Apache.

>> Installing PHP

sudo apt-get install php5 libapache2-mod-php5

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

Check if PHP is installed correctly 
sudo gedit /var/www/testphp.php
Write "" and save the file.

Go to following location in browser :
http://localhost/testphp.php

This will display PHP information on the webpage.

>> Installing MySQL 

sudo apt-get install mysql-server

Remember the passsword for mysql-server as root.

Now install php tool to edit MySQL .

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


Configuration file is at /etc/mysql/my.cnf