Take screenshot of login screen in Ubuntu 14.10, Ubuntu 14.04 and Linux Mint. Take screenshot of menu screen in Ubuntu 14.10/14.04 Systems. Capture a screenshot of Menu or Tooltip on Ubuntu Systems.
To take screenshot of Login screens and menu/tooltips, we will create a script and use it.
The first step is to download and install ImageMagic. Open Terminal and run the following command to install ImageMagic.
sudo apt-get install imagemagick
Once installed, create the script. Create a new file in your Home directory and name it screenshot.sh. Open the file and add the following lines to ir:
chvt 7; sleep 5s; DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 xwd -root -out ~/screenshot.xwd; convert ~/screenshot.xwd ~/screenshot.png; rm ~/screenshot.xwd
Save and close the file. Please note that “chvt 7” is the number of the seconds after which it will take a screenshot whne you run the script.
To execute the Script, give executable permission to it via following command:
sudo chmod +x screenshot.sh
Now run the screenshot script via the command:
sudo ./screenshot.sh
Once the script runs, it will take the screenshot and save it as screenshot.png in the Home directory.