Sunday, October 30, 2011

Ubuntu 11.10 : install OpenJDK

Open a terminal (Ctrl+Alt+T) and execute the following command ;

sudo apt-get install openjdk-7-jdk

Thursday, October 27, 2011

Ubuntu 11.10 and ATI radeon problem : fan always on

Since I migrated my laptop (HP 4720s) to Ubuntu 11.10 with gnome-shell, I have the following issue :
  • the open source ATI drivers works well but my fan is always spinning
  • the additional drivers proposed by Ubuntu don't work and make gnome-shell unusable
  • the drivers (11.9) from AMD is very slow

So, for the moment, the best deal for me is to keep the open source drivers. DON'T INSTALL ANY OTHER DRIVER THAN THE ONCE INSTALLED BY DEFAULT. What we will do is to underclock the GPU to keep the temperature acceptable and avoid any problems with the fan. Let's open a terminal :
  • echo -e '#!/bin/sh\necho low > /sys/class/drm/card0/device/power_profile' | sudo tee /etc/init.d/ati-power-save
  • sudo chmod +x /etc/init.d/ati-power-save
  • sudo update-rc.d ati-power-save defaults 99
By the way, we will increase FPS by disabling vertical sync.

  • echo 'export vblank_mode=0' | sudo tee -a /etc/environment

Reboot and enjoy the silence!

Friday, October 21, 2011

Ubuntu 11.10 : you should try gnome-shell

Ubuntu 11.10 is provided with Unity, the graphical user interface from Canonical. Compared to the previous release (Ubuntu 11.04), you can now swith to Gnome Shell. But, why should you swith from Unity to Gnome Shell that you could consider as very similar? My opinion is that Gnome Shell is more pragmatic and beautiful than Unity.

So, how to activate Gnome Shell ?
  1. Go to the software center and activate the patner repositories in the software sources
  2. In a terminal, run sudo apt-get install gnome-shell
  3. Activate it by default with sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
  4. Reboot and enjoy!
Now that you have almost a prefect shell, you should install some addons :
  1. sudo apt-get install ubuntu-restricted-extras (for flash, java and dvd features)
  2. enable dvd decryption with sudo sh /usr/share/doc/libdvdread4/
  3. sudo apt-get update
  4. sudo apt-get install chromium-browser
  5. sudo apt-get remove firefox
  6. sudo apt-get install smplayer
A good thing is also to enable numlock on lightdm :
  1. sudo apt-get install numlockx
  2. echo 'greeter-setup-script=/usr/bin/numlockx on' | sudo tee -a /etc/lightdm/lightdm.conf
That's all for my default config.