LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-06-2007, 12:48 AM   #1
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Rep: Reputation: 15
problem using "xwd".. unable to open display!!


Hi there

My problem now is whenever i try to run a command to capture the screen to a file
xwd -root -silent | xwdtopnm

it throws the following error:
Quote:
xwd: unable to open display ''
even if i run the command without any parameters it gives the same error...

any help please?
Note: my build is Linux Fedora
 
Old 04-06-2007, 12:56 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If you have KDE, you probably have ksnapshot in Graphics section of the main menu, or are you doing this from text mode (init 3)?

Last edited by Junior Hacker; 04-06-2007 at 12:57 AM.
 
Old 04-06-2007, 12:57 AM   #3
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Junior Hacker
If you have KDE, you probably have ksnapshot in Graphics section of the main menu, or are you doing this from text mode?
no i dont have KDE

im forced to use xwd
 
Old 04-06-2007, 01:04 AM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
This should give a 5 second delay:

Code:
sleep 5; xwd -root > desktop.jpg
 
Old 04-06-2007, 01:07 AM   #5
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Junior Hacker
This should give a 5 second delay:

Code:
sleep 5; xwd -root > desktop.jpg
it still gives the same error

Quote:
unable to open display ''
 
Old 04-06-2007, 01:15 AM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I just googled this trouble maker, there's some different commands here, I have no more suggestions:

http://www.samspublishing.com/librar...seqNum=73&rl=1
 
Old 04-06-2007, 01:57 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
The only combination I tried that seemed to work is the one with the 5 second delay, but nothing showed up when I tried to view it. All other combinations I seen through google (and they are all different) gave me the error you got. But some sites say ImageMagic is better, and I'm pretty sure Fedora installs it by default.
 
Old 04-06-2007, 05:07 PM   #8
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
i tried the one with 5 seconds delay and still gives me the same error...

anyone have any suggestion please????
 
Old 04-06-2007, 07:47 PM   #9
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
is it a very big problem??
 
Old 04-07-2007, 10:50 AM   #10
coderphp
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 64
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by coderphp
is it a very big problem??
still waiting
 
Old 08-20-2007, 01:49 PM   #11
felton57
Member
 
Registered: Aug 2007
Posts: 35

Rep: Reputation: 15
You might be looking for either one of these commands.

xwud - used to display the xwd file

xpr - used to format the xwd file to print using lpr
 
Old 06-13-2008, 09:41 PM   #12
felton57
Member
 
Registered: Aug 2007
Posts: 35

Rep: Reputation: 15
In the /etc/X11/twm/system.twmrc

It shows that Xterm is executed prior to the xwd command.

Example: "F12" = : all : f.exec "xwd | xpr -device ljet -cutoff 30 | lpr -Plp &"

f.exec is the xterm execution command in the file "system.twmrc"

Hope this helps!

Last edited by felton57; 06-13-2008 at 09:44 PM.
 
  


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
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
"unable to open display" please help riya Linux - Newbie 1 01-17-2006 11:26 PM
xset: unable to open display "mycomputer.mynetwork:0.0" nicolaeancuta Linux - Networking 2 07-13-2005 01:39 AM
konsole problem: "Unable to open a suitable terminal device" Mistreated Linux - Software 2 11-15-2004 03:24 PM
unable to open display "24.228.61.72:0.0" while installing oracle remotely cheeku Linux - Newbie 3 08-13-2004 04:08 PM

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

All times are GMT -5. The time now is 03:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration