Tech Articles

    Projects     Archive     Contact

Debian: Change default browser and Java version

If you’re a firefox, chrome or opera user, the first thing you’ll probably want to do when installed debian is installing your favorite browser and change the systems default.

Installing a new browser can be done through your favorite package manager (apt-get or aptitude).

Changing your default browser within debian is quite easy. Just use the the following command and follow the instructions:

update-alternatives –config x-www-browser


Debian uses gij/OpenJDK as default java implementation. If you want to switch to sun’s java, you need to install it. Make sure you have the non-free repository added to your sources.list. You can add this by editing your /etc/apt/sources.list and put non-free behind your repositories.

Next we will install java. These examples use aptitude, but apt-get should be similar.


aptitude install sun-java6-jre

JDK (development):

aptitude install sun-java6-jdk

To change the default java. Use the following code:

update-alternatives –config java

Thanks for reading.

If you liked this post, you can share it with your followers or follow me on Twitter!