Sunday, August 17, 2008

Different ways to take Screenshot on Linux

Way 1: Using GUI if you have GNOME:
If you have GNOME installed then using graphical tool you can easily take a screenshot. To do it
Click Applications —> Accessories —> Take Screenshot.
You are done.

Way 2: With the PrintScreen Button
To get a screenshot of your active window just press ALT+Print Screen button. A new window will appear. Just enter your name of the screenshot there as well as the location.

Way 3: Using ImageMagick Tool: This tool can be useful in certain scenario. Suppose to take a screenshot of a menu you can't use GNOME tool. You have to use this tool then as it support a delay before taking the screenshot. You need to install this tool to use.
To check whether ImageMagick tool is installed or not just issue,
# import -version
bash: import: command not found

You can get this tool from http://www.imagemagick.org/script/index.php.
The next step is to install it. On my debian linux, I issue
#apt-get install imagemagick

To take a screenshot in the terminal with ImageMagick, type the following line into a terminal and then click-and-drag the mouse over a section of the screen:

import MyScreenshot.jpg

To view it,
#eog MyScreenshot.jpg

To capture a creenshot after 10 seconds delay you can issue,
sleep 10; import -window root MyScreenshot2.jpg

Way 4: Using scrot
To install scrot on my system I used,
sudo aptitude install scrot

To take a snapshot with it use,
scrot MyScreenshot.png

Way 5: With the Terminal using gnome-panel-screenshot:
Using terminal in GNOME you can also take the snapshot in linux. Do it as,
$gnome-panel-screenshot

Also delay can be added by,
$gnome-panel-screenshot --delay 5

Way 6: With the GIMP
Install gimp on my debian system by,
# apt-get install gimp
And to take snapshot open gimp and follow,
File —> Acquire —> Screen Shot.

Way 7: Web Page Snapshot With Firefox
With screengrab you can take screenshot within webpage just by a click if you use firefox. To get screengrab just download it from https://addons.mozilla.org/en-US/firefox/search?q=screengrab&cat=all

To use it just right click on a web page and choose: ScreenGrab! —> Save document as image.

Way 8: With xwd to screen a terminal
Just on your terminal write,
$xvd> screen.xvd

And then convert it to any format that you wish using convert command.
$convert screen.xvd screen.jpg

Way 9: Using ksnpshot
With ksnapshot you can easily take snapshot. It can be used in KDE as well as GNOME.

Way 10: Using gimp Tool

If you know any other ways just enter inside comments in this post. Thank you.

Related Documents
How to change/configure IP Address on Linux/ Fedora /Ubuntu
Copy files between Unix and Windows with rcp
Screen -A very useful unix tool to work with remote system
How to change the hostname in Linux
Memory Usage of Solaris Operating System

No comments:

Post a Comment