Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 11-03-2010, 08:35 PM   #1
LQ Newbie
Registered: Jan 2006
Distribution: Slackware 10.0
Posts: 23

Rep: Reputation: 0
Can i get sceenshot of X environment from CONSOLE?

Hi, i just want to get sceenshot of anything in gnome, but i want to do it from console command. how?
Old 11-03-2010, 09:51 PM   #2
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,134
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
You can use scrot for this.
Old 11-05-2010, 06:43 PM   #3
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Yes - For that I also use 'scrot'. Great tool.
Old 11-05-2010, 08:29 PM   #4
Senior Member
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,433

Rep: Reputation: 196Reputation: 196
Here's another way:

Alt+F2, then type in the box:
xwd | convert - ~/lq.png
This will take a snapshot of the entire active window, and you will have a lq.png in your /home/yourname directory. The lq.png is just a name using the LQ forum as an example. Name it anything you wish .png.

Now, if there is more to this than you want in the screenshot then go again to Alt+F2, and type in the box:

import llq.jpg
This will give you a crosshair pointer so that you can cropjust what you want on the page. Just go to a section of the active window, click and drag until the dotted lines cover all you want. after you let go of the mouse, you will have a llq.jpg file in your /home/yourname directory.

The file extension is not that important - its your choice. jpj or png.

Now lets say you want to change the size to upload to a forum, or even for use as an avatar. For this we have the convert command:

convert -geometry 800x600 /home/yourname/lq.png
Change that 800x600 to whatever you want.

All of this from the command line.
Old 11-07-2010, 08:26 PM   #5
LQ Newbie
Registered: Jan 2006
Distribution: Slackware 10.0
Posts: 23

Original Poster
Rep: Reputation: 0
thanx for the reply

now how i can do the same thing remotely (to server)?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print a message from kernel module to terminal console or tty console yogesh_bansal Linux - Newbie 2 02-27-2009 09:10 AM
how to choose desktop environment in console mode sharathg786 Fedora 6 03-20-2007 10:27 AM
Setting Console Environment Variables from X juanbobo Linux - General 6 05-24-2006 05:33 PM
Is there a desktop environment w/ an embedded console? adam gorley Linux - Software 4 03-09-2006 10:20 AM
window sceenshot utils plz SciYro Linux - Newbie 5 03-10-2005 10:22 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration