Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4739  / 3 Years ago, tue, june 8, 2021, 12:10:43

I'm using Ubuntu 12.04 . If more information is needed, please tell me.
I Tried some guides to cature my login screen:



How can I take a screenshot of the login screen?



http://www.howtoforge.com/how-to-take-a-screenshot-of-your-login-screen



I tried the first one, but after running:



$ sudo bash /tmp/shot.sh >/tmp/shot.xwd


I'm getting this:



No protocol specified
No protocol specified
xwd unable to open display ':0'


and i'm getting an xwd file in my tmp folder.
running the other commands giving errors.



tried the second one, after running:



chvt 8; sleep 5; XAUTHORITY=/var/gdm/:0.Xauth DISPLAY=:0.0 import -window root /tmp/gdm-login-shot.png


I got:



No protocol specified
No protocol specified
import: unable to open X server ':0.0' @ error/import.c/ImportImageCommand/366


Many Thanks for helping (:



EDIT to vine_user:
here the output from the terminal-I cacked it from within the system while I'm looged in:



ubuntu@PrecisePangolin:~$ echo 'sleep 5; DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/$DISPLAYDISPLAY xwd -root' > /tmp/shot.sh
ubuntu@PrecisePangolin:~$ sudo bash /tmp/shot.sh >/tmp/shot.xwd
bash: /tmp/shot.xwd: Permission denied
ubuntu@PrecisePangolin:~$ sudo su
root@PrecisePangolin:/home/ubuntu# sudo bash /tmp/shot.sh >/tmp/shot.xwd
No protocol specified
No protocol specified
xwd: unable to open display ':0'
root@PrecisePangolin:/home/ubuntu#


EDIT 2!: HERE IT IS!:
enter image description here



just uploading-this uploadong site is better than other iuset to use (: :
enter image description here


More From » 12.04

 Answers
2

Step1:



Make /tmp/shot.sh using this command:



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


You may change the seconds of sleep suitably.



Step2:



Login to the text mode by pressing Ctrl+Alt+F1.



Step3:



Execute this command;



 sudo bash /tmp/shot.sh >/tmp/shot.xwd


Step4:



Return to the GUI mode by pressing Ctrl+Alt+F7.



Step5:



Logout by normal way. While you can see login screen, wait for some seconds.



Step6:



Login by normal way. And execute this command in terminal;



convert /tmp/shot.xwd /tmp/shot.png


(you need to install imagemagick, if you don't have installed it yet)



So, you can check the picture using this command;



eog /tmp/shot.png


Reference: http://ptspts.blogspot.jp/2010/02/how-to-create-screen-shot-of-gdm-login.html



In 12.04, it differs in using lightdm.


[#36106] Tuesday, June 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fertion

Total Points: 436
Total Questions: 121
Total Answers: 156

Location: England
Member since Sun, May 21, 2023
1 Year ago
;