mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-08-14 09:25:59 -04:00
Revamp documentation on managing OSes in Qubes
- Unify and normalize Fedora and Debian docs - Deduplicate content - Cross-link pages - Move content to correct pages - Use more accurate and intuitive terms and names Fixes QubesOS/qubes-issues#5284
This commit is contained in:
parent
f9fab270e8
commit
4fc71ac4a9
17 changed files with 875 additions and 1564 deletions
|
@ -1,115 +0,0 @@
|
|||
---
|
||||
layout: doc
|
||||
title: Debian Minimal Template
|
||||
permalink: /doc/templates/debian-minimal/
|
||||
---
|
||||
|
||||
Debian - minimal
|
||||
================
|
||||
|
||||
The template weighs about 200 MB compressed (0.75 GB on disk) and has only the most vital packages installed, including a minimal X and xterm installation.
|
||||
The minimal template, however, can be easily extended to fit your requirements.
|
||||
The sections below contain instructions on cloning the template and provide some examples for commonly desired use cases.
|
||||
|
||||
Note that use of the minimal template requires some familiarity with the command line and basics of Qubes.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
The Debian minimal template can be installed with the following command:
|
||||
|
||||
~~~
|
||||
[user@dom0 ~]$ sudo qubes-dom0-update --enablerepo=qubes-templates-itl-testing qubes-template-debian-9-minimal
|
||||
~~~
|
||||
|
||||
The download may take a while depending on your connection speed.
|
||||
|
||||
Duplication and first steps
|
||||
---------------------------
|
||||
|
||||
It is highly recommended that you clone the original template, and make any changes in the clone instead of the original template.
|
||||
The following command clones the template.
|
||||
(Replace `your-new-clone` with your desired name.)
|
||||
|
||||
~~~
|
||||
[user@dom0 ~]$ qvm-clone debian-9-minimal your-new-clone
|
||||
~~~
|
||||
|
||||
You must start the template in order to customize it.
|
||||
|
||||
Customization
|
||||
-------------
|
||||
|
||||
Customizing the template for specific use cases normally only requires installing additional packages.
|
||||
The following table provides an overview of which packages are needed for which purpose.
|
||||
|
||||
As you would expect, the required packages can be installed in the running template with any apt-based command.
|
||||
For example : (Replace "packages` with a space-delimited list of packages to be installed.)
|
||||
|
||||
~~~
|
||||
[user@your-new-clone ~]$ sudo apt install packages
|
||||
~~~
|
||||
|
||||
Qubes 4.0
|
||||
---------
|
||||
|
||||
In Qubes R4.0 the minimal template is not configured for passwordless root.
|
||||
To update or install packages to it, from a dom0 terminal window run:
|
||||
|
||||
~~~
|
||||
[user@dom0 ~]$ qvm-run -u root debian-9-minimal xterm
|
||||
~~~
|
||||
to open a root terminal in the template, from which you can use apt tools without sudo.
|
||||
You will have to do this every time you want root access if you choose not to enable passwordless root.
|
||||
|
||||
If you want the usual qubes `sudo ...` commands, open the root terminal using the above command, and in the root xterm window enter
|
||||
|
||||
~~~
|
||||
bash-4.4# apt install qubes-core-agent-passwordless-root
|
||||
~~~
|
||||
|
||||
Optionally check this worked: from the gui open the minimal template's xterm and give the command:
|
||||
|
||||
~~~
|
||||
[user@debian-9-minimal ~]$ sudo -l
|
||||
~~~
|
||||
|
||||
which should give you output that includes the NOPASSWD keyword.
|
||||
|
||||
### Package table for Qubes 4.0
|
||||
|
||||
Use case | Description | Required steps
|
||||
--- | --- | ---
|
||||
**Standard utilities** | If you need the commonly used utilities | Install the following packages: `pciutils` `vim-minimal` `less` `psmisc` `gnome-keyring`
|
||||
**Networking** | If you want networking | Install qubes-core-agent-networking
|
||||
**Audio** | If you want sound from your VM... | Install `pulseaudio-qubes`
|
||||
**FirewallVM** | You can use the minimal template as a template for a [FirewallVM](/doc/firewall/), like `sys-firewall` | Install `qubes-core-agent-networking`, and `nftables`. Also install `qubes-core-agent-dom0-updates` if you want to use a qube based on the template as an updateVM (normally sys-firewall).
|
||||
**NetVM** | You can use this template as the basis for a NetVM such as `sys-net` | Install the following packages: `qubes-core-agent-networking`, `qubes-core-agent-network-manager`, and `nftables`.
|
||||
**NetVM (extra firmware)** | If your network devices need extra packages for a network VM | Use the `lspci` command to identify the devices, then find the package that provides necessary firnware and install it.
|
||||
**Network utilities** | If you need utilities for debugging and analyzing network connections | Install the following packages: `tcpdump` `telnet` `nmap` `nmap-ncat`
|
||||
**USB** | If you want to use this template as the basis for a [USB](/doc/usb/) qube such as `sys-usb` | Install `qubes-usb-proxy`. To use USB mouse or keyboard install `qubes-input-proxy-sender`.
|
||||
**VPN** | You can use this template as basis for a [VPN](/doc/vpn/) qube | You may need to install network-manager VPN packages, depending on the VPN technology you'll be using. After creating a machine based on this template, follow the [VPN howto](/doc/vpn/#set-up-a-proxyvm-as-a-vpn-gateway-using-networkmanager) to configure it.
|
||||
|
||||
|
||||
In Qubes 4.0, additional packages from the `qubes-core-agent` suite may be needed to make the customized minimal template work properly.
|
||||
These packages are:
|
||||
|
||||
- `qubes-core-agent-nautilus`: This package provides integration with the Nautilus file manager (without it, items like "copy to VM/open in disposable VM" will not be shown in Nautilus).
|
||||
- `qubes-core-agent-thunar`: This package provides integration with the thunar file manager (without it, items like "copy to VM/open in disposable VM" will not be shown in thunar).
|
||||
- `qubes-core-agent-dom0-updates`: Script required to handle `dom0` updates. Any template on which the qube responsible for 'dom0' updates (e.g. `sys-firewall`) is based must contain this package.
|
||||
- `qubes-menus`: Defines menu layout.
|
||||
- `qubes-desktop-linux-common`: Contains icons and scripts to improve desktop experience.
|
||||
|
||||
Also, there are packages to provide additional services:
|
||||
- `qubes-gpg-split`: For implementing split GPG.
|
||||
- `qubes-u2f`: For implementing secure forwarding of U2F messages.
|
||||
- `qubes-pdf-converter`: For implementing safe conversion of PDFs.
|
||||
- `qubes-img-converter`: For implementing safe conversion of images.
|
||||
- `qubes-snapd-helper`: If you want to use snaps in qubes.
|
||||
- `qubes-thunderbird`: Additional tools for use in thunderbird.
|
||||
- `qubes-app-shutdown-idle`: If you want qubes to automatically shutdown when idle.
|
||||
- `qubes-mgmt-\*`: If you want to use salt management on the template and qubes.
|
||||
|
||||
Documentation on all of these can be found in the [docs](/doc)
|
||||
|
||||
You could, of course, use qubes-vm-recommended to automatically install many of these, but in that case you are well on the way to a standard Debian template.
|
|
@ -1,91 +0,0 @@
|
|||
---
|
||||
layout: doc
|
||||
title: Upgrading the Debian 8 Template to Debian 9
|
||||
permalink: /doc/template/debian/upgrade-8-to-9/
|
||||
redirect_from:
|
||||
- /doc/debian-template-upgrade-8/
|
||||
- /en/doc/debian-template-upgrade-8/
|
||||
- /doc/DebianTemplateUpgrade8/
|
||||
- /wiki/DebianTemplateUpgrade8/
|
||||
---
|
||||
|
||||
Upgrading the Debian 8 Template
|
||||
===============================
|
||||
|
||||
Please note that if you installed packages from one of the testing repositories you must make sure that the repository is enabled in `/etc/apt/sources.list.d/qubes-r4.list` before attempting the upgrade.
|
||||
Otherwise, your upgrade will [break](https://github.com/QubesOS/qubes-issues/issues/2418).
|
||||
|
||||
Summary: Upgrading a Debian 8 Template to Debian 9
|
||||
--------------------------------------------------
|
||||
|
||||
[user@dom0 ~]$ qvm-clone debian-8 debian-9
|
||||
[user@dom0 ~]$ qvm-run -a debian-9 gnome-terminal
|
||||
[user@debian-9 ~]$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
|
||||
[user@debian-9 ~]$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/qubes-r4.list
|
||||
[user@debian-9 ~]$ sudo apt-get update && sudo apt-get dist-upgrade -y
|
||||
[user@debian-9 ~]$ sudo apt-get autoremove
|
||||
|
||||
Detailed: Upgrading the Standard Debian 8 Template to Debian 9
|
||||
--------------------------------------------------------------
|
||||
|
||||
These instructions will show you how to upgrade the standard Debian 8
|
||||
TemplateVM to Debian 9. The same general procedure may be used to upgrade
|
||||
any template based on the standard Debian 8 template.
|
||||
|
||||
1. Ensure the existing template is not running.
|
||||
|
||||
[user@dom0 ~]$ qvm-shutdown debian-8
|
||||
|
||||
2. Clone the existing template and start a terminal in the new template.
|
||||
|
||||
[user@dom0 ~]$ qvm-clone debian-8 debian-9
|
||||
[user@dom0 ~]$ qvm-run -a debian-9 gnome-terminal
|
||||
|
||||
3. Update your apt repositories to use stretch instead of jessie
|
||||
(This can be done manually with a text editor, but sed can be used to
|
||||
automatically update the files.)
|
||||
|
||||
[user@debian-9 ~]$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
|
||||
[user@debian-9 ~]$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/qubes-r4.list
|
||||
|
||||
4. Update the package lists and upgrade to Debian 9. During the process,
|
||||
it will likely prompt to overwrite two files, qubes-r4.list and
|
||||
pulse/client.conf. qubes-r4.list can be overwritten, while pulse/client.conf
|
||||
need to left as the currently installed version.
|
||||
|
||||
[user@debian-9 ~]$ sudo apt-get update && sudo apt-get dist-upgrade -y
|
||||
|
||||
5. Remove unnecessary packages that were previously installed
|
||||
|
||||
[user@debian-9 ~]$ sudo apt-get autoremove
|
||||
|
||||
6. Shutdown the new TemplateVM via dom0 command line or Qubes VM Manager;
|
||||
|
||||
[user@dom0 ~]$ qvm-shutdown debian-9
|
||||
|
||||
7. (Recommended) [Switch everything that was set to the old template to the new
|
||||
template.](/doc/templates/#how-to-switch-templates)
|
||||
|
||||
8. (Optional) Remove the old default template.
|
||||
|
||||
[user@dom0 ~]$ sudo yum remove qubes-template-debian-8
|
||||
|
||||
Additional Information
|
||||
----------------------
|
||||
|
||||
Debian Stretch packages were first made available in the Qubes R3.1 repositories.
|
||||
|
||||
If sound is not working, you may need to enable the Qubes testing repository to get the testing version of qubes-gui-agent.
|
||||
This can be done by editing the /etc/apt/sources.list.d/qubes-r4.list file and uncommenting the Qubes Updates Candidates repo.
|
||||
|
||||
User-initiated updates/upgrades may not run when a templateVM first starts.
|
||||
This is due to a new Debian config setting that attempts to update automatically; it should be disabled with:
|
||||
`sudo systemctl disable apt-daily.{service,timer}`.
|
||||
|
||||
Relevant Discussions
|
||||
--------------------
|
||||
* [Stretch Template Installation](https://groups.google.com/forum/#!topicsearchin/qubes-devel/debian$20stretch/qubes-devel/4rdayBF_UTc)
|
||||
* [Stretch availability in 3.2](https://groups.google.com/forum/#!topicsearchin/qubes-devel/debian$20stretch/qubes-devel/cekPfBqQMOI)
|
||||
* [Fixing sound in Debian Stretch](https://groups.google.com/forum/#!topic/qubes-users/JddCE54GFiU)
|
||||
* [User apt commands blocked on startup](https://github.com/QubesOS/qubes-issues/issues/2621)
|
||||
|
|
@ -1,122 +1,164 @@
|
|||
---
|
||||
layout: doc
|
||||
title: Upgrading the Debian Templates
|
||||
title: Upgrading Debian TemplateVMs
|
||||
permalink: /doc/template/debian/upgrade/
|
||||
redirect_from:
|
||||
- /doc/template/debian/upgrade-8-to-9/
|
||||
- /doc/debian-template-upgrade-8/
|
||||
- /en/doc/debian-template-upgrade-8/
|
||||
- /doc/DebianTemplateUpgrade8/
|
||||
- /wiki/DebianTemplateUpgrade8/
|
||||
---
|
||||
|
||||
Upgrading Debian Templates
|
||||
===============================
|
||||
# Upgrading Debian TemplateVMs
|
||||
|
||||
In general, upgrading a Debian template follows the same process as [upgrading a native Debian system][upgrade].
|
||||
You should consult the release notes for the target version. For Debian-10 see [here][release].
|
||||
This page provides instructions for performing an in-place upgrade of an installed [Debian TemplateVM].
|
||||
If you wish to install a new, unmodified Debian TemplateVM instead of upgrading a template that is already installed in your system, please see the [Debian TemplateVM] page instead.
|
||||
|
||||
Please note that if you installed packages from one of the testing repositories you must make sure that the repository is enabled in `/etc/apt/sources.list.d/qubes-r4.list` before attempting the upgrade.
|
||||
Otherwise, your upgrade will [break](https://github.com/QubesOS/qubes-issues/issues/2418).
|
||||
|
||||
By default, Qubes uses codenames in the apt sources files, although the templates are referred to by release number.
|
||||
Check the code names for the templates, and ensure you are aware of any changes you have made in the repository definitons.
|
||||
|
||||
In this example we are upgrading from debian-9 (stretch) to debian-10 (buster)
|
||||
In general, upgrading a Debian TemplateVM follows the same process as [upgrading a native Debian system][upgrade].
|
||||
|
||||
|
||||
Summary: Upgrading a Debian Template
|
||||
--------------------------------------------------
|
||||
## Summary instructions for Debian TemplateVMs
|
||||
|
||||
1. Clone the existing template.
|
||||
2. Open a terminal in the new template.
|
||||
3. Edit the sources.list files to refer to the new version.
|
||||
4. Perform the upgrade:
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
sudo apt dist-upgrade
|
||||
```
|
||||
5. Compact the template
|
||||
6. Shutdown and start using the new template.
|
||||
**Note:** The prompt on each line indicates where each command should be entered: `dom0`, `debian-<old>`, or `debian-<new>`, where `<old>` is the Debian version number *from* which you are upgrading, and `<new>` is the Debian version number *to* which you are upgrading.
|
||||
|
||||
Detailed instructions:
|
||||
--------------------------------------------------------------
|
||||
[user@dom0 ~]$ qvm-clone debian-<old> debian-<new>
|
||||
[user@dom0 ~]$ qvm-run -a debian-<new> gnome-terminal
|
||||
[user@debian-<new> ~]$ sudo sed -i 's/<old-name>/<new-name>/g' /etc/apt/sources.list
|
||||
[user@debian-<new> ~]$ sudo sed -i 's/<old-name>/<new-name>/g' /etc/apt/sources.list.d/qubes-r4.list
|
||||
[user@debian-<new> ~]$ sudo apt update
|
||||
[user@debian-<new> ~]$ sudo apt upgrade
|
||||
[user@debian-<new> ~]$ sudo apt dist-upgrade
|
||||
[user@debian-<new> ~]$ sudo fstrim -av
|
||||
[user@dom0 ~]$ qvm-shutdown debian-<new>
|
||||
[user@dom0 ~]$ qvm-start debian-<new>
|
||||
[user@debian-<new> ~]$ sudo fstrim -av
|
||||
[user@dom0 ~]$ qvm-shutdown debian-<new>
|
||||
|
||||
These instructions show you how to upgrade the standard Debian 9 TemplateVM to Debian 10.
|
||||
**Recommended:** [Switch everything that was set to the old template to the new template.][switch]
|
||||
|
||||
|
||||
## Detailed instructions for Debian TemplateVMs
|
||||
|
||||
These instructions will show you how to upgrade Debian TemplateVMs.
|
||||
The same general procedure may be used to upgrade any template based on the standard Debian TemplateVM.
|
||||
|
||||
**Note:** The prompt on each line indicates where each command should be entered: `dom0`, `debian-<old>`, or `debian-<new>`, where `<old>` is the Debian version number *from* which you are upgrading, and `<new>` is the Debian version number *to* which you are upgrading.
|
||||
|
||||
1. Ensure the existing template is not running.
|
||||
|
||||
[user@dom0 ~]$ qvm-shutdown debian-9
|
||||
[user@dom0 ~]$ qvm-shutdown debian-<old>
|
||||
|
||||
2. Clone the existing template and start a terminal in the new template.
|
||||
|
||||
[user@dom0 ~]$ qvm-clone debian-9 debian-10
|
||||
[user@dom0 ~]$ qvm-run -a debian-10 gnome-terminal
|
||||
[user@dom0 ~]$ qvm-clone debian-<old> debian-<new>
|
||||
[user@dom0 ~]$ qvm-run -a debian-<new> gnome-terminal
|
||||
|
||||
3. Update your apt repositories to use buster instead of stretch
|
||||
(This can be done manually with a text editor, but sed can be used to automatically update the files.)
|
||||
3. Update your `apt` repositories to use the new release's code name instead of the old release's code name.
|
||||
(This can be done manually with a text editor, but `sed` can be used to automatically update the files.)
|
||||
|
||||
```
|
||||
$ sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list
|
||||
$ sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/qubes-r4.list
|
||||
```
|
||||
[user@debian-<new> ~]$ sudo sed -i 's/<old-name>/<new-name>/g' /etc/apt/sources.list
|
||||
[user@debian-<new> ~]$ sudo sed -i 's/<old-name>/<new-name>/g' /etc/apt/sources.list.d/qubes-r4.list
|
||||
|
||||
4. Update the package lists and upgrade to Debian 10.
|
||||
During the process, it may prompt you to overwrite the file `qubes-r4.list`.
|
||||
You should overwrite this file.
|
||||
|
||||
```
|
||||
$ sudo apt update
|
||||
$ sudo apt upgrade
|
||||
$ sudo apt dist-upgrade
|
||||
```
|
||||
5. (optional) Remove unnecessary packages that were previously installed
|
||||
4. Update the package lists and upgrade.
|
||||
During the process, it may prompt you to overwrite the file `qubes-r4.list`.
|
||||
You should overwrite this file.
|
||||
|
||||
`sudo apt-get autoremove`
|
||||
[user@debian-<new> ~]$ sudo apt update
|
||||
[user@debian-<new> ~]$ sudo apt upgrade
|
||||
[user@debian-<new> ~]$ sudo apt dist-upgrade
|
||||
|
||||
6. (optional) Clean cached packages from /var/cache/apt
|
||||
```
|
||||
$ sudo apt-get clean
|
||||
```
|
||||
5. (Optional) Remove unnecessary packages that were previously installed.
|
||||
|
||||
7. Compact the template.
|
||||
[user@debian-<new> ~]$ sudo apt-get autoremove
|
||||
|
||||
8. Shutdown the new TemplateVM via dom0 command line or the Qube Manager.
|
||||
6. (Optional) Clean cached packages from `/var/cache/apt`.
|
||||
|
||||
[user@debian-<new> ~]$ sudo apt-get clean
|
||||
|
||||
7. (Recommended) Trim the new template.
|
||||
|
||||
[user@debian-<new> ~]$ sudo fstrim -av
|
||||
[user@dom0 ~]$ qvm-shutdown debian-<new>
|
||||
[user@dom0 ~]$ qvm-start debian-<new>
|
||||
[user@debian-<new> ~]$ sudo fstrim -av
|
||||
|
||||
8. Shut down the new TemplateVM.
|
||||
|
||||
[user@dom0 ~]$ qvm-shutdown debian-<new>
|
||||
|
||||
9. (Recommended) [Switch everything that was set to the old template to the new template.][switch]
|
||||
|
||||
10. (Optional) Change the global default template to use the new template.
|
||||
10. (Optional) Make the new template the global default.
|
||||
|
||||
11. (Optional) Remove the old template using dom0 command line or the Qube Manager.
|
||||
[user@dom0 ~]$ qubes-prefs --set debian-<new>
|
||||
|
||||
11. (Optional) Remove the old template.
|
||||
(Make sure to type the name of the old template, not the new one.)
|
||||
|
||||
[user@dom0 ~]$ sudo dnf remove qubes-template-debian-<old>
|
||||
|
||||
|
||||
Compacting the Upgraded Template
|
||||
--------------------------------
|
||||
## StandaloneVMs
|
||||
|
||||
1. Open a terminal in the template and run:
|
||||
```
|
||||
$ sudo fstrim -av
|
||||
$ sudo shutdown -h
|
||||
```
|
||||
2. Restart the template and run step 1 again.
|
||||
This ensures that changes in the upgrade process are not stored in a difference file.
|
||||
|
||||
The procedure for upgrading a Debian [StandaloneVM] is the same as for a TemplateVM.
|
||||
|
||||
Additional Information
|
||||
----------------------
|
||||
|
||||
User-initiated updates/upgrades may not run when a templateVM first starts.
|
||||
This is due to a Debian config setting that attempts to update the system automatically.
|
||||
You should disable this by opening a terminal in the template and running:
|
||||
```
|
||||
$ sudo systemctl disable apt-daily.{service,timer}`.
|
||||
```
|
||||
## Release-specific notes
|
||||
|
||||
Look [here][jessie] for notes specific to updating a jessie template.
|
||||
This section contains notes about upgrading to specific releases.
|
||||
|
||||
Relevant Discussions
|
||||
--------------------
|
||||
* [User apt commands blocked on startup][2621]
|
||||
|
||||
### Debian 10 ("Buster")
|
||||
|
||||
Please see [Debian's Buster upgrade instructions][buster].
|
||||
|
||||
|
||||
### Debian 9 ("Stretch")
|
||||
|
||||
* The upgrade process may prompt you to overwrite two files: `qubes-r4.list` and `pulse/client.conf`.
|
||||
`qubes-r4.list` can be overwritten, but `pulse/client.conf` must be left as the currently-installed version.
|
||||
|
||||
* If sound is not working, you may need to enable the Qubes testing repository to get the testing version of `qubes-gui-agent`.
|
||||
This can be done by editing the `/etc/apt/sources.list.d/qubes-r4.list` file and uncommenting the `Qubes Updates Candidates` repo.
|
||||
|
||||
* User-initiated updates/upgrades may not run when a templateVM first starts.
|
||||
This is due to a new Debian config setting that attempts to update automatically; it should be disabled with `sudo systemctl disable apt-daily.{service,timer}`.
|
||||
|
||||
Relevant discussions:
|
||||
* [Stretch Template Installation](https://groups.google.com/forum/#!topicsearchin/qubes-devel/debian$20stretch/qubes-devel/4rdayBF_UTc)
|
||||
* [Stretch availability in 3.2](https://groups.google.com/forum/#!topicsearchin/qubes-devel/debian$20stretch/qubes-devel/cekPfBqQMOI)
|
||||
* [Fixing sound in Debian Stretch](https://groups.google.com/forum/#!topic/qubes-users/JddCE54GFiU)
|
||||
* [User apt commands blocked on startup](https://github.com/QubesOS/qubes-issues/issues/2621)
|
||||
|
||||
Also see [Debian's Stretch upgrade instructions][stretch].
|
||||
|
||||
|
||||
### Debian 8 ("Jessie")
|
||||
|
||||
Please see [Debian's Jessie upgrade instructions][jessie].
|
||||
|
||||
|
||||
### End-of-life (EOL) releases
|
||||
|
||||
We strongly recommend against using any Debian release that has reached [end-of-life (EOL)].
|
||||
|
||||
|
||||
## Additional information
|
||||
|
||||
* Please note that, if you installed packages from one of the testing repositories, you must make sure that the repository is enabled in `/etc/apt/sources.list.d/qubes-r4.list` before attempting the upgrade.
|
||||
Otherwise, your upgrade will [break](https://github.com/QubesOS/qubes-issues/issues/2418).
|
||||
|
||||
* By default, Qubes uses code names in the `apt` sources files, although the templates are referred to by release number.
|
||||
Check the code names for the templates, and ensure you are aware of any changes you have made in the repository definitions.
|
||||
|
||||
|
||||
[Debian TemplateVM]: /doc/templates/debian/
|
||||
[upgrade]: https://wiki.debian.org/DebianUpgrade
|
||||
[2621]: https://github.com/QubesOS/qubes-issues/issues/2621
|
||||
[switch]: /doc/templates/#how-to-switch-templates)
|
||||
[release]: https://www.debian.org/releases/buster/amd64/release-notes/ch-upgrading.en.html
|
||||
[switch]: /doc/templates/#how-to-switch-templates
|
||||
[jessie]: /doc/template/debian/upgrade-8-to-9/
|
||||
[switch]: /doc/templates/#switching
|
||||
[jessie]: https://www.debian.org/releases/jessie/amd64/release-notes/ch-upgrading.en.html
|
||||
[stretch]: https://www.debian.org/releases/stretch/amd64/release-notes/ch-upgrading.en.html
|
||||
[buster]: https://www.debian.org/releases/buster/amd64/release-notes/ch-upgrading.en.html
|
||||
[end-of-life (EOL)]: https://wiki.debian.org/DebianReleases#Production_Releases
|
||||
[StandaloneVM]: /doc/standalone-and-hvm/
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: doc
|
||||
title: Debian Template
|
||||
title: The Debian TemplateVM
|
||||
permalink: /doc/templates/debian/
|
||||
redirect_from:
|
||||
- /doc/debian/
|
||||
|
@ -9,40 +9,54 @@ redirect_from:
|
|||
- /wiki/Templates/Debian/
|
||||
---
|
||||
|
||||
Debian template(s)
|
||||
===============
|
||||
# The Debian TemplateVM
|
||||
|
||||
If you would like to use Debian Linux distribution in your qubes, you can install one of the available Debian templates.
|
||||
|
||||
Updates for these templates are provided by ITL and are signed by this key:
|
||||
|
||||
pub 4096R/47FD92FA 2014-07-27
|
||||
Key fingerprint = 2D43 E932 54EE EA7C B31B 6A77 5E58 18AB 47FD 92FA
|
||||
uid Qubes OS Debian Packages Signing Key
|
||||
|
||||
The key is already installed when you install (signed) template package.
|
||||
You can also obtain the key from [git repository][git] which is also integrity-protected using signed git tags.
|
||||
The Debian [TemplateVM] is an officially [supported] TemplateVM in Qubes OS.
|
||||
This page is about the standard (or "full") Debian TemplateVM.
|
||||
For the minimal version, please see the [Minimal TemplateVMs] page.
|
||||
There is also a [Qubes page on the Debian Wiki].
|
||||
|
||||
|
||||
Installing
|
||||
----------
|
||||
## Installing
|
||||
|
||||
Templates can be installed with the following command:
|
||||
To [install] a specific Debian TemplateVM that is not currently installed in your system, use the following command in dom0:
|
||||
|
||||
Debian 7 (wheezy) - obsolete/archive:
|
||||
$ sudo qubes-dom0-update qubes-template-debian-XX
|
||||
|
||||
[user@dom0 ~]$ sudo qubes-dom0-update qubes-template-debian-7
|
||||
(Replace `XX` with the Debian version number of the template you wish to install.)
|
||||
|
||||
Debian 8 (jessie) - oldoldstable:
|
||||
|
||||
[user@dom0 ~]$ sudo qubes-dom0-update qubes-template-debian-8
|
||||
|
||||
Debian 9 (stretch) - oldstable:
|
||||
|
||||
[user@dom0 ~]$ sudo qubes-dom0-update qubes-template-debian-9
|
||||
To reinstall a Debian TemplateVM that is already installed in your system, see [How to Reinstall a TemplateVM].
|
||||
|
||||
|
||||
Debian-10 templates are currently available from the testing repository.
|
||||
## After Installing
|
||||
|
||||
After installing a fresh Debian TemplateVM, we recommend performing the following steps:
|
||||
|
||||
1. [Update the TemplateVM].
|
||||
|
||||
2. [Switch any TemplateBasedVMs that are based on the old TemplateVM to the new one][switch].
|
||||
|
||||
3. If desired, [uninstall the old TemplateVM].
|
||||
|
||||
|
||||
## Updating
|
||||
|
||||
Please see [Updating software in TemplateVMs].
|
||||
|
||||
|
||||
## Upgrading
|
||||
|
||||
Please see [Upgrading Debian TemplateVMs].
|
||||
|
||||
|
||||
## Release-specific notes
|
||||
|
||||
This section contains notes about specific Debian releases.
|
||||
|
||||
|
||||
### Debian 10
|
||||
|
||||
Debian 10 templates are currently available from the testing repository.
|
||||
|
||||
Debian 10 (buster) - minimal:
|
||||
|
||||
|
@ -59,18 +73,8 @@ Debian 10 (buster) - stable:
|
|||
Because this template was built *before* buster became stable, it cannot be updated without [manually accepting the change in status][5149].
|
||||
|
||||
|
||||
Upgrading
|
||||
---------
|
||||
|
||||
To upgrade an existing Debian TemplateVM, please consult [this guide][Upgrading]
|
||||
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
### Starting services
|
||||
|
||||
|
||||
The Debian way (generally) is to start daemons if they are installed.
|
||||
This means that if you install (say) ssh-server in a template, *all* the qubes that use that template will run a ssh server when they start. (They will, naturally, all have the same server key.) This may not be what you want.
|
||||
|
||||
|
@ -116,20 +120,17 @@ One solution is to add a dummy interface to allow the package to install correct
|
|||
ip link set d0 up
|
||||
|
||||
|
||||
|
||||
Contributing
|
||||
----------------
|
||||
|
||||
If you want to help in improving the template, feel free to [contribute]
|
||||
|
||||
|
||||
More information
|
||||
----------------
|
||||
|
||||
* [Debian wiki](https://wiki.debian.org/Qubes)
|
||||
|
||||
[Upgrading]: /doc/template/debian/upgrade
|
||||
[TemplateVM]: /doc/templates/
|
||||
[Minimal TemplateVMs]: /doc/templates/minimal/
|
||||
[Qubes page on the Debian Wiki]: https://wiki.debian.org/Qubes
|
||||
[end-of-life]: https://wiki.debian.org/DebianReleases#Production_Releases
|
||||
[supported]: /doc/supported-versions/#templatevms
|
||||
[How to Reinstall a TemplateVM]: /doc/reinstall-template/
|
||||
[Update the TemplateVM]: /doc/software-update-vm/
|
||||
[switch]: /doc/templates/#switching
|
||||
[uninstall the old TemplateVM]: /doc/templates/#how-to-uninstall
|
||||
[Updating software in TemplateVMs]: /doc/software-update-domu/#updating-softare-in-templatevms
|
||||
[Upgrading Debian TemplateVMs]: /doc/template/debian/upgrade/
|
||||
[5149]: https://github.com/QubesOS/qubes-issues/issues/5149
|
||||
[git]: https://github.com/QubesOS/qubes-core-agent-linux/blob/master/misc/qubes-archive-keyring.gpg
|
||||
[builder]: /doc/qubes-builder/
|
||||
[contribute]: /doc/contributing/
|
||||
[install]: /doc/templates/#installing
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue