LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Python graphics (https://www.linuxquestions.org/questions/linux-newbie-8/python-graphics-4175529670/)

aagaag 12-31-2014 11:36 AM

Python graphics
 
I am trying to move my python projects from windows to arch linux. When I try to generate some graphics (via a Putty SSH console), I receive the message:
Code:

QXcbConnection: Could not connect to display
Aborted (core dumped)

I suppose that I need to install some graphic drivers that work with Putty. Can somebody explain to me what I need to do? Many thanks in advance!!!

veerain 12-31-2014 10:38 PM

Are you using ncurses to isplay gui or using X Windows?

jlinkels 01-02-2015 02:44 AM

Putty is purely text (hence puTTY). What you see is text. When you want to switch to a GUI application, your application does not know how to display graphics.

As it seems you are developing on the Linux box and want to display the application on Windows? Your best option might be to install VNC on the Linux box and work remotely on your Linux desktop.

What graphical library do you use? Is it available in Linux as well? With libraries I have been using, the same code runs both on Windows and Linux without a single change. So what is the use of running your application in Linux and watching it on a Windows box?

jlinkels

aagaag 01-02-2015 04:36 AM

Extremely well taken points. I am trying hard to move everything to Arch and make myself as independent of Windows as I can. From what I understand, I should install
Code:

vncserver -geometry 1440x900 -alwaysshared -dpi 96 -localhost :1
on the server, and then I can log into it from Windows with a generic VNC client.

This seems more attractive that tunneling X11 through Putty and Xming which is quite messy in my (limited) experience. I will try that!

jlinkels 01-02-2015 06:34 AM

I am not that familiar with VNC, so if you say this is the correct program call I believe you. You'll see whether it works as expected or not. I hardly feel the need to access my Linux from Windows. If I have Linux box around I prefer that one over Windows.

That raises the question why you would want to remotely connect to your Linux box. Is it located off-site? Is installing Arch inside a VM on your Windows machine an option?

jlinkels


All times are GMT -5. The time now is 11:55 PM.