LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2007, 08:11 PM   #1
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Rep: Reputation: 15
still cant capture the screen using "xwd"


hi all
please i need ur help
it is been 6 days cant solve this problem

whenever i try to to capture the screen to a file
xwd -root -silent | xwdtopnm

it throws the following error:
Quote:
xwd: unable to open display ''
Note: my build is Linux Fedora

any help?
 
Old 04-13-2007, 08:25 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
Just before typing the shell command line you posted above, try this:

Code:
export DISPLAY=:0.0
Hope this helps.
 
Old 04-13-2007, 08:33 PM   #3
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by wjevans_7d1@yahoo.co
Just before typing the shell command line you posted above, try this:

Code:
export DISPLAY=:0.0
Hope this helps.

many thanx for ur reply

but

after i typed the command u provided

and try to capture again using

Quote:
xwd -root -silent | xwdtopnm
it didnt give any reaction
just the cursor at the start of the line
and nothing printed

can u help any more?
and can i know what does ur command do?
 
Old 04-13-2007, 09:50 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
This is how I have done it.
Code:
xwd -display :0 -root >image.xwd
convert image.xwd image.png
 
Old 04-13-2007, 09:59 PM   #5
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by homey
This is how I have done it.
Code:
xwd -display :0 -root >image.xwd
convert image.xwd image.png

great i tried ur command and it created the png file
but when i opened it it is BLANK BLACK image

any suggestion?
 
Old 04-13-2007, 10:14 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
...but when i opened it it is BLANK BLACK image
Perhaps you are trying from a console ( very black ) and not a terminal in kde as I was.
In that case, this works on my system...
Code:
setterm -dump 2-NR-CONSOLES 
cat screen.dump
You could also have a look at the command: script
The ouput is saved in a file called typescript
Use ctrl d to end the capture
 
Old 04-18-2007, 10:21 PM   #7
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by homey
Perhaps you are trying from a console ( very black ) and not a terminal in kde as I was.
In that case, this works on my system...
Code:
setterm -dump 2-NR-CONSOLES 
cat screen.dump
You could also have a look at the command: script
The ouput is saved in a file called typescript
Use ctrl d to end the capture

thank you for ur reply

ill try what u mentioned

but

could the blank image be a reason of X server not running??
or shuld i be sure that it is running and search for another reason??

thanx again
 
Old 04-21-2007, 01:36 AM   #8
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by homey
Code:
setterm -dump 2-NR-CONSOLES 
cat screen.dump
what does these commands do??
when i executed them as u told me it printed the following text:
Quote:
This computer system is for authorized users only. Individuals using this
system without authority or in excess of their authority are subject to
having all their activities on this system monitored and recorded or
examined by any authorized person, including law enforcement, as system
personnel deem appropriate. In the course of monitoring individuals
improperly using the system or in the course of system maintenance, the
activities of authorized users may also be monitored and recorded. Any
material so recorded may be disclosed as appropriate. Anyone using this
system consents to these terms.

main login:
what is that?!
any help?
 
Old 04-21-2007, 04:54 PM   #9
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
help!!
 
Old 04-25-2007, 08:34 AM   #10
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
any suggestion????
 
Old 04-27-2007, 09:48 PM   #11
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
anyone can help please??
 
  


Reply

Tags
capture, screen



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
"FATAL: Unknown capture source type" error from Kismet atlantanewbie Linux - Wireless Networking 2 04-03-2010 05:34 AM
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
problem using "xwd".. unable to open display!! coderphp Linux - Newbie 11 06-13-2008 09:41 PM
Switching "nv" to "nvidia" = screen shifted to the left? mpriddy Linux - General 5 02-28-2007 10:38 PM
simple capture for alsa give "extended read not supported" Ephracis Programming 1 02-04-2006 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:24 AM.

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
Open Source Consulting | Domain Registration