Click to See Complete Forum and Search --> : image: unable to open X server


chintan491
02-17-2006, 05:06 AM
hey ..
i have to take screen snapshot of the remote client machine and transfer it to the server..
for that i have Ftp into the remote machine and used the command
import -window root root.jpeg but i am gettin an error as

image: unable to open X server ..

what is the way out of this ..

cybertron
02-17-2006, 12:22 PM
Do you mean you ssh'd in to the remote machine? I don't think you can run that command from FTP.

You may need to do DISPLAY=:0.0 import -window root root.jpeg to get it to talk to the running X server, although I don't know for sure if that will work either. You may not have permission to access the X display if it isn't your user that is currently logged in. If that is the case, having the logged in user run "xhost +" may let you in, but I'm not sure what the security implications of that are.