Copy/Paste images

163 views
Skip to first unread message

Patrick Bouldin

unread,
Feb 8, 2017, 12:30:07 PM2/8/17
to qubes-users
Hi everyone,

One important thing that really keeps me back from totally converting to qubes is the inability to create documents with screenshots. On a windows pc I can of course do a screen print, then quickly crop the image and paste it right in a document.

This seems extremely difficult in qubes. I do see someone created some image copy/paste between domains here: http://jrruethe.github.io/blog/2015/09/17/screenshots-in-qubes/

Am I missing something basic or will I need to do something like that?

Thanks,
Patrick

Franz

unread,
Feb 8, 2017, 12:45:53 PM2/8/17
to Patrick Bouldin, qubes-users
I have it muy simple:

echo "digit name of the VM to which send snapshots"
read nameVM
qvm-copy-to-vm $nameVM ~/Pictures/
rm ~/Pictures/*.*

but you can use only the last but one line if you want it even simplier. The other lines are only to speed it up.
Best
Fran




--
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+unsubscribe@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/dd2a1ce9-f912-41bb-a1f1-7f30cbef3003%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrick Bouldin

unread,
Feb 8, 2017, 12:49:56 PM2/8/17
to qubes-users, pat...@runthisproject.com
Thank you but I'm pretty new with Linux. Do I add this as a script in dom0? How would I invoke it after a screenshot? Can you please provide full context on how to use this?

On Wednesday, February 8, 2017 at 12:45:53 PM UTC-5, Francesco wrote:
> I have it muy simple:
>
> echo "digit name of the VM to which send snapshots"
> read nameVM
> qvm-copy-to-vm $nameVM ~/Pictures/
> rm ~/Pictures/*.*
>
>
>
>
>
>
> but you can use only the last but one line if you want it even simplier. The other lines are only to speed it up.
>
> Best
>
> Fran
>
>
>
>
>
>
>
> On Wed, Feb 8, 2017 at 2:30 PM, Patrick Bouldin <pat...@runthisproject.com> wrote:
> Hi everyone,
>
>
>
> One important thing that really keeps me back from totally converting to qubes is the inability to create documents with screenshots. On a windows pc I can of course do a screen print, then quickly crop the image and paste it right in a document.
>
>
>
> This seems extremely difficult in qubes. I do see someone created some image copy/paste between domains here: http://jrruethe.github.io/blog/2015/09/17/screenshots-in-qubes/
>
>
>
> Am I missing something basic or will I need to do something like that?
>
>
>
> Thanks,
>
> Patrick
>
>
>
> --
>
> 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...@googlegroups.com.

Franz

unread,
Feb 8, 2017, 1:41:28 PM2/8/17
to Patrick Bouldin, qubes-users
On Wed, Feb 8, 2017 at 2:49 PM, Patrick Bouldin <pat...@runthisproject.com> wrote:
Thank you but I'm pretty new with Linux. Do I add this as a script in dom0? How would I invoke it after a screenshot? Can you please provide full context on how to use this?


ok. you have to create a file called for example snapshot.sh where you write the above. For doing that I use:
vim snapshot.sh
then digit "i"  that allows me to insert the above text
at the end ":x" to save

after that
sh snapshot.sh to execute
good luck
Fran 
To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscribe@googlegroups.com.

To post to this group, send email to qubes...@googlegroups.com.

Franz

unread,
Feb 8, 2017, 1:47:11 PM2/8/17
to Patrick Bouldin, qubes-users
On Wed, Feb 8, 2017 at 3:41 PM, Franz <169...@gmail.com> wrote:


On Wed, Feb 8, 2017 at 2:49 PM, Patrick Bouldin <pat...@runthisproject.com> wrote:
Thank you but I'm pretty new with Linux. Do I add this as a script in dom0? How would I invoke it after a screenshot? Can you please provide full context on how to use this?


ok. you have to create a file called for example snapshot.sh where you write the above. For doing that I use:
vim snapshot.sh
then digit "i"  that allows me to insert the above text
at the end ":x" to save

after that
sh snapshot.sh to execute
good luck
Fran 

If it works you'll find the pictures in Qubesincoming/Domo fold of the VM you selected

Also please do not top post

Patrick Bouldin

unread,
Feb 8, 2017, 2:49:41 PM2/8/17
to qubes-users, pat...@runthisproject.com
Sorry for the top post, I knew better! :)

Ok, I think I am almost there. I am still confused on how the shellscript is invoked. Do I create a shortcut that activates this? Once I have the shell script in dom0, how do I invoke it from a screen print?

Thanks,
Patrick

Franz

unread,
Feb 8, 2017, 3:59:19 PM2/8/17
to Patrick Bouldin, qubes-users
if it works using
sh snapshot.sh 
in Dom0 terminal

then creating a shortcut is a bit more complicated, the file should be made executable and look at this:
https://ask.fedoraproject.org/en/question/30272/how-to-create-shortcut-in-launcher/
but I have not tried to do it.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to qubes...@googlegroups.com.

01v3g4n10

unread,
Feb 8, 2017, 3:59:26 PM2/8/17
to qubes-users, pat...@runthisproject.com
Once you have created your snapshot.sh file make sure that it is executable by typing "chmod +x snapshot.sh" in the same directory as your snapshot.sh is located, remove the quotations. Once you have taken a screenshot it should be located in ~/Pictures. To execute the shell script you can use either of the following or create a custom launcher:
./snapshot.sh
sh snapshot.sh
bash snapshot.sh

Nick Darren

unread,
Feb 8, 2017, 4:06:38 PM2/8/17
to Patrick Bouldin, qubes...@googlegroups.com
Instead of using this script you can just use `scrot` command from dom0. You need to download it first from qubes-dom0-update --action=install scrot. It's easy to use, refer to `scrot --help` for clue from your dom0 after install. Then you can transfer the image to appvm by using qvm-copy-to-vm or qvm-move-to-vm command.

Another good alternative I found was https://github.com/evadogstar/qvm-screenshot-tool. Easy to use with GUI and transfer screenshot to imgur service too!
signature.asc

Andrew David Wong

unread,
Feb 8, 2017, 4:30:02 PM2/8/17
to Nick Darren, Patrick Bouldin, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2017-02-08 13:06, Nick Darren wrote:
> Another good alternative I found was
> https://github.com/evadogstar/qvm-screenshot-tool. Easy to use with
> GUI and transfer screenshot to imgur service too!
>

Eva's tool should be included by default soon:

https://github.com/QubesOS/qubes-issues/issues/953

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYm43EAAoJENtN07w5UDAwPuQP/25xgVK7bL5XMJjRHKLeWMJu
5HXOai2TaFKLdIscyVHIZbjSqT/9B+06+saMwDKIsjkEzKoDAM+jooXtwdAyDfkH
/61t+EF8dYHrzSrOe+5hnKhXgMhO5c4tq/GnTP5xb76mnlMrUhLMyqJQePrEB54A
aBX3K5tETIXfxsVWmGzj9JX6okCfn2JKvLgL337WMeAVvW8+fI5nWzLpxx2J2Ym/
+hHTeEvm9w3a1yyh6g1LbOy4YwIv5RG/ybYvGDe4qbaYp5nWPp1EU82M4UOZRx2Q
7wodhmej8n4V9t2P4J6VWDVH3oo5QOSrxNBgMefkLBrAoWZcRlZ3T3NWIs2ZEHci
Z+MfEaR6oEbYXxQfKuLcC4//raEIJNJLlN10oFA0Tde9EDT/U27PpkKlRiOKCTmR
GckTtHZ3qz5hUvualX6Vd/o6xKUZEbGh/1JT4lpfkVncy5jMCIpP4nwHkE0QMBTR
fP49im6SbnGvNZAfLUcKPCsw8x1bNB35Fi+RRLXopdmDsDdYnZalO8kYtVummLfj
gCWYKgcRD8jePKwYhHBSNGsf13nGFxtQrx6Mki4xXjNwi/914JIZmdEiaNfguzRs
9jowC172ic3l7yyoGdmaPCgrrQpdw6kBvgvX3k9SdYiwQguxo9hTEGpM4bGZGDuC
YNSar7dJBQmg/khjTFZQ
=G+5B
-----END PGP SIGNATURE-----

Patrick Bouldin

unread,
May 5, 2017, 6:26:03 PM5/5/17
to qubes-users, pat...@runthisproject.com
Hi, I'm still having trouble with screenshots. Spent a lot of time trying to install Eva's tool. I started here as recommended: https://github.com/evadogstar/qvm-screenshot-tool

I'm just not understanding the directions. When I downloaded qvm-screenshot.sh to my appvm I just moved it to Dom0 and executed via ./qvm-screenshot.sh

Now in the dom0 user folder I see the hidden files:

.screenshot.sh.swp

also have these, not sure if it's some other software I've installed:
.snapshot.sh.swo
.snapshot.sh.swp
.snapshot.sh.swn

I've also installed scrot and can use it manually.

Am I close? Can someone take me over the goal-line? Including a bit more help on setting this up in system tools/keyboard?

Thanks,
Patrick

u+q...@bestemt.no

unread,
May 6, 2017, 4:38:52 PM5/6/17
to Patrick Bouldin, qubes-users
Patrick Bouldin <pat...@runthisproject.com> [2017-05-06 00:26 +0200]:
> Hi, I'm still having trouble with screenshots. Spent a lot of time trying to install Eva's tool. I started here as recommended: https://github.com/evadogstar/qvm-screenshot-tool
> I'm just not understanding the directions. When I downloaded qvm-screenshot.sh to my appvm I just moved it to Dom0 and executed via ./qvm-screenshot.sh

What happens then?

> Now in the dom0 user folder I see the hidden files:
>
> .screenshot.sh.swp
>
> also have these, not sure if it's some other software I've installed:
> .snapshot.sh.swo
> .snapshot.sh.swp
> .snapshot.sh.swn

vim (the texteditor someone tricked you into using earlier) leaves these
if you don't exit it correctly. You can safely delete these files. Until
you learn to use vim properly, maybe try nano instead. (vim is great,
but has a steep learning curve.)

--
ubestemt

Patrick Bouldin

unread,
May 6, 2017, 6:28:12 PM5/6/17
to qubes-users, pat...@runthisproject.com, u+q...@bestemt.no

Hi, yes I may have not used vi right, but think I have it now (google is my friend):)

As mentioned earlier, I can't interpret the next steps in Eva's post and had some specific questions.

Thanks,
Patrick

Eva Star

unread,
May 9, 2017, 7:19:22 AM5/9/17
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


> Hi, I'm still having trouble with screenshots. Spent a lot of time
> trying to install Eva's tool. I started here as recommended:
> https://github.com/evadogstar/qvm-screenshot-tool
>
> I'm just not understanding the directions. When I downloaded
> qvm-screenshot.sh to my appvm I just moved it to Dom0 and executed
> via ./qvm-screenshot.sh
>
> Now in the dom0 user folder I see the hidden files:
>
> .screenshot.sh.swp
>
> also have these, not sure if it's some other software I've
> installed: .snapshot.sh.swo .snapshot.sh.swp .snapshot.sh.swn
>
> I've also installed scrot and can use it manually.

Hello,
What exactly do you see when you execute ./qvm-screensgot.sh at dom0 ?
Is dialog about "Select items" with "Region or Window, Fullscreen" show?

- --
Regards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZEaWuAAoJEGSin3PC/C0AxXgQAKwdZiES5KPsrnEizWRpCp1G
aRYgHgUhmTooYskd8gqkHt+tAmiwR59dZj8WPllSLwUFvGUzucLsyfU6Y8stdb5G
faIuOPHF0C2r70Pej4tibHdFm0f/oKwIofgTEc5b78rzxUnBC9UU3aZlffpulget
2UqmcbDRV/UZMaGQderT2gy8HSMiH84FGqwzuoBZ/FLw8wP+PleMbo61BHkKuM2Q
x4xdp6XHtdIX+YowZmQxrbLaAkAqfbn7/Vs4bZiSI+dQFBJi86oXBVdIckwFcqOe
ehcvTki7RRJnN+/FspbkL/AP7hrEaKqDdEaUE7WgCRpRAcJ1uNOEbhD+fCqB84Lo
unHucgxYMnG8ke7V0Mn28R5tbNfdSfrGU23vwfaHxkQYkVFK47aCU032umMp/PKV
MLIuOLo9WYseJLRvHlsdl5q7tp6+ay24cTkLbgErQFEtZLIQ0IZLDNre23GkgkGZ
LIrhWaxQuQgFYF+eG2Gf3+FTnQeGaJiRH3YZ2acHKyb/SusgEHc/E8YLu/DbBefI
75Dd3Glh/6JUuZq1JU5KXekbEfMw4fsI2reKWQpZkNqWyNUSiQ+qxgbPrxRgBAi3
yZk7SQOCiD9hEkqVxOCrFJT5BTWfBqkHpW65GhoRBf9GPiZE2MEngvj2ac+Gc5/K
SSe3H6x4Glykvb4VpiGh
=zr8S
-----END PGP SIGNATURE-----

Eva Star

unread,
May 9, 2017, 7:26:18 AM5/9/17
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


> Hi, yes I may have not used vi right, but think I have it now
> (google is my friend):)
>
> As mentioned earlier, I can't interpret the next steps in Eva's
> post and had some specific questions.

Download it.
Move to dom0
chmod +x qvm-screenshot.sh

Then you can use it :)

- --
Regards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZEadVAAoJEGSin3PC/C0AvowQAIuWhxGtwEXi4UzbxcCRDtb8
tBm5YCCsz8bbldDl14BVlfNyoUo9pVyEUInJFVrfuJMGweKGhxLq5N33V+N8WYpI
Ou2Eu2B7Ny5w3Z0NfFZ/tqGp2auofgl2AC3KGsvCDwg+OLmQnbwmLpsF6LHAuS7p
QmaSqeTD7bOHcA2A1TiQftm1MrgBqicS7LnT4T3ombx3LGd28ogCYmyG4HyM4UU2
QCpQFlDDh8XidSB+kNRULAUykT1y6ZWiieLV8lBxaf1TqcCdSYZiNMZ0DbMO30Uq
XGhF+jcXrRHryqjsscyvxEwdbPXnC0/CoTph/w3X7ZvFlS1Fy9gT+UdcXnH9HCqY
DYsI1Ib+svMo+Ew4gWQ5N86vzZzOrPDRD0A/3yUtU169MpH0N6BtYytf0ESEBuDC
pxsW/NnAOih1g+B0ZoXbNXKXBZ3rbGtlxsYL+lKeQA3TQff2Bt2Z4FSScPl1KKDc
KVUauVN/d65oVQelqejpjZrfBi1MT+n4nX4vBwNH2yM5SCqCh1OvWghdhp5i1ljN
IF4UV0ewuk8/T0g/HBbeUvmyOJA3SMUWVbRNJdAO7ZyOHwnYnA4+PoAUZR3vlXTV
Wq6oXBQBANeM9RS5FdJm2sokX29ZN7f7q5+XJeJ8xsgvMjdPqV0GGl3VqGlw9Zdf
odLKuUfkX0+WTCHx00cS
=QChT
-----END PGP SIGNATURE-----

PR

unread,
May 9, 2017, 4:04:07 PM5/9/17
to Eva Star, qubes...@googlegroups.com

Hello,


On 05/09/2017 01:26 PM, Eva Star wrote:
Download it.
Move to dom0
chmod +x qvm-screenshot.sh

Then you can use it :)

I tried to install the screenshot-tool as mentioned in the howto:https://github.com/evadogstar/qvm-screenshot-tool

To summarize:, the requirements in dom0:

  • scrot at dom0 (recommended)
  • zenity at dom0 (needed)
I have downloaded scrot and zenity in an AppVM and moved it to dom0.
zenity is already installed in dom0, but when I try to install scrot I get a warning that linImlib2.so is missing.
I downloaded imlib2 (imlib2-1.4.9-1.fc23.x86_64.rpm) and moves it to dom0 but when trying to install it via:

dom0: sudo dnf install ./imlib2-1.4.9-1.fc23.x86_64.rpm

I get the message that libgif.so is missing.

I have therof tried to install scrot in an App-VM to find out which other packages get installed:

[user@untrusted Downloads]$ sudo yum install scrot
Redirecting to '/usr/bin/dnf install scrot' (see 'man yum2dnf')

Last metadata expiration check: 4:28:17 ago on Tue May  9 17:25:34 2017.
Dependencies resolved.
==============================================================================================================================================================
 Package                            Arch                               Version                                      Repository                           Size
==============================================================================================================================================================
Installing:
 giblib                             x86_64                             1.2.4-23.fc23                                fedora                               28 k
 imlib2                             x86_64                             1.4.9-1.fc23                                 updates                             214 k
 scrot                              x86_64                             0.8-13.fc23                                  fedora                               25 k
(...)

I have thereof downloaded giblib via "yumdownloader giblib" and transferred the file to dom0

But when I try to install giblib I get the message that "nothing provides libImlib2.so.1 (...) needed by giblib (...)"
When I try to install imlib2 I get the message that "nothing provides libgif.so.4"

Question:
How can I resolve this and install libgif.so.4 in dom0?
Which other packages need to be installed in dom0 so that all dependencies for scrot are fulfilled?

regards

- P


cooloutac

unread,
May 9, 2017, 4:11:35 PM5/9/17
to qubes-users, eva...@openmailbox.org
why not just use dnf in dom0?

PR

unread,
May 9, 2017, 4:20:21 PM5/9/17
to cooloutac, qubes-users
Hello,


On 05/09/2017 10:11 PM, cooloutac wrote:
> (...)
> why not just use dnf in dom0?
>

Can I simply use dnf in dom0??
I thought (as it is a bad idea to add lots of packages to dom0) I need
to download the packages in an App-VM, transfer it to dom0 via "qvm-run
--pass-io APPVM 'Path/to/file/in/AppVM' > /path/in/dom0/file"

If I try to run "sudo dnf install scrot" in dom0 I get a "No package
scrot available"
(which shouldn't work by design)

According to the documentation
(https://www.qubes-os.org/doc/software-update-dom0/) the better way
should be:

If I try to run "sudo qubes-dom0-update install scrot" I get:
Running command on VM: 'sys-firewall'...
(...)
No package install available.
Error: unable to find a path

What am I missing?

- P


cooloutac

unread,
May 9, 2017, 4:22:26 PM5/9/17
to qubes-users, eva...@openmailbox.org
or I mean use qubes-dom0-update command https://www.qubes-os.org/doc/software-update-dom0/

Eva Star

unread,
May 9, 2017, 4:40:41 PM5/9/17
to qubes...@googlegroups.com
On 05/09/2017 11:20 PM, 'PR' via qubes-users wrote:

> If I try to run "sudo qubes-dom0-update install scrot" I get:

not install, just:

sudo qubes-dom0-update scrot

qubes-dom0-update will check all signatures for you, manage dependencies
etc.

--
Regards
Reply all
Reply to author
Forward
0 new messages