LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 11-03-2010, 09:35 PM   #1
vaporizel
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, 10:51 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,648
Blog Entries: 2

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

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

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

Alt+F2, then type in the box:
Code:
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:

Code:
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:

Code:
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, 09:26 PM   #5
vaporizel
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)?
 
  


Reply


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 10:10 AM
how to choose desktop environment in console mode sharathg786 Fedora 6 03-20-2007 11:27 AM
Setting Console Environment Variables from X juanbobo Linux - General 6 05-24-2006 06:33 PM
Is there a desktop environment w/ an embedded console? adam gorley Linux - Software 4 03-09-2006 11:20 AM
window sceenshot utils plz SciYro Linux - Newbie 5 03-10-2005 11:22 PM


All times are GMT -5. The time now is 08:31 PM.

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