Adsense code (2021-10-05)

Friday, October 28, 2011

Set default browser for Ubuntu Linux

In Ubuntu menu, click System->Preferences->Preferred Applications

then you can select your expect browser as default.
Set default browser for Ubuntu Linux



Tuesday, October 18, 2011

Install JDK7 (javac) on ubuntu 11.10

The last article "Install Java 1.7.0 on ubuntu 11.10" described how to install JRE 1.7.0 on ubuntu 11.10, if you are looking for how to install JDK7, javac, on Ubuntu 11.10, here is the steps:

- Follow the steps in last article "Install Java 1.7.0 on ubuntu 11.10" to download JDK7, un-compress and move to /usr/lib/jvm/jdk1.7.0.

- Check the installed javac
$ sudo update-alternatives --config javac
For a flash installed Ubuntu, there should be no javac installed.

- Install javac
$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac 1
Note: The last parameter is "priority", it is an integer; options with higher numbers have higher priority in automatic mode.

Install JDK7 (javac) on ubuntu 11.10

Install Java 1.7.0 on ubuntu 11.10

- Download JDK7 from http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

Select "Linux x86 - Compressed Binary" jdk-7-linux-i586.tar.gz

Download JDK7

- Start Terminal, switch to the downloaded folder, and uncompress it.
$ tar -xvf jdk-7-linux-i586.tar.gz

- Move the un-compressed files to /usr/lib
$ sudo mv ./jdk1.7.0 /usr/lib/jvm/jdk1.7.0

- Check the current alternative java installed.
$ sudo update-alternatives --config java

For a flash Ubuntu 11.10, it's only ONE java installed.

- Install the new alternative java
$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/jre/bin/java 1

Note: The last parameter is "priority", it is an integer; options with higher numbers have higher priority in automatic mode.

- Re-check the current alternative java installed and select the active java.
$ sudo update-alternatives --config java

- Finally check the java version.
$ java -version

Install Java 1.7.0 on ubuntu 11.10

It's steps to install JRE 1.7.0, not JDK. If you are looking for install JDK7 (Javac), please refer to the article "Install JDK7 (javac) on ubuntu 11.10".



Shortcut to start Terminal in Ubuntu

Terminal is a useful tools for Linux, it can be strated by press pressing the keys [Ctrl] + [Alt] + T simultaneously.

Terminal

Saturday, October 15, 2011

Install Google Chrome on Ubuntu 11.10

Install Google Chrome on Ubuntu 11.10 as normal way: Download deb package and click to install will be complained for Internal Error:
Internal Error

Follow the steps to install Google Chrome on Ubuntu 11.10:

- Download deb package of Google Chrome to your local folder, eg. /Downloads/

- Open Terminal and switch to the downloaded folder.

- type the command
$sudo dpkg -i google-chrome-stable_current_i386.deb

Enter password and continuous, error will be reported in this step.

- type the command
$sudo apt-get install -f
Install Google Chrome in Terminal

Finished! Google Chrome will be installed:)
Google Chrome is installed
Google Chrome is running



Wednesday, October 12, 2011

darktable: an open source photography workflow application and RAW developer

darktable is an open source photography workflow application and RAW developer. A virtual lighttable and darkroom for photographers. It manages your digital negatives in a database, lets you view them through a zoomable lighttable and enables you to develop raw images and enhance them.

http://www.darktable.org/


For Ubuntu (11.04), type the command in Terminal.

sudo add-apt-repository ppa:pmjdebruijn/darktable-release
sudo add-apt-repository ppa:pmjdebruijn/darktable-release-plus
sudo apt-get update


Then Search "darktable" in Ubuntu Software Center to install.