Re: [X2go-dev] Extra functions requested in x2go
On Tue, 2010-06-22 at 17:10 +0200, Dick Kniep wrote: Hi List, Well, actually it is not that difficult to export from the server to the client. In fact, as the user directory is mounted and the user is logged on to the server and is executing our system, it is quite easy. From our system we write the file to the mounted directory and voila it is on the client. No problems with authorization either, because the user himself is writing to the mounted directory. The next part is trickier. If we want to start the application on the client we should have a command in x2go so that it signals the x2goclient to start the specific file. So no polling, but simply an extra command that is called on the server and sends a message to the client. Now this means a change in the client, and a protocol for the message that is used. Furthermore a command on the server should be there to signal the start of the program on the client. This could be something like x2gorunclient path-to-the-file snip Hmm . . . if you do have ssh in both directions, perhaps you could have the script reside on the client and have the server call it. So the client script would be: #!/bin/bash x2goscript ${1} and the server would be #!/bin/bash cp spreadsheet.xls ~/media/someshare/ ssh clientaddress x2goscript someshare/spreadsheet.xls If it can't be driven by the server, then I suppose one could create a daemon to poll the share directory for the appearance of new files. Just a couple of thoughts - John ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Re: [X2go-dev] Extra functions requested in x2go
On Tue, 2010-06-22 at 17:10 +0200, Dick Kniep wrote: Hi List, Well, actually it is not that difficult to export from the server to the client. In fact, as the user directory is mounted and the user is logged on to the server and is executing our system, it is quite easy. From our system we write the file to the mounted directory and voila it is on the client. No problems with authorization either, because the user himself is writing to the mounted directory. The next part is trickier. If we want to start the application on the client we should have a command in x2go so that it signals the x2goclient to start the specific file. So no polling, but simply an extra command that is called on the server and sends a message to the client. Now this means a change in the client, and a protocol for the message that is used. Furthermore a command on the server should be there to signal the start of the program on the client. This could be something like x2gorunclient path-to-the-file snip By the way, I'm not sure how well X2Go handles multiple client instances on the same client. I believe that is supported in the next release; I'm not sure if they step on each other in the current version - John ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Re: [X2go-dev] Extra functions requested in x2go
Hi LIst, A little more explanation. We publish our application from Linux, but NO desktop. So the user double-clicks an icon on his desktop and the application starts in its own window powered by x2go (currently GoGlobal). So for the user it is simply an application on his own windows/mac/linux desktop. In our application there is a menu option to export a list to Excel. So I would like to be able to do several things from our application: 1. Copy the file to the shared directory of the client 2. Start that file (based on the mime type) on the client I hope this clears things up. -Oorspronkelijk bericht- Van: John A. Sullivan III jsulli...@opensourcedevel.com Verzonden: ma 21-06-10 19:18:15 Aan: x2go-dev@lists.berlios.de; Onderwerp: Re: [X2go-dev] Extra functions requested in x2go On Mon, 2010-06-21 at 18:45 +0200, Dick Kniep wrote: snip To explain a little further: We have a Linux application written in wxPython with Postgresql and (mostly) Windows clients. Goglobal gives us the possibility to export a file to the client and subsequently start the file. The mime type of the file determines which program is started on the client. In the client a trigger should start the application with the file that is passed. snip And how would you see X2Go integrating into the process? Obviously there is a reason but, for example, why would you call X2Go rather than Excel or OOCalc to open a spreadsheet? Is it because the client is very limited and so, in effect, you want to do application publishing? Thanks - John ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev !DSPAM:4c1f9ed792821195416303! ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Re: [X2go-dev] Extra functions requested in x2go
On Tue, 2010-06-22 at 12:37 +0200, Dick Kniep wrote: Hi LIst, A little more explanation. We publish our application from Linux, but NO desktop. So the user double-clicks an icon on his desktop and the application starts in its own window powered by x2go (currently GoGlobal). So for the user it is simply an application on his own windows/mac/linux desktop. In our application there is a menu option to export a list to Excel. So I would like to be able to do several things from our application: 1. Copy the file to the shared directory of the client 2. Start that file (based on the mime type) on the client I hope this clears things up. snip Yes, I think I'm getting it. So your application runs on a a Linux X2Go Server. The user clicks the icon on their desktop and launches an X2Go Client which presents your application as a window on their physical desktop. You then want your application to be able to copy an excel spreadsheet to the physical computer where it will automatically open using whatever application on the physical computer is associated with the mime-type. Is that correct? If so, I'd imagine there is a way but it might be a little tricky. The full client (as opposed to the Firefox plugin I've been testing) allows one to automount local shares. I suppose one could do this to a consistent place (that might present some cross platform difficulties). I'm not sure how one would automate the process of copying to that local share mounted in /tmp/uid_media which is soft links to ~/media. I'm also not sure if there will be permissions issues trying to copy to the physical computer unless the copy is done as the user. I'm also not sure how one would get it to auto-open upon copy. I suppose one could write some sort of script to poll the directory where the files are stored. Certainly getting out of my depth now! Hope this helps at least a little bit - John ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Re: [X2go-dev] Extra functions requested in x2go
Dick Kniep schreef: Hi list, Thanks for the replies. They are helpful. To explain a little further: We have a Linux application written in wxPython with Postgresql and (mostly) Windows clients. Goglobal gives us the possibility to export a file to the client and subsequently start the file. The mime type of the file determines which program is started on the client. In the client a trigger should start the application with the file that is passed. I think you should talk to Heinz or Oleksandr. Maybe they have time to develop something like this. Another way would be is to develop this yourself and to ask Heinz and Oleksandr to add it to X2go. I've heard on Linuxtag they are making a git repository to make it more easy to work together. I don't think it's really difficult to add. With regards. Paul van der Vlis. -- http://www.vandervlis.nl/ ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Re: [X2go-dev] Extra functions requested in x2go
Hi list, Thanks for the replies. They are helpful. To explain a little further: We have a Linux application written in wxPython with Postgresql and (mostly) Windows clients. Goglobal gives us the possibility to export a file to the client and subsequently start the file. The mime type of the file determines which program is started on the client. In the client a trigger should start the application with the file that is passed. -Oorspronkelijk bericht- Van: Paul van der Vlis p...@vandervlis.nl Verzonden: za 19-06-10 22:14:25 Aan: x2go-dev@lists.berlios.de; Onderwerp: Re: [X2go-dev] Extra functions requested in x2go Dick Kniep schreef: Hi List, First of all,I am very impressed by the work you have done and would like to thank all involved. We are a company that provides a kind of CRM system over the net to our customers. (See www.lindix.nl, text is Dutch) Currently we use GoGlobal but we want to switch to x2go. However, there is a missing piece. In GoGlobal it is possible to start an application on the client by the use of the extension of the file. So I can write an Excel sheet in my application and subsequently start the file, the result is that a local session opens on the client with the Excel sheet. I know GoGlobal but I don't understand your question completely. Are you talking about a Windows client what shows a Linux application? Or are you using GoGlobal for a Windows application in a Linux environment? I realize that there are security issues here, but for our application this would be a real bonus. Is there any chance this could be implemented? If the number of hours involved is reasonable, we even would pay for that. I am sure Heinz or Oleksandr can help you if you want to pay something for development of OSS. But I wonder this is a problem, maybe you can tell a bit more about it. Normally you can do this kind of things with a .desktop-file in /usr/share/applications. There are some problems with the latest openoffice from backports, this command will help: update-desktop-database /usr/share/applications This is not X2go related. With regards, Paul van der Vlis. -- http://www.vandervlis.nl/ ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev !DSPAM:4c1d252189631344965704! ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Re: [X2go-dev] Extra functions requested in x2go
On Mon, 2010-06-21 at 18:45 +0200, Dick Kniep wrote: snip To explain a little further: We have a Linux application written in wxPython with Postgresql and (mostly) Windows clients. Goglobal gives us the possibility to export a file to the client and subsequently start the file. The mime type of the file determines which program is started on the client. In the client a trigger should start the application with the file that is passed. snip And how would you see X2Go integrating into the process? Obviously there is a reason but, for example, why would you call X2Go rather than Excel or OOCalc to open a spreadsheet? Is it because the client is very limited and so, in effect, you want to do application publishing? Thanks - John ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Re: [X2go-dev] Extra functions requested in x2go
On Fri, 2010-06-18 at 10:19 +0200, Dick Kniep wrote: Hi List, First of all,I am very impressed by the work you have done and would like to thank all involved. We are a company that provides a kind of CRM system over the net to our customers. (See www.lindix.nl, text is Dutch) Currently we use GoGlobal but we want to switch to x2go. However, there is a missing piece. In GoGlobal it is possible to start an application on the client by the use of the extension of the file. So I can write an Excel sheet in my application and subsequently start the file, the result is that a local session opens on the client with the Excel sheet. I realize that there are security issues here, but for our application this would be a real bonus. Is there any chance this could be implemented? If the number of hours involved is reasonable, we even would pay for that. snip I'm not entirely sure but you may be able to do this yourself. I can think of two possible ways but I have tried neither. It is possible to start a specific application rather than a destkop. If one started something like Konqueror or Nautilus, I wonder what would happen when one clicked on a file to open it. It may very well open in the associated application but I'm not sure. If you wanted more granularity, i.e., to pass a specific file rather than searching through a file manager, you may be able to adapt the scripts yourself. It is the beauty of open source. X2Go is largely a collection of bash and perl scripts that tie together various technologies (the NX libraries, ssh, pulseaudio, sshfs, etc.). Perhaps you could add some kind of case statement or other branch logic to parse the passed file for the extension and then launch an application based thereon, e.g., EXT=${1%.*} if [ ${EXT} = .xls ];then COMMAND=/usr/bin/oocalc ${1} elif [ ${EXT} = .odt ];then COMMAND=/usr/bin/oowriter ${1} . . . fi I'm just guessing at the syntax and do not know if it is possible but we have been able to highly customize our X2Go scripts for our very specific environment. I recently posted a scratch sheet to this list on what we found as we investigated the process X2Go undergoes to start and stop sessions. It describes what scripts run when. Good luck - John ___ X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev