Hello, The patch you offered tries to solve a bit different problem than mine. My problem is connecting to multiple x2go servers from single client. However I find your patch very useful for "reversed" situation, described in bug #155 Also replacing perl usage with awk is probably a good thing. And thank you for noticing problem with my previous patch. New patch attached seems to be working fine. Regards On Thu, Jun 6, 2013 at 2:01 AM, Mike Gabriel < mike.gabriel@das-netzwerkteam.de> wrote: > Hi Thomas, hi Eugene, > ugene > > On Mi 05 Jun 2013 06:33:15 CEST Eugene San wrote: > > Hi all, >> >> This subject was already discussed here, but since no solution exists till >> now, I've hacked not ideal but practical solution. >> >> Attached patch should minimize chances of conflicting ports x2goserver is >> using. >> On the first run, x2gostartagent script randomly selects ports from >> specific range (30000-30099) and save them to config file to be used for >> the following sessions. >> Later one can tune those values in config file >> (/etc/x2go/x2goagent.options). >> >> Regards >> >> > Eugene: the patch your provided via x2go-dev ML won't work (as > x2goagent.options cannot be written by the user). > > However, here is another patch that you and Thomas (the submitter of issue > #155 in X2Go BTS) may test with your class room setups. > > Patch is attached. Please give feedback. The patch reverts some code > introduced in x2goserver 3.1.1.3 (or so). > > Thanks+Greets, > Mike > > > -- > > DAS-NETZWERKTEAM > mike gabriel, herweg 7, 24357 fleckeby > fon: +49 (1520) 1976 148 > > GnuPG Key ID 0x25771B31 > mail: mike.gabriel@das-netzwerkteam.**de, > http://das-netzwerkteam.de > > freeBusy: > https://mail.das-netzwerkteam.**de/freebusy/m.gabriel%40das-** > netzwerkteam.de.xfb >