mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-10-01 01:25:40 -04:00
Change command in DispVM example
gnome-terminal isn't the best choice as terminates immediately (after sending a call to gnome-terminal-server), so does DispVM.
This commit is contained in:
parent
c5069f2000
commit
42d1458b7f
@ -44,7 +44,7 @@ Starting an arbitrary application in a disposable VM via command line (from Dom0
|
||||
**Note:** Normally there should be no need for doing this -- this is just for Qubes hackers ;)
|
||||
|
||||
{% highlight trac-wiki %}
|
||||
[joanna@dom0 ~]$ echo gnome-terminal | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 DEFAULT red
|
||||
[joanna@dom0 ~]$ echo xterm | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 DEFAULT red
|
||||
{% endhighlight %}
|
||||
|
||||
In fact the Disposable VM appmenu used for starting Firefox contains a very similar command to the above. Please note, however, that it generally makes little sense to start any other application other than a Web Browser this way...
|
||||
@ -55,7 +55,7 @@ Starting an arbitrary program in a Disposable VM from an AppVM
|
||||
Sometimes it might be useful to start an arbitrary program, such as e.g. terminal in an Disposable VM from an AppVM. This could be simply done this way:
|
||||
|
||||
{% highlight trac-wiki %}
|
||||
[user@vault ~]$ qvm-run '$dispvm' gnome-terminal
|
||||
[user@vault ~]$ qvm-run '$dispvm' xterm
|
||||
{% endhighlight %}
|
||||
|
||||
Note the above command is issued in an AppVM, not in Dom0. The created Disposable VM can be normally accessed via other tools, such as e.g. `qvm-copy-to-vm`, using its 'dispX' name, as shown by the Qubes Manager or `qvm-ls` tools. The created Disposable VM will inherit firewall settings of the ancestor VM, which is useful in some cases (e.g. when the original AppVM had networking cut off).
|
||||
|
Loading…
Reference in New Issue
Block a user