2023-11-13 09:33:28 -05:00
|
|
|
# browser
|
|
|
|
|
|
|
|
Browser environment in Qubes OS.
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* [Description](#description)
|
|
|
|
* [Installation](#installation)
|
|
|
|
* [Choose your browser](#choose-your-browser)
|
|
|
|
* [Usage](#usage)
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Create environment for browsing. By default it creates a disposable template
|
|
|
|
called "dvm-browser", so when clicking the icon/launcher, it opens a
|
|
|
|
disposable qube. If you want to save your session, you can also clone the
|
|
|
|
template and create app qubes.
|
|
|
|
|
|
|
|
Default browser to install is Chromium, but you can choose to install Chrome,
|
2024-06-28 05:28:04 -04:00
|
|
|
Firefox, Firefox-ESR, Mullvad-Browser, W3M or Lynx.
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Top:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl top.enable browser
|
|
|
|
sudo qubesctl --targets=tpl-browser,dvm-browser state.apply
|
|
|
|
sudo qubesctl top.disable browser
|
|
|
|
sudo qubesctl state.apply browser.appmenus
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* State:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
<!-- pkg:begin:post-install -->
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl state.apply browser.create
|
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install
|
|
|
|
sudo qubesctl --skip-dom0 --targets=dvm-browser state.apply browser.configure
|
|
|
|
sudo qubesctl state.apply browser.appmenus
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
<!-- pkg:end:post-install -->
|
|
|
|
|
2024-06-09 06:36:39 -04:00
|
|
|
### Choose your browser
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
Instead of running the state `browser.install`, you can select which browser
|
|
|
|
to install:
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Chromium:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-chromium
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
2024-05-24 07:53:17 -04:00
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Chrome:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-chrome
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
2024-05-24 07:53:17 -04:00
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Firefox:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-firefox
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
2024-05-24 07:53:17 -04:00
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Firefox-ESR:
|
|
|
|
|
2024-05-24 07:53:17 -04:00
|
|
|
```sh
|
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-firefox-esr
|
|
|
|
```
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Mullvad-Browser:
|
|
|
|
|
2024-06-28 05:28:04 -04:00
|
|
|
```sh
|
2024-06-30 20:55:46 -04:00
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-mullvad
|
2024-06-28 05:28:04 -04:00
|
|
|
```
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* W3M:
|
2024-06-28 05:28:04 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-w3m
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
2024-05-24 07:53:17 -04:00
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Lynx:
|
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-browser state.apply browser.install-lynx
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
Do not forget to sync the `appmenus`:
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl state.apply browser.appmenus
|
2023-11-13 09:33:28 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Open a disposable qube simply by clicking on the desktop application
|
|
|
|
`dvm-browser (dvm): Browser`.
|
|
|
|
|
|
|
|
If you want to use a permanent browser session, create an app qube based on
|
|
|
|
`tpl-browser`.
|
|
|
|
|
|
|
|
If you are forwarding URLs from other qubes via `qvm-open-in-(d)vm`, you might
|
|
|
|
want to set your preferred browser as the default browser in `tpl-browser`
|
|
|
|
targeting the desired desktop file:
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2023-11-13 09:33:28 -05:00
|
|
|
```sh
|
|
|
|
xdg-settings set default-web-browser firefox-esr.desktop
|
|
|
|
```
|