[squeak-dev] Using squeak rfb/vnc server with unix server stuff

Levente Uzonyi leves at caesar.elte.hu
Wed Sep 11 00:41:24 UTC 2019


Hi Tim,

On Tue, 10 Sep 2019, tim Rowledge wrote:

> I've been doing some work to use the personal squeaksource package and having some problems that Chris has been helping me with- 
>
> BUT
>
> I simply can't work out how to get a connection from one squeak image running the rfb/vnc viewer to another running the server *when that image is run via daemontools*. If you run the server image directly (as in ./vm/squeak -vm display-none ss.image run.st where the run.st includes starting up the vnc server etc) then you get the expected no window running of the image but the vnc viewer connects to it easily. Run the same command as part of a daemontools service and the viewer cannot connect.
>
> Somebody out there must know why....

Try

lsof -p <PID_OF_THE_SQUEAK_VM_RUNNING_YOUR_IMAGE>

It should tell you whether the RFB server is really listening on the tcp 
port you defined or not.
If not, there are some possibilities
- missing sources file hangs the startup process, thus RFBServer hasn't 
been started
- another program is using the port RFBServer is trying to open
- the port number you defined is less than 1024, thus you can't listen on 
it unless you're root. But you don't want to run the VM as root.

Also, if you use RFBServer on any machine, make sure that you have a 
firewall blocking its port from the outside. You should only be able to
connect to it through an ssh tunnel.

Levente

>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> A fool and his money are soon partying


More information about the Squeak-dev mailing list