Re: question about involve "vncserver" command with django

2010-11-10 Thread Bill
Thank you Sam, I've checked the manual and try to change any port include rfbport or http port, it doesn't work. But finally, I find my way, I use pexpect to involve the command. It works. Thank you everyone! Bill On Nov 10, 4:23 pm, Sam Lai wrote: > Why can't you tell vncserver to listen on a

Re: question about involve "vncserver" command with django

2010-11-10 Thread Sam Lai
Why can't you tell vncserver to listen on a different port? the vncserver script passes any unknown args to Xvnc, so you can use the argument for Xvnc to change the port (-rfbport port_number). man vncserver: http://www.realvnc.com/products/free/4.1/man/vncserver.html man Xvnc: http://www.realvnc

Re: question about involve "vncserver" command with django

2010-11-10 Thread Bill
> Well, using a web server to start VNC still seems like a bad idea. How > do you stop the VNC server once a user does not need it anymore? User can close the vncserver use webserver, just like How they can start it. Any way, I know maybe there are many better ways to do this job. I really appre

Re: question about involve "vncserver" command with django

2010-11-10 Thread Jirka Vejrazka
> What am I doing is want to simplify using vnc. > I'm a Linux administrator. As you know, if users want to use vnc they > must login the server with ssh to start vnc server first. > Then get the port or id number, then use vncviewer or http link to > access the vncserver. > I just want them to acc

Re: question about involve "vncserver" command with django

2010-11-09 Thread Bill
Hi Clifford, Thank you, sounds like good, I will try FreeNX later. but you know, I already wrote the python code, it works except I use it on Django. BTW, we are very close, I'm at Eglinton subwaystation. Best regards, Bill > I've found FreeNX with the NoMachine client to be a much better > al

Re: question about involve "vncserver" command with django

2010-11-09 Thread CLIFFORD ILKAY
On 11/09/2010 05:50 PM, Bill wrote: What am I doing is want to simplify using vnc. I'm a Linux administrator. As you know, if users want to use vnc they must login the server with ssh to start vnc server first. Then get the port or id number, then use vncviewer or http link to access the vncserve

Re: question about involve "vncserver" command with django

2010-11-09 Thread Bill
Hi Jirka, Thank you for your quickly reply. >   this is technically impossible, two programs cannot listen on the > same TCP port (on one interface). It's very likely that it was Django > webserver listening there. You are right, sorry for that stupid question, and I check it again, I find the X

Re: question about involve "vncserver" command with django

2010-11-09 Thread Jirka Vejrazka
> For example,  django listen on tcp port 8000, and the Xvnc also listen > on tcp port 8000. > It's wired. Hi Bill, this is technically impossible, two programs cannot listen on the same TCP port (on one interface). It's very likely that it was Django webserver listening there. Overall, st

question about involve "vncserver" command with django

2010-11-09 Thread Bill
Hi all, I met a problem, I can use python to execute the the command "vncserver " to start vncserver use subprocess, like this: process = subprocess.Popen('vncserver' , shell=True) but when I write this code to views.py it didn't work as I hope. The Xvnc process listened on the port which Django