Re: [EXT] Re: [qubes-users] Opening applications using qvm-run

2021-03-13 Thread Ulrich Windl

On 2/28/21 11:46 PM, tetrahedra via qubes-users wrote:
On Sun, Feb 28, 2021 at 08:03:47PM +0100, airelemental via qubes-users 
wrote:

Try:

$ qvm-run --service anon qubes.StartApp+janondisttorbrowser
$ qvm-run --service untrusted qubes.StartApp+firefox
$ qvm-run --service personal qubes.StartApp+thunderbird


Thanks, that did the trick!

Two questions:

1. Is there any way to pass arguments?


What about reading the manual page?
   --service
  Start  RPC  service instead of shell command. Specify 
name of the service in place of COMMAND argument. You can also specify 
service argument, appending it

  to the service name after + character.



2. for some applications the name I have to pass to qubes.StartApp is 
not the same as the command used on the command line (e.g 
`janondisttorbrowser` instead of `torbrowser`). How do I find out the 
correct name for an arbitrary application? is it always the same as the 
name of the .desktop file in /usr/share/applications?




--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/a687f559-0db9-633f-07fc-3b2d4a09b570%40rz.uni-regensburg.de.


Re: [qubes-users] Opening applications using qvm-run

2021-03-01 Thread tetrahedra via qubes-users

On Sun, Feb 28, 2021 at 08:03:47PM +0100, airelemental via qubes-users wrote:

Try:

$ qvm-run --service anon qubes.StartApp+janondisttorbrowser
$ qvm-run --service untrusted qubes.StartApp+firefox
$ qvm-run --service personal qubes.StartApp+thunderbird


Thanks, that did the trick!

Two questions:

1. Is there any way to pass arguments?

2. for some applications the name I have to pass to qubes.StartApp is 
not the same as the command used on the command line (e.g 
`janondisttorbrowser` instead of `torbrowser`). How do I find out the 
correct name for an arbitrary application? is it always the same as the 
name of the .desktop file in /usr/share/applications?


--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/YDwdXuakojz8gdV8%40danwin1210.me.


Re: [qubes-users] Opening applications using qvm-run

2021-03-01 Thread tetrahedra via qubes-users

On Sun, Feb 28, 2021 at 11:49:04PM +, unman wrote:
It's not Torbrowser specific for me, that was just an example using a 
Whonix

Workstation VM. (it does work as stated -- I did test it)

In actuality I want to launch specific applications (that launch fine using
applications menu) from a dom0 script, but the only way I can find to launch
them without blocking the script execution is using gnome-terminal. And that
opens an extra (unneeded) terminal window.



Do you have the same problem with non Whonix qubes?
I dont use Whonix, and dont have this problem with any of my other
template based qubes.


Yes. But the other solution (qubes.StartApp) did the trick.

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/YDz2ddi0Rrp6RuLw%40danwin1210.me.


Re: [qubes-users] Opening applications using qvm-run

2021-02-28 Thread unman
On Sun, Feb 28, 2021 at 12:47:39PM +, tetrahe...@danwin1210.me wrote:
> On Sat, Feb 27, 2021 at 11:57:32PM +, unman wrote:
> > Is this Torbrowser specific? Because it doesn't block with other
> > programs (or at least doesn't seem to do so for me).
> > On what is the "anon" qube based? How is it configured to run torbrowser
> > with no path?
> 
> It's not Torbrowser specific for me, that was just an example using a Whonix
> Workstation VM. (it does work as stated -- I did test it)
> 
> In actuality I want to launch specific applications (that launch fine using
> applications menu) from a dom0 script, but the only way I can find to launch
> them without blocking the script execution is using gnome-terminal. And that
> opens an extra (unneeded) terminal window.
> 

Do you have the same problem with non Whonix qubes?
I dont use Whonix, and dont have this problem with any of my other
template based qubes.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20210228234904.GA29492%40thirdeyesecurity.org.


Re: [qubes-users] Opening applications using qvm-run

2021-02-28 Thread airelemental via qubes-users
Feb 27, 2021, 14:16 by qubes-users@googlegroups.com:

> I'm trying to figure out how to open applications in VMs from dom0 using 
> qvm-run, and how to do so without blocking the terminal in dom0.
>
> For example:
> ```
> $ qvm-run anon "torbrowser qubes-os.org"
> Running 'torbrowser qubes-os.org' on anon
>
> ```
>
> The above command sucessfully launches Tor Browser in the `anon` VM, but I 
> can't run another command in the same dom0 terminal window until Tor Browser 
> (in the VM) finishes (exits).
>
> Alternately I can do something like
> ```
> $ qvm-run anon "gnome-terminal -- torbrowser qubes-os.org"
> ```
> but that leaves a terminal window running in the `anon` VM.
>
>
Try:

$ qvm-run --service anon qubes.StartApp+janondisttorbrowser
$ qvm-run --service untrusted qubes.StartApp+firefox
$ qvm-run --service personal qubes.StartApp+thunderbird

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/MUe0b60--3-2%40tutanota.com.


Re: [qubes-users] Opening applications using qvm-run

2021-02-28 Thread tetrahedra via qubes-users

On Sat, Feb 27, 2021 at 11:57:32PM +, unman wrote:

Is this Torbrowser specific? Because it doesn't block with other
programs (or at least doesn't seem to do so for me).
On what is the "anon" qube based? How is it configured to run torbrowser
with no path?


It's not Torbrowser specific for me, that was just an example using a 
Whonix Workstation VM. (it does work as stated -- I did test it)


In actuality I want to launch specific applications (that launch fine 
using applications menu) from a dom0 script, but the only way I can find 
to launch them without blocking the script execution is using 
gnome-terminal. And that opens an extra (unneeded) terminal window.



--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/YDuQ6zSFT31ESepY%40danwin1210.me.


Re: [qubes-users] Opening applications using qvm-run

2021-02-27 Thread unman
On Fri, Feb 26, 2021 at 12:01:16PM +, tetrahedra via qubes-users wrote:
> I'm trying to figure out how to open applications in VMs from dom0 using
> qvm-run, and how to do so without blocking the terminal in dom0.
> 
> For example:
> ```
> $ qvm-run anon "torbrowser qubes-os.org"
> Running 'torbrowser qubes-os.org' on anon
> 
> ```
> 
> The above command sucessfully launches Tor Browser in the `anon` VM, but I
> can't run another command in the same dom0 terminal window until Tor Browser
> (in the VM) finishes (exits).
> 
> Alternately I can do something like
> ```
> $ qvm-run anon "gnome-terminal -- torbrowser qubes-os.org"
> ```
> but that leaves a terminal window running in the `anon` VM.
> 
> I've also tried all the usual variations on `nohup`, `disown`, `&`, and the
> like, but none of them seem to do the trick.
> 
> Any ideas?
> 

Is this Torbrowser specific? Because it doesn't block with other
programs (or at least doesn't seem to do so for me).
On what is the "anon" qube based? How is it configured to run torbrowser
with no path?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20210227235732.GB24610%40thirdeyesecurity.org.