diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..68adf784
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,5 @@
+include:
+ - https://raw.githubusercontent.com/QubesOS/qubes-continuous-integration/master/gitlab-website.yml
+
+build:doc:
+ extends: .website
diff --git a/developer/code/license.md b/developer/code/license.md
index 1a7879a2..7064d94c 100644
--- a/developer/code/license.md
+++ b/developer/code/license.md
@@ -14,8 +14,3 @@ Qubes OS License
Qubes is a compilation of software packages, each under its own license. The compilation is made available under the GNU General Public License version 2.
The full text of the GPL v2 license can be found [here](http://www.gnu.org/licenses/gpl-2.0.html).
-
-Note on rights to double-licensing of the Qubes code
-----------------------------------------------------
-
-Invisible Things Lab (ITL), who has funded and run the Qubes project since the beginning, and who has contributed the majority of Qubes-specific code (specifically: `core-*`, `gui-*`, and `qubes-*` repositories) would like to have a right to redistribute parts of this code under proprietary licenses. This is especially important for Qubes R3 and later, where the new architecture allows the creation of many editions of Qubes, using different hypervisors, some of which might not be open source. That's why we ask every developer who contributes code to Qubes project to grant ITL permission to reuse the code under a different license, and to express this consent by including the [standard signed-off line](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=HEAD#n416) in the commit.
diff --git a/developer/services/qrexec-socket-services.md b/developer/services/qrexec-socket-services.md
index a98045eb..e15adc3d 100644
--- a/developer/services/qrexec-socket-services.md
+++ b/developer/services/qrexec-socket-services.md
@@ -223,8 +223,8 @@ echo -e 'policy.Ask dom0\0' | nc -U /etc/qubes-rpc/policy.Ask
## Further reading
-* [Qrexec overview][qrexec](/doc/qrexec/)
-* [Qrexec internals][qrexec](/doc/qrexec-internals/)
+* [Qrexec overview](/doc/qrexec/)
+* [Qrexec internals](/doc/qrexec-internals/)
* [qubes-core-qrexec](https://github.com/QubesOS/qubes-core-qrexec/) repository - contains the above example
* [systemd.socket](https://www.freedesktop.org/software/systemd/man/systemd.socket.html) - socket unit configuration
* [Streams in Python asyncio](https://docs.python.org/3/library/asyncio-stream.html)
diff --git a/doc.md b/doc.md
index 928a4223..76906179 100644
--- a/doc.md
+++ b/doc.md
@@ -131,6 +131,7 @@ Core documentation for Qubes users.
* [Media Troubleshooting](/doc/media-troubleshooting/)
* [Firewall Troubleshooting](/doc/firewall/#firewall-troubleshooting)
* [Hardware Troubleshooting](/doc/hardware-troubleshooting/)
+ * [VPN Troubleshooting](/doc/vpn-troubleshooting/)
### Reference Pages
@@ -279,8 +280,9 @@ For more, please see [Qubes Community Documentation](https://github.com/Qubes-Co
* [How to install an Nvidia driver in dom0](/doc/install-nvidia-driver/)
* [Nvidia troubleshooting guide](/doc/nvidia-troubleshooting/)
* [Apple MacBook Troubleshooting](/doc/macbook-troubleshooting/)
- * [Getting Sony Vaio Z laptop to work with Qubes](/doc/sony-vaio-tinkering/)
+ * [Sony Vaio Troubleshooting](/doc/sony-vaio-tinkering/)
* [Intel Integrated Graphics Troubleshooting](/doc/intel-igfx-troubleshooting/)
+ * [Multiboot Troubleshooting](/doc/multiboot/#troubleshooting)
### Building Guides
diff --git a/external/configuration-guides/vpn.md b/external/configuration-guides/vpn.md
index 1f843215..002a28f3 100644
--- a/external/configuration-guides/vpn.md
+++ b/external/configuration-guides/vpn.md
@@ -318,6 +318,4 @@ If you want to update your TemplateVMs through the VPN, you can enable the `qube
Troubleshooting
---------------
-* Always test your basic VPN connection before adding scripts.
-* Test DNS: Ping a familiar domain name from an appVM. It should print the IP address for the domain.
-* Use `iptables -L -v` and `iptables -L -v -t nat` to check firewall rules. The latter shows the critical PR-QBS chain that enables DNS forwarding.
+See the [VPN Troubleshooting](/doc/vpn-troubleshooting/) guide for tips on how to fix common VPN issues.
diff --git a/user/troubleshooting/sony-vaio-tinkering.md b/external/troubleshooting/sony-vaio-tinkering.md
similarity index 61%
rename from user/troubleshooting/sony-vaio-tinkering.md
rename to external/troubleshooting/sony-vaio-tinkering.md
index 022e8bfa..34e4552f 100644
--- a/user/troubleshooting/sony-vaio-tinkering.md
+++ b/external/troubleshooting/sony-vaio-tinkering.md
@@ -11,36 +11,37 @@ redirect_from:
Instructions for getting your Sony Vaio Z laptop working with Qubes/Linux
=========================================================================
-Sony Vaio Z are great laptops -- they are very powerful, yet compact. The newer models, starting from Z12 are, however, not very well supported by Linux kernels (at least 2.6.34 that we currently use in Dom0) and thus some tinkering is needed to get Qubes working on those machines.
+The following issues were reported on Qubes 3.2 and may not be prevalent on Qubes 4.0.
-Getting the graphics card working under Linux/Qubes OS
-------------------------------------------------------
+Graphics card does not work
+---------------------------
-Newer models of Sony Vaio Z come with an "intelligent" GPU switch, that automatically chooses either Intel Integrated GPU (IGD) or the discrete NVIDIA GPU. This confuses the Linux graphics so much, that in most cases won't even be able to install a regular Linux on such a machine. Unfortunately, moving the switch into the "Stamina" position apparently doesn't work, and the automatic GPU switching is still active.
+Newer models of Sony Vaio Z come with an "intelligent" GPU switch, that automatically chooses either Intel Integrated GPU (IGD) or the discrete NVIDIA GPU. This confuses the Linux graphics so much, that in most cases, it won't even be able to install a regular Linux on such a machine. Unfortunately, moving the switch into the "Stamina" position apparently doesn't work, and the automatic GPU switching is still active.
One solution that actually worked for me was to reflash the BIOS (I know, I know, this is scary) and to enable the so called "Advanced Menu" in the BIOS. This Advanced Menu allows you to choose the desired behaviour of the GPU switch, which in our case would be to set it to "Static" and then move the mechanical switch to the "Stamina" position, that enabled the Intel IGD (which is much better supported on Linux).
-If you think you are ready to reflash you BIOS, here are the instructions that worked for me:
-
-[http://forum.notebookreview.com/sony/473226-insyde-hacking-new-vaio-z-advanced-menu-bios.html](http://forum.notebookreview.com/sony/473226-insyde-hacking-new-vaio-z-advanced-menu-bios.html)
+If you think you are ready to reflash you BIOS, you can follow [these instructions](http://forum.notebookreview.com/sony/473226-insyde-hacking-new-vaio-z-advanced-menu-bios.html).
**WARNING**: We take absolutely no responsibility that the BIOS reflashing instructions given at the referenced forum are 1) valid, 2) non-malicious, and 3) work at all. Do this step at your own risk. Keep in mind that reflashing your BIOS might yield your system unusable. If you don't feel like taking this risk (which is a reasonable state of mind), look for a different notebook, or ask Sony Support to enable this option for you.
-In practice I have downloaded the BIOS-patching tools, run them in a VM on a BIOS image I extracted from my laptop, diffed the two versions, and concluded that it doesn't *seem* malicious, and then bravely applied tha patched image. If you don't know what are you doing, just get a different laptop, really!
+In practice I have downloaded the BIOS-patching tools, run them in a VM on a BIOS image I extracted from my laptop, diffed the two versions, and concluded that it doesn't *seem* malicious, and then bravely applied the patched image. If you don't know what are you doing, just get a different laptop, really!
On a side note, we should note that allowing anybody to reflash the BIOS is really a bad idea from a security point of view (Hello Evil Maids!). Shame on you, Sony!
-Getting the touchpad working during installation
-------------------------------------------------
+Touchpad does not work during installation
+------------------------------------------
-In order to get the touchpad working during installation you should pass the **~~~i8042.nopnp=1~~~** option to the kernel before the installer starts.
+In order to get the touchpad working during installation you should pass the `i8042.nopnp=1` option to the kernel before the installer starts:
-\
+~~~
+sudo nano /etc/default/grub
+GRUB_CMDLINE_LINUX_DEFAULT="i8042.nopnp=1"
+~~~
Applying other fixes
--------------------
-There are a few more fixes needed for Sony Vaio Z, and we have prepared a special package that you can install in Dom0 that applies them all. After the installation is complete, open console in Dom0 and do the following:
+There are a few more fixes needed for Sony Vaio Z, and we have prepared a special package that you can install in dom0 that applies them all. After the installation is complete, open a console in dom0 and do the following:
~~~
$ sudo bash
@@ -55,4 +56,3 @@ This script takes care about the following:
- Adding special option for the sound module (so you can get sound)
- Adding pm-suspend scripts that take care about restoring your screen after resume
-... now, having done this all, you will surely feel unprecedented satisfaction and you will love your Vaio very much! ;)
diff --git a/project-security/verifying-signatures.md b/project-security/verifying-signatures.md
index 28aabd51..3fc877db 100644
--- a/project-security/verifying-signatures.md
+++ b/project-security/verifying-signatures.md
@@ -58,16 +58,17 @@ If you run into any problems, please consult the [Troubleshooting FAQ] below.
Before we begin, you'll need a program that can verify PGP signatures.
Any such program will do, but here are some examples for popular operating systems:
-**Windows:** [Gpg4win](https://gpg4win.org/download.html).
+**Windows:** [Gpg4win](https://gpg4win.org/download.html) ([documentation](https://www.gpg4win.org/documentation.html)).
Use the Windows command line (`cmd.exe`) to enter commands.
-**Mac:** [GPG Suite](https://gpgtools.org/).
+**Mac:** [GPG Suite](https://gpgtools.org/) ([documentation](https://gpgtools.tenderapp.com/kb)).
Open a terminal to enter commands.
-**Linux:** `gpg2` from your package manager or from [gnupg.org](https://gnupg.org/download/index.html).
+**Linux:** `gpg2` from your package manager or from [gnupg.org](https://gnupg.org/download/index.html) ([documentation](https://www.gnupg.org/documentation/)).
Open a terminal to enter commands.
The commands below will use `gpg2`, but if that doesn't work for you, try `gpg` instead.
+If that still doesn't work, please consult the documentation for your specific program (see links above).
### 1. Get the Qubes Master Signing Key and verify its authenticity
@@ -83,6 +84,12 @@ There are several ways to get the Qubes Master Signing Key.
$ gpg2 --import /usr/share/qubes/qubes-master-key.asc
+ - If you're on Fedora, you can get it in the `distribution-gpg-keys` package:
+
+ $ dnf install distribution-gpg-keys
+
+ - If you're on Debian, it may already be included in your keyring.
+
- Fetch it with GPG:
$ gpg2 --fetch-keys https://keys.qubes-os.org/keys/qubes-master-signing-key.asc
@@ -91,38 +98,55 @@ There are several ways to get the Qubes Master Signing Key.
$ gpg2 --import ./qubes-master-signing-key.asc
- - Get it from a public [keyserver] (specified on first use with `--keyserver `, then saved in `~/.gnupg/gpg.conf`), e.g.:
+ - Get it from a public [keyserver] (specified on first use with `--keyserver ` along with keyserver options to include key signatures), e.g.:
- $ gpg2 --keyserver pool.sks-keyservers.net --recv-keys 0x427F11FD0FAA4B080123F01CDDFA1A3E36879494
+ $ gpg2 --keyserver-options no-self-sigs-only,no-import-clean --keyserver hkp://pool.sks-keyservers.net:11371 --recv-keys 0x427F11FD0FAA4B080123F01CDDFA1A3E36879494
The Qubes Master Signing Key is also available in the [Qubes Security Pack] and in the archives of the project's [developer][devel-master-key-msg] and [user][user-master-key-msg] [mailing lists].
-Once you have obtained the Qubes Master Signing Key, you should verify the fingerprint of this key very carefully by obtaining copies of the fingerprint from multiple independent sources and comparing them to the downloaded key's fingerprint to ensure they match.
-Here are some ideas:
+Once you have obtained the Qubes Master Signing Key, you must verify that it is authentic rather than a forgery.
+Anyone can create a PGP key with the name "Qubes Master Signing Key," so you cannot rely on the name alone.
+You also should not rely on any single website, not even over HTTPS.
- - Use the PGP Web of Trust.
- - Check the key against different keyservers.
- - Use different search engines to search for the fingerprint.
- - Use Tor to view and search for the fingerprint on various websites.
- - Use various VPNs and proxy servers.
- - Use different Wi-Fi networks (work, school, internet cafe, etc.).
- - Ask people to post the fingerprint in various forums and chat rooms.
- - Check against PDFs and photographs in which the fingerprint appears
- (e.g., slides from a talk or on a T-shirt).
- - Repeat all of the above from different computers and devices.
+So, what *should* you do?
+One option is to use the PGP [Web of Trust](https://en.wikipedia.org/wiki/Web_of_trust).
+In addition, some operating systems include the means to acquire the Qubes Master Signing Key in a secure way.
+For example, on Fedora, `dnf install distribution-gpg-keys` will get you the Qubes Master Signing Key along with several other Qubes keys.
+On Debian, your keyring may already contain the necessary keys.
-In addition, some operating systems have built-in keyrings containing keys capable of validating the Qubes Master Signing Key.
-For example, if you have a Debian system, then your keyring may already contain the necessary keys.
+Another option is to rely on the key's fingerprint.
+Every PGP key has a fingerprint that uniquely identifies it among all PGP keys (viewable with `gpg2 --fingerprint `).
+Therefore, if you know the genuine Qubes Master Signing Key fingerprint, then you always have an easy way to confirm whether any purported copy of it is authentic, simply by comparing the fingerprints.
-For additional security, we also publish the fingerprint of the Qubes Master Signing Key here (but [remember not to blindly trust the live version of this website][website-trust]):
+For example, here is the Qubes Master Signing Key fingerprint:
pub 4096R/36879494 2010-04-01
Key fingerprint = 427F 11FD 0FAA 4B08 0123 F01C DDFA 1A3E 3687 9494
uid Qubes Master Signing Key
-Once you're confident that you have the legitimate Qubes Master Signing Key, set its trust level to "ultimate" so that it can be used to automatically verify all the keys signed by the Qubes Master Signing Key (in particular, Release Signing Keys).
+But how do you know that this is the real fingerprint?
+After all, [this website could be compromised][website-trust], so the fingerprint you see here may not be genuine.
+That's why we strongly suggest obtaining the fingerprint from *multiple, independent sources in several different ways*.
- $ gpg2 --edit-key 0x36879494
+Here are some ideas for how to do that:
+
+ - Check the fingerprint on various websites (e.g., [mailing lists](https://groups.google.com/g/qubes-devel/c/RqR9WPxICwg/m/kaQwknZPDHkJ), [discussion forums](https://qubes-os.discourse.group/t/there-is-no-way-to-validate-qubes-master-signing-key/1441/9?u=adw), [social](https://twitter.com/rootkovska/status/496976187491876864) [media](https://www.reddit.com/r/Qubes/comments/5bme9n/fingerprint_verification/), [personal websites](https://andrewdavidwong.com/fingerprints.txt)).
+ - Check against PDFs, photographs, and videos in which the fingerprint appears
+ (e.g., [slides from a talk](https://hyperelliptic.org/PSC/slides/psc2015_qubesos.pdf), on a [T-shirt](https://twitter.com/legind/status/813847907858337793/photo/2), or in the [recording of a presentation](https://youtu.be/S0TVw7U3MkE?t=2563)).
+ - Download old Qubes ISOs from different sources and check the included Qubes Master Signing Key.
+ - Ask people to post the fingerprint on various mailing lists, forums, and chat rooms.
+ - Repeat the above over Tor.
+ - Repeat the above over various VPNs and proxy servers.
+ - Repeat the above on different networks (work, school, internet cafe, etc.).
+ - Text, email, call, video chat, snail mail, or meet up with people you know to confirm the fingerprint.
+ - Repeat the above from different computers and devices.
+
+Once you've obtained the fingerprint from enough independent sources in enough different ways that you feel confident that you know the genuine fingerprint, keep it in a safe place.
+Every time you need to check whether a key claiming to be the Qubes Master Signing Key is authentic, compare that key's fingerprint to your trusted copy and confirm they match.
+
+Now that you've imported the authentic Qubes Master Signing Key, set its trust level to "ultimate" so that it can be used to automatically verify all the keys signed by the Qubes Master Signing Key (in particular, Release Signing Keys).
+
+ $ gpg2 --edit-key 0x427F11FD0FAA4B080123F01CDDFA1A3E36879494
gpg (GnuPG) 1.4.18; Copyright (C) 2014 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
diff --git a/user/advanced-configuration/disposablevm-customization.md b/user/advanced-configuration/disposablevm-customization.md
index 1e14eddd..35680337 100644
--- a/user/advanced-configuration/disposablevm-customization.md
+++ b/user/advanced-configuration/disposablevm-customization.md
@@ -15,9 +15,9 @@ redirect_from:
## Introduction
-A DisposableVM (previously known as a "DispVM") in can be based on any TemplateBasedVM.
-You can also choose to use different DisposableVM Templates for different DisposableVMs.
-To prepare AppVM to be a DisposableVM Template, you need to set `template_for_dispvms` property, for example:
+A [DisposableVM](/doc/disposablevm) can be based on any [TemplateBasedVM](/doc/glossary/#templatebasedvm).
+You can also choose to use different [DisposableVM Templates](/doc/glossary/#disposablevm-template) for different DisposableVMs.
+To prepare an AppVM to be a DisposableVM Template, you need to set `template_for_dispvms` property, for example:
[user@dom0 ~]$ qvm-prefs fedora-26-dvm template_for_dispvms True
diff --git a/user/common-tasks/copy-from-dom0.md b/user/common-tasks/copy-from-dom0.md
index 67c8fe89..dfe2e467 100644
--- a/user/common-tasks/copy-from-dom0.md
+++ b/user/common-tasks/copy-from-dom0.md
@@ -9,67 +9,71 @@ redirect_from:
- /wiki/CopyToDomZero/
---
-Copying from (and to) dom0
-==========================
+# Copying from (and to) dom0
-Copying **from** dom0
----------------------
+This page covers copying files and clipboard text between [dom0](/doc/glossary/#dom0) and [domUs](/doc/glossary/#domu).
+Since dom0 is special, the processes are different from [copying and pasting text between qubes](/doc/copy-paste/) and [copying and moving files between qubes](/doc/copying-files/).
-To copy a file from dom0 to a VM (domU), simply use `qvm-copy-to-vm`:
+## Copying **from** dom0
-~~~
-qvm-copy-to-vm
-~~~
+### Copying files from dom0
-The file will arrive in your destination VM in the `~/QubesIncoming/dom0/` directory.
+To copy a file from dom0 to a VM, simply use `qvm-copy-to-vm`:
-### Copying logs from dom0 ###
+ qvm-copy-to-vm
+
+The file will arrive in the target VM in the `/home/user/QubesIncoming/dom0/` directory.
+
+### Copying and pasting clipboard text from dom0
+
+Use the **Qubes Clipboard** widget:
+
+ 1. Copy text to the clipboard normally in dom0 (e.g., by pressing Ctrl+C).
+
+ 2. Click the **Qubes Clipboard** icon in the Notification Area.
+
+ 3. Click "Copy dom0 clipboard".
+ This displays a notification that text has been copied to the inter-qube clipboard.
+
+ 4. Press Ctrl+Shift+V in the target qube.
+ This pastes the inter-qube clipboard contents into the target qube's normal clipboard.
+
+ 5. Paste normally within that qube (e.g., by pressing Shift+V).
+
+Alternatively, you can put your text in a file, then [copy it as a file](#copying-files-from-dom0).
+Or, you can write the data you wish to copy into `/var/run/qubes/qubes-clipboard.bin`, then `echo -n dom0 > /var/run/qubes/qubes-clipboard.bin.source`.
+Then use Ctrl+Shift+V to paste the data to the target qube.
+
+### Copying logs from dom0
In order to easily copy/paste the contents of logs from dom0 to the inter-VM clipboard, you can simply:
-1. Right-click on the desired VM in the Qubes VM Manager.
-2. Click "Logs."
-3. Click on the desired log.
-4. Click "Copy to Qubes clipboard."
+ 1. Right-click on the desired qube in the Qube Manager.
-You may now paste the log contents to any VM as you normally would (i.e., Ctrl-Shift-V, then Ctrl-V).
+ 2. Click "Logs."
-### Copy/paste from dom0 ###
+ 3. Click on the desired log.
-For data other than logs, there are several options:
+ 4. Click "Copy to Qubes clipboard."
-1. Use the **Qubes Clipboard** widget:
- - Copy text to the clipboard normally in dom0.
- - Click the **Qubes Clipboard** icon in the Notification Area.
- - Click "Copy dom0 clipboard".
- - Receive a notification that text has been copied to the inter-qube clipboard.
- - Press Ctrl + Shift + V in a qube to paste into the desired qube's clipboard.
- - Paste normally within that qube.
-2. Copy it as a file (see above)
-3. Write the data you wish to copy into `/var/run/qubes/qubes-clipboard.bin`, then `echo -n dom0 > /var/run/qubes/qubes-clipboard.bin.source`.
- Then use Ctrl-Shift-V to paste the data to the desired VM.
+You may now paste the log contents in qube as you normally would (e.g., Ctrl+Shift+V, then Ctrl+V).
-Copying **to** dom0
--------------------
+## Copying **to** dom0
Copying anything into dom0 is not advised, since doing so can compromise the security of your Qubes system.
-For this reason, there is no simple means of copying anything into dom0, unlike [copying from dom0](#copying-from-dom0) and [copying files between VMs](/doc/copying-files/).
+For this reason, there is no simple means of copying anything into dom0, unlike [copying from dom0](#copying-from-dom0).
-There should normally be few reasons for the user to want to copy anything from VMs to dom0, as dom0 only acts as a "thin trusted terminal", and no user applications run there.
-One possible use-case for this is if we want to use a desktop wallpaper in dom0 we have located in one of our AppVMs (e.g. in the 'personal' AppVM where we got the wallpaper from our camera or downloaded it from the Internet).
-While this use-case is understandable, imagine what would happen if the wallpaper (e.g. a JPEG file) was somehow malformed or malicious and attempted to exploit a hypothetical JPEG parser bug in dom0 code (e.g. in the dom0's Xorg/KDE code that parses the wallpaper and displays it).
+There should normally be few reasons for the user to want to copy anything from domUs to dom0, as dom0 only acts as a "thin trusted terminal", and no user applications run there.
+Sometimes, new users feel the urge to copy a desktop wallpaper image into dom0, but that is not necessary.
+A safer approach is simply to display the image in [full-screen mode](/doc/full-screen-mode/) in an AppVM, then take a screenshot from dom0, which results in exactly the image needed for a wallpaper, created securely and natively in dom0.
If you are determined to copy some files to dom0 anyway, you can use the following method.
(If you want to copy text, first save it into a text file.)
Run this command in a dom0 terminal:
-~~~
-qvm-run --pass-io 'cat /path/to/file_in_src_domain' > /path/to/file_name_in_dom0
-~~~
+ qvm-run --pass-io 'cat /path/to/file_in_src_domain' > /path/to/file_name_in_dom0
-Note that you can use the same method to copy files from dom0 to VMs (if, for some reason, you don't want to use `qvm-copy-to-vm`):
+Note that you can use the same method to copy files from dom0 to domUs (if, for some reason, you don't want to use `qvm-copy-to-vm`):
-~~~
-cat /path/to/file_in_dom0 | qvm-run --pass-io 'cat > /path/to/file_name_in_appvm'
-~~~
+ cat /path/to/file_in_dom0 | qvm-run --pass-io 'cat > /path/to/file_name_in_appvm'
diff --git a/user/common-tasks/copy-paste.md b/user/common-tasks/copy-paste.md
index e2d7baeb..fc27067e 100644
--- a/user/common-tasks/copy-paste.md
+++ b/user/common-tasks/copy-paste.md
@@ -1,6 +1,6 @@
---
layout: doc
-title: Copy and Paste
+title: Copying and pasting text between qubes
permalink: /doc/copy-paste/
redirect_from:
- /en/doc/copy-paste/
@@ -8,51 +8,49 @@ redirect_from:
- /wiki/CopyPaste/
---
-Copy and Paste between domains
-==============================
+Copying and pasting text between qubes
+======================================
-Qubes fully supports secure copy and paste operation between domains.
-In order to copy a clipboard from domain A to domain B, follow those steps:
+*This page is about copying and pasting plain text.
+If you wish to copy more complex data, such as rich text or images, see [copying and moving files between qubes](/doc/copying-files/).
+For dom0, see [copying from (and to) dom0](/doc/copy-from-dom0/).*
-1. Click on the application window in domain A where you have selected text for copying.
- Then use the *app-specific* hot-key (or menu option) to copy this into domain's local clipboard (in other words: do the copy operation as usual, in most cases by pressing Ctrl-C).
-2. Then (when the app in domain A is still in focus) press Ctrl-Shift-C magic hot-key.
- This will tell Qubes that we want to select this domain's clipboard for *global copy* between domains.
-3. Now select the destination app, running in domain B, and press Ctrl-Shift-V, another magic hot-key that will tell Qubes to make the clipboard marked in the previous step available to apps running in domain B.
- This step is necessary because it ensures that only domain B will get access to the clipboard copied from domain A, and not any other domain that might be running in the system.
-4. Now, in the destination app use the app-specific key combination (usually Ctrl-V) for pasting the clipboard.
+Qubes OS features a secure inter-qube clipboard that allows you to copy and paste text between qubes.
-Note that the global clipboard will be cleared after step \#3, to prevent accidental leakage to another domain, if the user accidentally pressed Ctrl-Shift-V later.
+In order to copy text from qube A to qube B:
-This 4-step process might look complex, but after some little practice it really is very easy and fast.
-At the same time it provides the user with full control over who has access to the clipboard.
+ 1. Select text from the source app in qube A, then copy it normally (e.g., by pressing Ctrl+C).
-Note that only simple plain text copy/paste is supported between AppVMs.
-This is discussed in a bit more detail in [this message](https://groups.google.com/group/qubes-devel/msg/57fe6695eb8ec8cd).
+ 2. With the source app in qube A still in focus, press Ctrl+Shift+C.
+ This copies the text from qube A's clipboard to the inter-qube clipboard.
-On Copy/Paste Security
-----------------------
+ 3. Select the target app in qube B and press Ctrl+Shift+V.
+ This copies the text from the inter-qube clipboard to qube B's clipboard and clears the inter-qube clipboard, ensuring that only qube B will have access to the copied text.
-The scheme is *secure* because it doesn't allow other VMs to steal the content of the clipboard.
-However, one should keep in mind that performing a copy and paste operation from *less trusted* to *more trusted* domain can always be potentially insecure, because the data that we insert might potentially try to exploit some hypothetical bug in the destination VM (e.g.
-the seemingly innocent link that we copy from untrusted domain, might turn out to be, in fact, a large buffer of junk that, when pasted into the destination VM's word processor could exploit a hypothetical bug in the undo buffer).
-This is a general problem and applies to any data transfer between *less trusted to more trusted* domains.
-It even applies to copying files between physically separate machines (air-gapped) systems.
-So, you should always copy clipboard and data only from *more trusted* to *less trusted* domains.
+ 4. Paste the text in the target app in qube B normally (e.g., by pressing Ctrl+V).
-See also [this article](https://blog.invisiblethings.org/2011/03/13/partitioning-my-digital-life-into.html) for more information on this topic, and some ideas of how we might solve this problem in some future version of Qubes.
+This process might look complicated at first glance, but in practice it is actually very easy and fast once you get used to it.
+At the same time, it provides you with full control over exactly which qube receives the content of the inter-qube clipboard every time.
-And [this message](https://groups.google.com/group/qubes-devel/msg/48b4b532cee06e01) from qubes-devel.
+Security
+--------
-Copy/Paste between dom0 and other domains
------------------------------------------
+The inter-qube clipboard system is secure because it doesn't allow any qube other than your selected target to steal any contents from the inter-qube clipboard.
+Without such a system in place, any password you were to copy from the password manager in your vault qube to another qube, for example, would immediately be leaked to every other running qube in the system, including qubes that are untrusted by default, such as `sys-net`.
+By giving you precise control over exactly which qube receives the inter-qube clipboard content, then immediately wiping the inter-qube clipboard afterward, Qubes OS protects the confidentiality of the text being copied.
-See ["Copying from (and to) dom0"](/doc/copy-from-dom0/).
+However, one should keep in mind that performing a copy and paste operation from *less trusted* to *more trusted* qube is always potentially insecure, since the data that we copy could exploit some hypothetical bug in the target qube.
+For example, the seemingly-innocent link that we copy from an untrusted qube could turn out to be a large buffer of junk that, when pasted into the target qube's word processor, could exploit a hypothetical bug in the undo buffer.
+This is a general problem and applies to any data transfer from *less trusted* to *more trusted* qubes.
+It even applies to copying files between physically separate (air-gapped) machines.
+Therefore, you should always copy clipboard data only from *more trusted* to *less trusted* qubes.
+
+See also [this article](https://blog.invisiblethings.org/2011/03/13/partitioning-my-digital-life-into.html) for more information on this topic, and some ideas of how we might solve this problem in some future version of Qubes, as well as [this message](https://groups.google.com/group/qubes-devel/msg/48b4b532cee06e01) from qubes-devel.
Clipboard automatic policy enforcement
--------------------------------------
-The Qubes clipboard [RPC policy] is configurable in:
+The Qubes clipboard [RPC policy](/doc/rpc-policy/) is configurable in:
~~~
/etc/qubes-rpc/policy/qubes.ClipboardPaste
@@ -66,7 +64,7 @@ For example, if you are certain that you never wish to paste *into* your "vault"
@anyvm @anyvm ask
~~~
-Shortcut Configuration
+Shortcut configuration
----------------------
The copy/paste shortcuts are configurable in:
@@ -78,7 +76,3 @@ The copy/paste shortcuts are configurable in:
If you edit a line in this file, you must uncomment it (by removing the initial `#` character), or else it will have no effect.
VMs need to be restarted in order for changes in `/etc/qubes/guid.conf` to take effect.
-
-
-[RPC policy]: /doc/rpc-policy/
-
diff --git a/user/common-tasks/copying-files.md b/user/common-tasks/copying-files.md
index 21688795..9db80673 100644
--- a/user/common-tasks/copying-files.md
+++ b/user/common-tasks/copying-files.md
@@ -1,6 +1,6 @@
---
layout: doc
-title: Copying Files between qubes
+title: Copying and moving files between qubes
permalink: /doc/copying-files/
redirect_from:
- /en/doc/copying-files/
@@ -8,31 +8,34 @@ redirect_from:
- /wiki/CopyingFiles/
---
-Copying files and folders between qubes
-=============================
+Copying and moving files between qubes
+======================================
-Qubes also supports secure copying of files and folders between qubes.
-These instructions refer to file(s) but equally apply to copying folders.
+*This page is about copying and moving files.
+If you wish to simply copy and paste text, that can be done more easily using the inter-qube clipboard.
+See [copying and pasting text between qubes](/doc/copy-paste/).
+For dom0, see [copying from (and to) dom0](/doc/copy-from-dom0/).*
-In order to copy file(s) from qube A to qube B, follow these steps:
+Qubes OS supports the secure copying and moving of files and directories (folders) between qubes.
-GUI
----
+For simplicity, these instructions will refer to copying/moving a single file, but they apply equally well to groups of files and directories, which are copied recursively.
-1. Open file manager in the source qube (qube A), choose file(s) that you wish to copy, and right click on the selection, and choose `Copy to another AppVM`
+ 1. Open a file manager in the qube containing the file you wish to copy (the source qube), right-click on the file you wish to copy or move, and select `Copy to Other AppVM...` or `Move to Other AppVM...`.
-2. A dialog box will appear asking for the name of the destination qube (qube B).
+ 2. A dialog box will appear in dom0 asking for the name of the target qube (qube B).
+ Enter or select the desired destination qube name.
-3. A confirmation dialog box will appear(this will be displayed by Dom0, so none of the qubes can fake your consent).
- After you click ok, qube B will be started if it is not already running, the file copy operation will start, and the files will be copied into the following folder in qube B:
+ 3. If the target qube is not already running, it will be started automatically, and the file will be copied there.
+ It will show up in this directory (which will automatically be created if it does not already exist):
- `/home/user/QubesIncoming/