Re: [OpenIndiana-discuss] Creating login screen screenshot with xwd

2018-02-02 Thread Nikola M

On 01/25/18 05:17 PM, Nikola M wrote:


Also it might be interesting to others : How to create login screen/X 
session screenshot, while aether from VT/text console or while ssh-ing 
to remote machine.


First create 'shot.sh' sctipt and save it in shot.sh:
echo 'DISPLAY=:0 XAUTHORITY=/var/lib/gdm/:0.Xauth xwd -root' 
>/tmp/shot.sh


Then create screenshot:
sudo bash /tmp/shot.sh >/tmp/shot.xwd
or in my case:
pfexec bash /tmp/shot.sh >/tmp/shot.xwd


In addition to this, it is worth mentioning that with all newer systems 
and installs ,

when using lightdm instead of gdm , creating shot.sh like this:

echo 'DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 xwd -root' 
>/tmp/shot.sh


Since it is unlikely there would be gdm use in the future OI installs, 
and lightdm used instead,
this might prove useful to someone searching for an Xorg screenshot 
solution form ssh.




And optionally convert .xwd image to .png with convert from 
'imagemagick' package:


convert -quality 50 /tmp/shot.xwd /tmp/shot.jpg
convert /tmp/shot.xwd /tmp/shot.png

or just use GIMP to open .xwd file and save it in desired format.

I found the solution, that also works on OI/illumos, here:
https://askubuntu.com/questions/43458/how-can-i-take-a-screenshot-of-the-login-screen 






___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Creating login screen screenshot with xwd

2018-01-25 Thread Tim Mooney

In regard to: [OpenIndiana-discuss] Creating login screen screenshot with...:


Here is the OI gdm login screen.

https://mega.nz/#!LJZBBaST!XWR52syJym0TJS-BZt_zmeBmfwHkgofttl49PbP7EpE


Thanks Nikola!

And thanks for the tip on how to get it, without needing a VM.  I should
have realized it would be possible to grab it from a terminal, if I would
have paused longer to think about it.


I found the solution, that also works on OI/illumos, here:
https://askubuntu.com/questions/43458/how-can-i-take-a-screenshot-of-the-login-screen


Tim
--
Tim Mooney tim.moo...@ndsu.edu
Enterprise Computing & Infrastructure  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss