How to set Chrome as default web browser on Debian 12

Endrit Qerreti

Endrit Qerreti

When you click a link on terminal, or on another app on your Desktop, the browser window that pops up, is the browser that is set as default web browser on your system.

Let's say that you have Firefox as default web browser, and you want to open a link from your terminal using Google chrome and not Firefox, then you can easily do so by setting Google chrome as default web browser.

To set Chrome as default web browser on Debian 12, is easy, and it can be done easily by following the steps below.

In this tutorial, you will learn how to set Google chrome as default web browser on Debian 12.

Set Chrome as Default browser using Terminal

To set chrome as default web browser on Debian 12, by using terminal is quite easy. First, you need launch terminal by pressing CTRL + ALT + T

Once terminal is launched, run the command below to set a browser as default.

The command below will show all browsers that are currently installed on your system, and you will be asked to choose one and make it default browser.

sudo update-alternatives --config x-www-browser

Next, choose Google Chrome and press enter

For example, Chrome in our case is number 0, so we need to type 0 on the prompt

Once done, you can close the terminal.

Set Chrome as Default browser using GUI

First, click to "Activities Overview" to launch Applications Menu

Next, type "Settings" on the search box , press enter and click to "Settings" icon to launch settings window

Once you are in the settings window, scroll down and go to "Default Applications"

Now you can set Chrome as default web browser. Simply click to the Web Drop down on the right window as shown in the image below

And then select Chrome from the list to make it your default web browser

And Google Chrome is now the default browser on your system

Conclusion

In this tutorial, you learned how to make Google Chrome the default web browser on Debian 12.