LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-05-2011, 09:10 AM   #1
laredotornado
Member
 
Registered: Apr 2011
Posts: 71

Rep: Reputation: 0
xwd: unable to open display 'localhost:15.0'


Hi,

I'm SSH'ed in to my Ubuntu 11.04 machine and trying to take a screen shot of a virtual display where I'm running (hopefully) Firefox. I get the error

Code:
selenium@selenium:~$ xwd -display localhost:15.0 -out ~/desk.xwd -root
xwd:  unable to open display 'localhost:15.0'
I know that I have displayed the right display variable because in an earlier script that runs at system bootup I have

Code:
        export DISPLAY=localhost:15.0
        /usr/bin/Xvfb :15 -ac -screen 0 1024x768x16 &
Anyway, looking for any hints to help me take a screen shot. Thanks, - Dave
 
Old 07-07-2011, 01:18 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
This doesn't work for me either on most remote logins, even tho it always works when you are on the local display. I've never tracked down the cases where it works or doesn't but I suspect it is to do with default DISPLAY variable and X forwarding.

I can get it to work from Cygwin on my Windows PC if I do:
Code:
ssh -Y smallpond
xwd -out foo.xwd
Where smallpond is my Fedora 15 linux box. Note that I did not specify display, I let ssh set its default values. I get the crosshair cursor and can click on a smallpond window and it will generate the xwd file.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Open Display localhost:0.0 garethnsolomons Linux - Newbie 2 04-01-2011 12:54 AM
Can't open display: localhost:0.0 shpatil Linux - Newbie 2 12-01-2010 09:29 AM
Unable to open X display:1 AsharamV Fedora - Installation 6 02-20-2010 05:59 AM
problem using "xwd".. unable to open display!! coderphp Linux - Newbie 11 06-13-2008 09:41 PM
unable to open display mrhldjc Fedora 1 04-04-2005 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:28 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
Open Source Consulting | Domain Registration