This is one of several, little, quick notes about OSOL config. I have done several installs now, and each time I forget some of the little things. Thatâ€™s what a Blog is for though, right? There are lots of sites describing this online, so itâ€™s not tough to find. I just wanted to find it easier on my own site.
I am using OSOL 2009.06 in this, might change a bit on other versions.
1. Install the service/pkg if it is not already. I think it is though. I think I just had to enable it on 2009.06.
2. Edit the service. Thereâ€™s probably an easier way, but this is an example of how I learned one way and stuck to it. And in OSOL, like Linux, thereâ€™s probably twenty different ways to do something.
svccfg -s xvnc-inetd
There are two lines I like to change. 1. is to add the WAIT for persistent connections. 2. Geometry, so I have a larger vnc window. All I do is uncomment and add geometry and replace false with true.
setprop inetd_start/exec = astring: /usr/X11/bin/Xvnc -geometry 1280x800 -inetd -query localhost -once securitytypes=none
setprop inetd/wait = boolean: true
rem IP of the server
rem SSH port, update your sshd_config to match
rem this is the port on your system, not the server
rem this is the port on the server, below should work by default
rem Path to Uvnc, maybe other vnc clients will work too
rem Just update the cmd below
set VNCPATH=C:\Program Files\UltraVNC
rem Have plink/pskill in your path or in the same dir as this script
start plink -ssh -P %SSHPORT% %SVR% -l %SSHUSER% -pw %SSHPW% -C -v -batch -L %LIP%:%LPORT%:%RIP%:%RPORT% -T -N
CHOICE /N /T 7 /D Y > NUL
CHOICE /N /T 2 /D Y > NUL