Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Mar 16, 2012 5:01 am 
Offline
Newbie

Joined: Fri Mar 16, 2012 4:58 am
Posts: 2
I tried to run a PyQt4 app, but got following error:

cannot connect to X server :0.0

It seems i need to install the "X server", what's this? How to install it easily?

Thanks a lot.


Top
   
 Post subject:
PostPosted: Fri Mar 16, 2012 6:32 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
You'll need some sort of graphical environment locally, and (depending on what it is) might need to install a boatload of stuff on the Linode too. What OS are you running at home?

(In the X Window System paradigm, the "server" is what draws the pictures and stuff on your monitor, and the "client" is the program you're running.)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Fri Mar 16, 2012 6:42 am 
Offline
Newbie

Joined: Fri Mar 16, 2012 4:58 am
Posts: 2
hoopycat wrote:
You'll need some sort of graphical environment locally, and (depending on what it is) might need to install a boatload of stuff on the Linode too. What OS are you running at home?

(In the X Window System paradigm, the "server" is what draws the pictures and stuff on your monitor, and the "client" is the program you're running.)


Thanks for your reply.
I am using Linode VPS with Ubuntu 10.0.4.
I want to run a Python script which uses PyQt4.

I tried to start the Python script, i got that error.


Top
   
 Post subject:
PostPosted: Fri Mar 16, 2012 9:28 am 
Offline
Senior Member
User avatar

Joined: Tue Mar 17, 2009 5:11 am
Posts: 129
Location: UK
I've used this to install a desktop on my linode:

apt-get install gnome-desktop

This will install Gnome and X. I do this because I use nxserver on my linode as a development server.


Top
   
 Post subject:
PostPosted: Fri Mar 16, 2012 11:38 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Another method instead of running an X server on your linode is to forward X over your ssh connection, like so:
Code:
[redice@redices-home-machine ~]$ ssh -X -C user@redices-linode

Then you can run your Python script on the linode, and whatever X stuff it does should appear on your desktop. This of course assumes you are running X on your home system.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: nqservices and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group