LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-31-2014, 11:36 AM   #1
aagaag
Member
 
Registered: Aug 2014
Posts: 42

Rep: Reputation: Disabled
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!!!
 
Old 12-31-2014, 10:38 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Are you using ncurses to isplay gui or using X Windows?
 
Old 01-02-2015, 02:44 AM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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
 
Old 01-02-2015, 04:36 AM   #4
aagaag
Member
 
Registered: Aug 2014
Posts: 42

Original Poster
Rep: Reputation: Disabled
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!
 
Old 01-02-2015, 06:34 AM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Python wins trademark dispute, rival stops calling itself “Python” LXer Syndicated Linux News 0 03-21-2013 07:40 PM
Python 2.6 dependencies error installing python-sqlite2-2.5.5-1.1.i586.rpm jmp007 Linux - Newbie 1 02-11-2011 11:05 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
LXer: Review: Programming in Python 3: A Complete Introduction to the Python Language LXer Syndicated Linux News 0 01-26-2009 04:50 AM
python graphics cyb0rg777 Programming 9 09-14-2005 03:08 AM

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

All times are GMT -5. The time now is 12:40 AM.

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