<br><tt><font size=2>Johannes Scholz <lgdlubyou@googlemail.com> wrote
on 26/07/2010 14:41:27:<br>
<br>
> Hi Chris</font></tt>
<br>
<br><tt><font size=2>Hi</font></tt>
<br>
<br><tt><font size=2>> <br>
> Am 26.07.2010 um 15:23 schrieb chris@ccburton.com:</font></tt>
<br><tt><font size=2>> <br>
> Do you mean you can mount the workstation's shares on the NX server
<br>
> from within the NX session, over the ssh tunnel ??? </font></tt>
<br><tt><font size=2>> <br>
> This is exactly what i can do, ie</font></tt>
<br><tt><font size=2>> i can connect to the freenx server using nx client
and then do something like</font></tt>
<br><tt><font size=2>> <br>
> mount -t smbfs //mycomputer.local/my_share /mnt -o <br>
> username=myusername,ip=127.0.0.1,port=5000</font></tt>
<br><tt><font size=2>> <br>
> on the console (which seems to be what the node bash script does).</font></tt>
<br><tt><font size=2>> <br>
> As far as timeouts go - maybe, but its a big maybe since i do not
<br>
> seem to have issues with latency, bandwidth etc.</font></tt>
<br>
<br><tt><font size=2>It's mainly to do with the length of time it takes
to set up the tunnel,</font></tt>
<br><tt><font size=2>but you also get issues of you are mounting several
shares.</font></tt>
<br>
<br><tt><font size=2>As a diagnostic/bodge try adding a </font></tt>
<br>
<br><tt><font size=2>
sleep 10</font></tt>
<br>
<br><tt><font size=2>at about line 1400 in nxnode, after</font></tt>
<br>
<br><tt><font size=2> # sometimes the
samba port we get from nxserver is not the right one, so let's get it from
nxagent</font></tt>
<br>
<br><tt><font size=2>and see if that gets it going.</font></tt>
<br>
<br>
<br><tt><font size=2>A better fix of course, is to put </font></tt>
<br>
<br><tt><font size=2> error=$(PASSWD="$password"
$COMMAND_SMBMOUNT "//$computername/$share" "$HOME/$dir"
-o username="$username",ip=127.0.0.1,port=$port 2>&1)</font></tt>
<br>
<br><tt><font size=2>in a loop, testing the return code, for a couple of
attempts with a sleep 1</font></tt>
<br><tt><font size=2>in it for when it fails.</font></tt>
<br>
<br><tt><font size=2>Note, most people don't seem to use this, or the printing,
hence the lack</font></tt>
<br><tt><font size=2>of interest . . .</font></tt>
<br>
<br><tt><font size=2>Let us know how you get on . . . .</font></tt>
<br>
<br><tt><font size=2>> <br>
> Regards,</font></tt>
<br><tt><font size=2>> <br>
> Johannes Scholz</font></tt>