Install AMD Radeon HD 6470M and solve overheat on Ubuntu 11.10 Oneiric

UPDATE: Try upgrade your BIOS. Several people have said they reduce heat by upgrading the BIOS.

Please note that installing the latest AMD ATI Radeon FGLRX still not solve the overheat issue. I recommend you to switch off the radeon VGA and use Intel VGA card. It will decrease overheat from 90 C fall into 57 C.

I have HP 431 which support with 2 VGA driver, Intel and AMD Ati Radeon HD 6470M. I start install fresh Ubuntu Oneiric by default & use open-source ATI Radeon proprietary driver. Suddenly, my laptop got overheat about 80 C when i start my activity like writing code, run VM and many else. I thought it was kernel bug. After searching through Google and find there no right solution there.

So i start diving into my Ubuntu Oneiric and find that dual-VGA is the main problem here. To check your VGA availability, do “lspci -nn | grep VGA” :

00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M] [1002:6760]

Continue reading

Install Ubuntu Server on Virtualbox, Guest Addition & Solve network problem

Installing Ubuntu Desktop 11.04 or 11.10 on Virtualbox is easy. All you need is just configure NAT & Host-only adapter to make VM can connect to internet and Host.
Also, there is easy installation for Virtualbox Guest Addition, which can done with right-click.

But it’s different with Ubuntu Server on Virtualbox. It’s doesn’t have GUI. So, we need to install Virtualbox Guest Addition manually. Other problem is about network adapters problem. I have tried with Ubuntu 11.04 Natty and 11.10 Oneiric. All results are same! Virtualbox only detecting one network cards only.

So, let start with VboxGuestAddition. Click on Devices menu and select Install Guest Additions. Then go to terminal and do this :

sudo apt-get install linux-headers-$(uname -r) build-essential
sudo mkdir /tmp/cdrom
sudo mount /dev/cdrom /tmp/cdrom
sudo su
cd /tmp/cdrom

Now Virtualbox Guest Addition success installed.

Then we need to solve network card problem. We need to delete network rules to reset network interfaces.

sudo rm -rf /etc/udev/rules.d/70-persistent-net.rules

Continue reading

Install and configure Vagrant on Ubuntu Oneiric 11.10

Installing Vagrant on Ubuntu 11.04 using base tutorial on will give success result. But not with Ubuntu Oneiric. This is because gem path changes and “Invalid gemspec invalid date format in specification”.

Here are right steps to install & run Vagrant on Ubuntu 11.10 :

1. Install & Configuring Virtualbox
Go to and install as your Ubuntu Oneiric version (32 or 64 bit).

A. Install by "sudo dpkg -i virtualbox-package.deb".
B. Add your users into vbox group

2. Install ruby and gems
sudo apt-get install rubygems ruby1.8

3. Install Vagrant
sudo gem install vagrant

After installing, when you type “vagrant”, you will get error like this :
Continue reading

Configuring CakePHP works in sub-folder Localhost NGINX

Building CakePHP in sub-folder of localhost is a common way. If you use NGINX as web server for development, we need to setup several thing to make CakePHP works in sub-folder. For example, i have one CakePHP applications

|_ mycakephp
|_ app
|_ cake
|_ vendors
|_ plugins
|_ ...

So, i need to open my CakePHP apps from http://localhost/mycakephp. To make it’s works :

1. Edit /etc/nginx/sites-available/default

server {
listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6

root /var/www;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

index index.php index.html index.htm;

# Make site accessible from http://localhost/
server_name localhost;
# server_name_in_redirect off;

location / {
autoindex on;
# This is cool because no php is touched for static content
try_files $uri $uri/ /index.php;

# rewrite rules for cakephp
location /mycakephp {
if (!-e $request_filename) {
rewrite ^/mycakephp(.+)$ /mycakephp/app/webroot/$1 last;

location /mycakephp/app/webroot {
if (!-e $request_filename) {
rewrite ^/mycakephp/app/webroot/(.+)$ /mycakephp/app/webroot/index.php?url=$1 last;


2. Restart NGINX services

3. Open your cakephp Applications.

4. Done :D