<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Dave,<div class=""><br class=""/></div><div class="">Thanks for providing the instructions. I just tried them on Squeak6.1alpha-22300-64bit on macOS 12.6.1.</div><div class=""><br class=""/></div><div class="">When loading update.sscom-dtl.5.mcm two modal dialogs are shown:</div><div class=""><img apple-inline="yes" id="AC3A02EE-68ED-48F8-8AB0-63B0B7585CDE" src="cid:2AFA1565-9928-42FE-A909-87C00C8F943E" class=""/></div><div class=""><br class=""/></div><div class=""><img apple-inline="yes" id="E106DBA7-6D79-417D-B04C-1B5E35201F18" src="cid:B2FE2359-12CE-4DC5-A15C-DDF5C08D1D4F" class=""/> </div><div class=""><br class=""/></div><div class="">I entered admin and password. Then I get this:</div><div class=""><br class=""/></div><div class=""><img apple-inline="yes" id="2877FE2B-71C5-45C4-9B0C-16D08411448A" src="cid:5DBDAFDF-810C-475F-B343-2FF08AE94EFA" class=""/></div><div class=""><br class=""/></div><div class="">Any idea what I might be missing?</div><div class=""><br class=""/></div><div class="">Cheers,</div><div class="">Bernhard</div><div class=""><br class=""/><div><br class=""/><blockquote type="cite" class=""><div class="">Am 03.12.2022 um 22:03 schrieb David T. Lewis <<a href="mailto:lewis@mail.msen.com" class="">lewis@mail.msen.com</a>>:</div><br class="Apple-interchange-newline"/><div class=""><div class="">During a recent board discussion, Tim asked about experiences in using VNC<br class=""/>to control server images. There are various ways to do this, but here is how<br class=""/>it is done for the <a href="https://squeaksource.com" class="">https://squeaksource.com</a> server. The easiest way to see<br class=""/>how it works is to try it out on your own computer, so here is what to do:<br class=""/><br class=""/>- Start with a fresh Squeak image.<br class=""/>- Open a Monticello Browser, and add repository <a href="http://source.squeak.org/ss" class="">http://source.squeak.org/ss</a>.<br class=""/>- Open the repository and navigate to category update.sscom.<br class=""/>- Select update.sscom-dtl.5.mcm and load it.<br class=""/><br class=""/>When loading is complete, you will see a notifier saying that SqueakSource<br class=""/>is running on port 8888, as well as a pinnable morph for controlling the<br class=""/>RFBServer (for VNC connections).<br class=""/><br class=""/>Pin the RFB control morph so that it stays active. If you close it by<br class=""/>accident, do "RFBServer menu openInWorld" to get it back.<br class=""/><br class=""/>Save the image once and restart it to make sure the startup initialization<br class=""/>is working.<br class=""/><br class=""/>You can now open a web browser on <a href="http://localhost:8888" class="">http://localhost:8888</a> to connect to<br class=""/>the SqueakSource web interface. Only one account will be present in the<br class=""/>repository, this is your administrative user with user name 'admin' and<br class=""/>password 'password'. Changing that password (from the web interface) is<br class=""/>a good idea.<br class=""/><br class=""/>The following will work only on Unix/Linux/OSX:<br class=""/><br class=""/>In the RFBServer menu, in the passwords menu, select "allow empty passwords"<br class=""/><br class=""/>In a terminal window (outside of Squeak), identify the pid of the Squeak VM<br class=""/>process (pgrep -l squeak).<br class=""/><br class=""/>From the terminal, send a SIGUSR2 signal to the VM process. If the Squeak<br class=""/>VM pid is 1234, then the command is "kill -SIGUSR2 1234".<br class=""/><br class=""/>Back in the Squeak image, you will see the VNC control change from<br class=""/>"RFBServer (stopped)" to "RFBServer :1" to indicate that it is accepting<br class=""/>VNC connections on display number 1. It will stay in this state for the<br class=""/>next 60 seconds.<br class=""/><br class=""/>From a VNC client program running on the local machine, connect to<br class=""/>localhost:1, and you should have an active connection to the Squeak image.<br class=""/><br class=""/>If you want to run your SqueakSource image on another server, run the<br class=""/>VM with -vm-display-null and use ssh port forwarding if needed to access<br class=""/>the VNC ports.<br class=""/><br class=""/>For example, I have a unix account on the server that hosts <a href="http://squeaksource.com" class="">squeaksource.com</a>.<br class=""/>When I want to open the running SqueakSource image through VNC, I first<br class=""/>log in to the Linux server with a command like this (except that 10.1.2.3<br class=""/>is not the real address that we are using).<br class=""/><br class=""/>$ ssh -L8888:localhost:8888 -L5900:localhost:5900 -L5901:localhost:5901 10.1.2.3<br class=""/><br class=""/>Once logged in, I locate the Squeak VM process and send SIGUSR2 to it. I keep<br class=""/>the login session open to handle the port forwarding while I use VNC.<br class=""/><br class=""/>Then back on my local computer, I open a VNC connection to localhost:1 to<br class=""/>get a connection to the running image. This step needs to be done within 60<br class=""/>seconds of the SIGUSR2, after than no further connections will be accepted.<br class=""/><br class=""/>I used to use a VNC password (settable from the RFBServer menu) but I decided<br class=""/>that it was too much hassle given the 60 second connection enablement window,<br class=""/>which can only be started by someone with login access to the server and<br class=""/>sufficient privilege to send signals to the VM process.<br class=""/><br class=""/>If you want to copy any of these ideas for use in some other Squeak server<br class=""/>application, the interesting bits are in class SSImageInit, especially<br class=""/>SSImageInit class>>enableFRBServerOnSigUsr2.<br class=""/><br class=""/>I should note that RFBServer is written by Ian Piumarta. I don't recall<br class=""/>where it was originally hosted, but a copy of RFB-ikp.8.mcz is in our<br class=""/><a href="http://source.squeak.org/ss" class="">source.squeak.org/ss</a> repository, along with later updates that are currently<br class=""/>in use for SqueakSource.<br class=""/><br class=""/>Dave<br class=""/><br class=""/></div></div></blockquote></div><br class=""/></div></body></html>