mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-27 08:19:24 -05:00
line breaks, version clarification
This commit is contained in:
parent
0fb310cc88
commit
adc08bc00d
@ -21,66 +21,49 @@ To copy a file from dom0 to a VM (domU), simply use `qvm-copy-to-vm`:
|
|||||||
qvm-copy-to-vm <dest-vm> <file>
|
qvm-copy-to-vm <dest-vm> <file>
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
The file will arrive in your destination VM in the `~/QubesIncoming/dom0/`
|
The file will arrive in your destination VM in the `~/QubesIncoming/dom0/` directory.
|
||||||
directory.
|
|
||||||
|
|
||||||
### Copying logs from Dom0 ###
|
### Copying logs from Dom0 ###
|
||||||
|
|
||||||
In order to easily copy/paste the contents of logs from dom0 to the inter-VM
|
In order to easily copy/paste the contents of logs from dom0 to the inter-VM clipboard, you can simply:
|
||||||
clipboard, you can simply:
|
|
||||||
|
|
||||||
1. Right-click on the desired VM in the Qubes VM Manager.
|
1. Right-click on the desired VM in the Qubes VM Manager.
|
||||||
2. Click "Logs."
|
2. Click "Logs."
|
||||||
3. Click on the desired log.
|
3. Click on the desired log.
|
||||||
4. Click "Copy to Qubes clipboard."
|
4. Click "Copy to Qubes clipboard."
|
||||||
|
|
||||||
You may now paste the log contents to any VM as you normally would (i.e.,
|
You may now paste the log contents to any VM as you normally would (i.e., Ctrl-Shift-V, then Ctrl-V).
|
||||||
Ctrl-Shift-V, then Ctrl-V).
|
|
||||||
|
|
||||||
### Copy/paste from Dom0 ###
|
### Copy/paste from Dom0 ###
|
||||||
|
|
||||||
For data other than logs, there are several options:
|
For data other than logs, there are several options:
|
||||||
|
|
||||||
1. Copy it as a file (see above)
|
1. Copy it as a file (see above)
|
||||||
2. Since updated versions of 3.2 you can copy text to the dom0 clipboard
|
2. In Qubes 3.2 you can copy text to the dom0 clipboard (Ctrl-C as normal), then click "Copy Dom0 clipboard" in the Qubes menu:
|
||||||
(Ctrl-C as normal), then click "Copy Dom0 clipboard" in the Qubes menu:
|
|
||||||
![copy-dom0-clipboard](/attachment/wiki/QubesScreenshots/r3.2-dom0-copyout.png)
|
![copy-dom0-clipboard](/attachment/wiki/QubesScreenshots/r3.2-dom0-copyout.png)
|
||||||
which is equivelant to Ctrl-Shift-C from a normal AppVM.
|
which is equivelant to Ctrl-Shift-C from a normal AppVM.
|
||||||
Then you can use Ctrl-Shift-V and Ctrl-V to paste the copied text into an
|
Then you can use Ctrl-Shift-V and Ctrl-V to paste the copied text into an AppVM as normal.
|
||||||
AppVM as normal.
|
3. In other versions, 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`.
|
||||||
3. In older versions, write the data you wish to copy into
|
|
||||||
`/var/run/qubes/qubes-clipboard.bin`, then write "dom0" to
|
|
||||||
`/var/run/qubes/qubes-clipboard.bin.source`.
|
|
||||||
Then use Ctrl-Shift-V to paste the data to the desired VM.
|
Then use Ctrl-Shift-V to paste the data to the desired VM.
|
||||||
|
|
||||||
|
|
||||||
Copying **to** Dom0
|
Copying **to** Dom0
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
There should normally be few reasons for the user to want to copy files from VMs
|
There should normally be few reasons for the user to want to copy files from VMs to Dom0, as Dom0 only acts as a "thin trusted terminal", and no user applications run there.
|
||||||
to Dom0, as Dom0 only acts as a "thin trusted terminal", and no user
|
Copying untrusted files to Dom0 is not advised and may compromise the security of your Qubes system.
|
||||||
applications run there. Copying untrusted files to Dom0 is not advised and may
|
Because of this, we do not provide a graphical user interface for it, unlike [copying files between VMs](/doc/copying-files/).
|
||||||
compromise the security of your Qubes system. Because of this, we do not provide
|
|
||||||
a graphical user interface for it, unlike [copying files between
|
|
||||||
VMs](/doc/copying-files/).
|
|
||||||
|
|
||||||
One common use-case for this is if we want to use a desktop wallpaper in Dom0 we
|
One common 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).
|
||||||
have located in one of our AppVMs (e.g. in the 'personal' AppVM where we got the
|
While it's a well-justified reason, 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).
|
||||||
wallpaper from our camera or downloaded it from the Internet). While it's a
|
|
||||||
well-justified reason, 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).
|
|
||||||
|
|
||||||
If you are determined to copy some files to Dom0 anyway, you can use the
|
If you are determined to copy some files to Dom0 anyway, you can use the following method (run this command from Dom0's console):
|
||||||
following method (run this command from Dom0's console):
|
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
qvm-run --pass-io <src-vm> 'cat /path/to/file_in_src_domain' > /path/to/file_name_in_dom0
|
qvm-run --pass-io <src-vm> 'cat /path/to/file_in_src_domain' > /path/to/file_name_in_dom0
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
You can use the same method to copy files from Dom0 to VMs (if, for some reason,
|
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`):
|
||||||
you don't want to use `qvm-copy-to-vm`):
|
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
cat /path/to/file_in_dom0 | qvm-run --pass-io <dest-vm> 'cat > /path/to/file_name_in_appvm'
|
cat /path/to/file_in_dom0 | qvm-run --pass-io <dest-vm> 'cat > /path/to/file_name_in_appvm'
|
||||||
|
Loading…
Reference in New Issue
Block a user