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:printingthe 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.
Using ubuntu stable x2go ppa in ubuntu 12.04 x64
Thanks in advance Ricardo Díaz
El 18/09/2012 02:30 p.m., Ricardo Díaz Martín escribió:
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.
Using ubuntu stable x2go ppa in ubuntu 12.04 x64
Thanks in advance Ricardo Díaz
In the client you must open ssh port, because the server X2GO transmit or copy the file to the client using sshfs.
Salu2. Mario.
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:
x2goclient creates a rev port forwarding tunnel (SSH) between server+client
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
you print... via a printer using the cups-x2go virtual driver
cups-x2go creates a ps file and a job ticket in ~x2goprint of the
X2Go server.
the server-side command x2goprint copies the job and ps file to the
SSHfs mounted share (so now, it is on the client side)
a watch thread in x2goclient wakes up and notices the incoming
files (job + ps -> actually a compressed PDF)
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.xf...
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<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:
x2goclient creates a rev port forwarding tunnel (SSH) between server+client
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
you print... via a printer using the cups-x2go virtual driver
cups-x2go creates a ps file and a job ticket in ~x2goprint of the X2Go server.
the server-side command x2goprint copies the job and ps file to the SSHfs mounted share (so now, it is on the client side)
a watch thread in x2goclient wakes up and notices the incoming files (job + ps -> actually a compressed PDF)
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<mike.gabriel@das-netzwerkteam.de>, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.**de/freebusy/m.gabriel%40das-** netzwerkteam.de.xfb<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
Hi Ricardo,
On Mi 19 Sep 2012 07:30:50 CEST Ricardo Díaz Martín wrote:
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 may not have been clear enough. If you can reach your X2Go Server
via SSH, you do not need VPN for client-side folder sharing,
server-to-client audio, client-side printing. All these connection
protocols (pulse for audio, SSHfs for client-side foldersharing and
printing) are handled through this one SSH connection from client to
server.
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).
Something very similar happens in X2Go. I am not sure what is going
wrong with your setup, but for me here it works out-of-the-box.
Please set debug log level in /etc/cups/cups-x2go.conf and
/etc/x2go/x2goserver.conf and post your syslog output to me privately,
maybe we can narrow things down.
Greets, 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.xf...