[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] taking screenshots from remote VM
From: |
Fam Zheng |
Subject: |
Re: [Qemu-discuss] taking screenshots from remote VM |
Date: |
Fri, 3 Mar 2017 10:35:02 +0800 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Thu, 03/02 21:43, behrouz khosravi wrote:
> Hello everyone. Sorry if my question is too easy and thanks for your help.
> I have installed linux on a remote vm. I also have a script that using
> pyqt5 takes screenshots from the desktop. However when I connect to the
> machine using ssh, and try to run the script, it complains about x server
> not being running.
> What should I do?
> Thanks
If you "export DISPLAY=$the_desktop_display" after you ssh into the VM, your
script may then be able to find the actual display and work.
Find the value of $the_desktop_display by "echo $DISPLAY" from a graphical
terminal in your VM, or otherwise try ":0" which is usually the default one.
Fam