How can I take a screenshot of the login screen?
I do not want to recreate my Ubuntu installation in a virtual machine.
This blog might be helpful: http://ptspts.blogspot.com/2010/02/how-to-create-screen-shot-of-gdm-login.html
Install ImageMagick for the image file format conversion below:
Create a helper script:
Make sure your login screen is active (log out or reboot the machine, and wait until you see the login screen). Log in in text mode (by pressing Ctrl-Alt-F1), or using SSH. Create the screen shot by running
You can log in now (by pressing Ctrl-AltF7 first to get back to the GDM login screen). Convert the screen shot to JPEG and/or PNG:
View the screen shot in your favourite image viewer.
For 11.10 and Lightdm and later
You can try running
Just wanted to note that I had a bunch of problems doing this on Ubuntu 10.04 LTS with this - here's my solution:
I'm on machine A, and I log on to machine B via ssh:
Then, I proceed with several attempts to grab screenshot, which all failed. The problem can be reduced down to
Well, it turns out that for some reason, the correct invocation for targeting X-windows via ssh is
Now that we know
Hope this helps someone,