Thanks for the information!

So I think I must to use VPN connection if you want to remote printing when you're not in the same server lan cause you can't nat 22 port to your computer when you are in a public net.

I was working with FreeNX for a long time and I made my own ftp server-side printing system to remote printing. This system put the file you want to print in user's ftp folder. In client side I put a java client checking the ftp folder and when there is new file to print there get it and open with the default program in client side. So you don't to extra configuration in client side (only install the java agent).

Anyway you system works really fine with vpn and because of this is safety.

Regards, 

2012/9/18 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Hi Ricardo,


On Di 18 Sep 2012 19:30:54 CEST Ricardo Díaz Martín wrote:

Hi,

I wonder if there is step-by-step guide to set up a simple x2go one server
ubuntu to print from the wan (without using vpn conection).

If you use this guide
http://www.x2go.org/doku.php/wiki:components:printing the server works
right if you are printing from the same net or connected
by vpn connection.

What's port have you open in the firewall? Is there some extra
configuration to do it? I tried opening ports in /usr/bin/x2gostartagent
(the specified and the next 100 more) but client side doesn't receive the
file after you print.

X2Go client-side printing as described on the wiki page you named should work out-of-the-box.

The printing works like this:

1. x2goclient creates a rev port forwarding tunnel (SSH) between server+client

2. x2gomountdirs (server script) mounts an SSHfs share through this tunnel. It mounts a client-side folder into the home directory of the user logged on to the X2Go server

3. you print... via a printer using the cups-x2go virtual driver

4. cups-x2go creates a ps file and a job ticket in ~x2goprint of the X2Go server.

5. the server-side command x2goprint copies the job and ps file to the SSHfs mounted share (so now, it is on the client side)

6. a watch thread in x2goclient wakes up and notices the incoming files (job + ps -> actually a compressed PDF)

7. x2goclient opens the printer dialog

Note that you have to enable X2Go printing in the session profile with x2goclient.

Hope that helps (with debugging).

Mike





--

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
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

_______________________________________________
X2Go-User mailing list
X2Go-User@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-user