[FreeNX-kNX] JJK: All patches applied (initial email)

Jeffrey J. Kosowsky freenx-knx at kosowsky.org
Sun Dec 30 21:57:35 UTC 2007


Forwarding this (along with several other postings) to the list per
Fabian's suggestion... Note: I have also previously posted a copy to
the freenx-devel list.

Fabian Franz wrote at about 00:18:15 +0100 on Wednesday, November 21, 2007:
 > > Fabian,
 > 
 > Hi,
 > 
 > > I continue to play with freenx and fix bugs as they occur and as I
 > > update my own Fedora system. I will send you my updated patches when
 > > they are cleaned up if you are interested.
 > 
 > Sure. That is perfect.
 > 
 > > One bug (at least on Fedora systems) is that the directive "PidFile"
 > > in cupsd.conf doesn't seem to be recognized. The result is that the
 > > daemon code that you use to launch cupsd doesn't record the pid and
 > > then it can't later be killed. I'm not sure why "PidFile" is not
 > > recognized but I tested it outside of NX by launching cupsd manually
 > > and indeed it doesn't work (I am using Cups 1.3.3).
 > 
 > Yes PidFile is debian specific, but I didn't knew that.
 > 
 > Your fix is fine and I will commit a similar one with -f to SVN.
 > 
 > > To get around this, I use the following patch:
 > > #JJK:   $COMMAND_CUPSD -c "$USER_FAKE_HOME/.nx/C-$sess_id/cups/cupsd.conf"
 > > &>/dev/null </dev/null
 > >     $COMMAND_CUPSD -F -c "$USER_FAKE_HOME/.nx/C-$sess_id/cups/cupsd.conf"
 > > &>/dev/null </dev/null & NODE_CUPSD_PID=$! echo $NODE_CUPSD_PID
 > > >"$USER_FAKE_HOME/.nx/C-$sess_id/pids/cupsd"
 > >     NODE_CUPSD_PID=$!
 > >     echo $NODE_CUPSD_PID >"$USER_FAKE_HOME/.nx/C-$sess_id/pids/cupsd"
 > > 
 > > A second problem I found is more challenging (to me).
 > 
 > Not only to you.
 > 
 > > Based on our earlier discussion, I am using the directive
 > > 	echo "NX> 709 File-sharing port: 445"
 > > to enable me to use mount.cifs/umount.cifs since smbmount is no longer
 > > supported on my system.
 > > This then sets up the ssh port forwarding: <$display+3000> --> 445
 > > So, far this makes file sharing work.
 > 
 > You can use FreENx 0.7.1 that has this directive and even has it configurable.
 > 
 > > However, I now can't get print sharing working. Since the smb URL for
 > > printing in 'nxnode' uses the same port while smb URL printing seems
 > > to need to be forwarded to the old port 139 standard to work.
 > 
 > SMB printing won't need to be forwarded to port 139, but in SAMBA the port 445 is hardcoided to be used to switch printing to CIFS.
 > 
 > So there are two possbilities:
 > 
 > (1) - Patch samba to do a != 139 instead of ==445.
 > 
 > (or even better apply a different idea of the patch that NoMachine did to upstream. I had  been already in negotiations with Samba, but I forgot it again ...)
 > 
 > (2) - Or use my old work in http://svn.berlios.de/svnroot/repos/freenx/nx-utils/nxredir/. to forward 445 to some port via LD_PRELOAD mechanism and let smbprint use it.
 > 
 > (I had also written some other mail in the last month regarding this issue)
 > 
 > At the moment I will go with (2) for the 0.7.2 release and with (1) for the long term.
 > 
 > cu
 > 
 > Fabian
 > 




More information about the FreeNX-kNX mailing list