Re: [X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-24 Thread Milan Knížek
John,

thanks for quite a long description, I will try to look into it.

regards,

Milan
-- 

John A. Sullivan III píše v Čt 22. 07. 2010 v 09:43 -0400:
> On Wed, 2010-07-21 at 06:12 +0200, Milan Knížek wrote:
> > Mike Gabriel píše v Út 13. 07. 2010 v 13:02 +0200:
> > > Hi there,
> > > 
> > Hello,
> > > 2.
> > > When suspending an x2go session the local shared directory gets  
> > > unmounted properly on the server, but the desktop link (GNOME) remains  
> > > on the desktop. After having resumed a session the desktop link is  
> > > still there but it is invalid. I have to remove it manually, to get  
> > > rid of it.
> > Similar here:
> > Archlinux: x2goserver-one 3.0.1_5-2, GNOME 2.30.2
> > Ubuntu Lucid: x2goclient-gtk 3.01-8
> > 
> > The shared dir from client is mounted properly to /tmp/, a symlink
> > created in $HOME/media linking to /tmp/mu_media.
> > 
> > Additionally, there is a file:
> > $ cat $HOME/Desktop/_home_mu\(sshfs-disk\) 
> > /tmp/mu_media/_home_mu
> > mu-50-1279683154_stDGNOME_dp32
> > 
> > but this second file is unrecognised by GNOME - no applications
> > assigned. Do I need to install the GNOME addons for x2go (these seems to
> > be missing in Arch AUR repository).
> > 
> > Anyway, after logout from the session, the two above files remain in the
> > user's directory and must be deleted manually.
> > 
> > Regards,
> > Milan
> > 
> I believe this is handled by the /usr/bin/x2goumount_session perl
> script.  You might add some debugging to see where it is breaking.  I
> believe the general process is something like:
> 
> x2goumount_session first gets the display for the session in the format
> |50| and then a list of mounts for the session in the format:
> 
> 127.0.0.1 | /tmp/spool_simple1/simple1-50-1267649844_stDKDE_dp24
> 
> It next dumps a copy of /etc/mtab into an array.
> 
> It then loops through the list of mounts.
> 
> Within that loop, it loops through the contents of /etc/mtab to see if
> there is an sshfs mount which matches the mount listed in the database.
> 
> If it finds a match, it stores the remote device (e.g.,
> jsulli...@127.0.0.1:/home/jsullivan/) for the sshfs in a variable named
> remote and then breaks out of the inner loop. It then attempts to umount
> the mount point retrieved from the database. If it fails, it generates
> an error message to the user and continues with the next item in the
> outer loop.
> 
> Whether or not it found anything in mtab, as long as it did not error
> when trying to unmount, it tries to clean up any artifacts from the
> session. It deletes the device icons from the user's Desktop directory.
> These devices have the format of a modification of the remote variable
> stored above ("/" replaced with "_") followed by any of (sshfs-disk),
> (sshfs-removable), or (sshfs-cdrom). It then calls sudo x2gopgwrapper
> deletemount passing it the session name and the mount point which
> deletes the entry from the mounts database table.
> 
> 
> ___
> X2go-dev mailing list
> X2go-dev@lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/x2go-dev
> 

-- 
Milan Knizek
knizek (dot) confy (at) volny (dot) cz
http://www.milan-knizek.net - About linux and photography (Czech
language only)

___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-22 Thread John A. Sullivan III
On Wed, 2010-07-21 at 06:12 +0200, Milan Knížek wrote:
> Mike Gabriel píše v Út 13. 07. 2010 v 13:02 +0200:
> > Hi there,
> > 
> Hello,
> > 2.
> > When suspending an x2go session the local shared directory gets  
> > unmounted properly on the server, but the desktop link (GNOME) remains  
> > on the desktop. After having resumed a session the desktop link is  
> > still there but it is invalid. I have to remove it manually, to get  
> > rid of it.
> Similar here:
> Archlinux: x2goserver-one 3.0.1_5-2, GNOME 2.30.2
> Ubuntu Lucid: x2goclient-gtk 3.01-8
> 
> The shared dir from client is mounted properly to /tmp/, a symlink
> created in $HOME/media linking to /tmp/mu_media.
> 
> Additionally, there is a file:
> $ cat $HOME/Desktop/_home_mu\(sshfs-disk\) 
> /tmp/mu_media/_home_mu
> mu-50-1279683154_stDGNOME_dp32
> 
> but this second file is unrecognised by GNOME - no applications
> assigned. Do I need to install the GNOME addons for x2go (these seems to
> be missing in Arch AUR repository).
> 
> Anyway, after logout from the session, the two above files remain in the
> user's directory and must be deleted manually.
> 
> Regards,
> Milan
> 
I believe this is handled by the /usr/bin/x2goumount_session perl
script.  You might add some debugging to see where it is breaking.  I
believe the general process is something like:

x2goumount_session first gets the display for the session in the format
|50| and then a list of mounts for the session in the format:

127.0.0.1 | /tmp/spool_simple1/simple1-50-1267649844_stDKDE_dp24

It next dumps a copy of /etc/mtab into an array.

It then loops through the list of mounts.

Within that loop, it loops through the contents of /etc/mtab to see if
there is an sshfs mount which matches the mount listed in the database.

If it finds a match, it stores the remote device (e.g.,
jsulli...@127.0.0.1:/home/jsullivan/) for the sshfs in a variable named
remote and then breaks out of the inner loop. It then attempts to umount
the mount point retrieved from the database. If it fails, it generates
an error message to the user and continues with the next item in the
outer loop.

Whether or not it found anything in mtab, as long as it did not error
when trying to unmount, it tries to clean up any artifacts from the
session. It deletes the device icons from the user's Desktop directory.
These devices have the format of a modification of the remote variable
stored above ("/" replaced with "_") followed by any of (sshfs-disk),
(sshfs-removable), or (sshfs-cdrom). It then calls sudo x2gopgwrapper
deletemount passing it the session name and the mount point which
deletes the entry from the mounts database table.


___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-20 Thread Milan Knížek
Mike Gabriel píše v Út 13. 07. 2010 v 13:02 +0200:
> Hi there,
> 
Hello,
> 2.
> When suspending an x2go session the local shared directory gets  
> unmounted properly on the server, but the desktop link (GNOME) remains  
> on the desktop. After having resumed a session the desktop link is  
> still there but it is invalid. I have to remove it manually, to get  
> rid of it.
Similar here:
Archlinux: x2goserver-one 3.0.1_5-2, GNOME 2.30.2
Ubuntu Lucid: x2goclient-gtk 3.01-8

The shared dir from client is mounted properly to /tmp/, a symlink
created in $HOME/media linking to /tmp/mu_media.

Additionally, there is a file:
$ cat $HOME/Desktop/_home_mu\(sshfs-disk\) 
/tmp/mu_media/_home_mu
mu-50-1279683154_stDGNOME_dp32

but this second file is unrecognised by GNOME - no applications
assigned. Do I need to install the GNOME addons for x2go (these seems to
be missing in Arch AUR repository).

Anyway, after logout from the session, the two above files remain in the
user's directory and must be deleted manually.

Regards,
Milan

-- 
Milan Knizek
knizek (dot) confy (at) volny (dot) cz
http://www.milan-knizek.net - About linux and photography (Czech
language only)

___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-14 Thread Mike Gabriel

Hi there,

I will split the thread up into to parts...

On Mi 14 Jul 2010 07:51:23 CEST Gerry Reno wrote:


On 07/14/2010 01:12 AM, Gerry Reno wrote:

On 07/14/2010 12:38 AM, Gerry Reno wrote:

On 07/13/2010 07:02 AM, Mike Gabriel wrote:

Hi there,

testing the heuler x2go packages...

Client system: Debian squeeze
Server system: Ubuntu Lucid

1.
When sharing a local folder it gets mounted properly on the  
client, but the symlinks in ~/media look weird:


m...@vidar:~/media$ tree -L 2
.
|
|`- cd
|
|`- disk
|   |
|   `- _home_m.gabriel_test
|
`- rm

Is this intended?


I looked into the x2gomountdirs script and this is intended...

  cd -> client-side CD-ROM
  disk -> client-side Hard-Disk
  rm -> client-side Removable Media

For people that work with a unix shell the short terms ,,cd'' and  
,,rm'' are really confusing (cd=Change Directory, rm=Remove File). I  
wish, x2go would be more verbose here:


m...@vidar:~/media$ tree -L 2
.
|
|`- CD+DVD-Rom
|
|`- Locally-Shared-Folder
|   |
|   `- _home_m.gabriel_test
|
`- Removable-Media

It might also be nice to have a config file for x2gomountdirs so that  
the user can customize these names...


Greets,
Mike


--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

eMail-LeseSchreibStunde: wochentags 8h-10h
mail: m.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-13 Thread Gerry Reno

On 07/14/2010 01:12 AM, Gerry Reno wrote:

On 07/14/2010 12:38 AM, Gerry Reno wrote:

On 07/13/2010 07:02 AM, Mike Gabriel wrote:

Hi there,

testing the heuler x2go packages...

Client system: Debian squeeze
Server system: Ubuntu Lucid

1.
When sharing a local folder it gets mounted properly on the client, 
but the symlinks in ~/media look weird:


m...@vidar:~/media$ tree -L 2
.
|
|`- cd
|
|`- disk
|   |
|   `- _home_m.gabriel_test
|
`- rm

Is this intended?

2.
When suspending an x2go session the local shared directory gets 
unmounted properly on the server, but the desktop link (GNOME) 
remains on the desktop. After having resumed a session the desktop 
link is still there but it is invalid. I have to remove it manually, 
to get rid of it.


Greets,
Mike



Mike,
  I tried duplicating your issue but did not see this problem.  I'm 
using Lucid on both sides and with a GNOME desktop I could suspend 
the session and then reconnect to it later.  The shared folder was no 
longer mounted on the desktop and I had to remount it and it mounted 
successfully.  I did not see any type of link problems while doing 
this.  This was using server 3.01-9 and client 3.01-11.


HTH,
Gerry

My only other thought about your links problem is that somehow they 
had become owned by the wrong user.


Gerry


Mike,
  I might have found a way to reproduce what you saw.

  If you Reconnect to a Terminated session that had a mounted share it 
will start a new session but there is a ghost mount in the new session 
from the previous terminated session.  This didn't happen on a suspended 
session only after I terminated a session then clicked on Reconnect.


Gerry


___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-13 Thread Gerry Reno

On 07/14/2010 12:38 AM, Gerry Reno wrote:

On 07/13/2010 07:02 AM, Mike Gabriel wrote:

Hi there,

testing the heuler x2go packages...

Client system: Debian squeeze
Server system: Ubuntu Lucid

1.
When sharing a local folder it gets mounted properly on the client, 
but the symlinks in ~/media look weird:


m...@vidar:~/media$ tree -L 2
.
|
|`- cd
|
|`- disk
|   |
|   `- _home_m.gabriel_test
|
`- rm

Is this intended?

2.
When suspending an x2go session the local shared directory gets 
unmounted properly on the server, but the desktop link (GNOME) 
remains on the desktop. After having resumed a session the desktop 
link is still there but it is invalid. I have to remove it manually, 
to get rid of it.


Greets,
Mike



Mike,
  I tried duplicating your issue but did not see this problem.  I'm 
using Lucid on both sides and with a GNOME desktop I could suspend the 
session and then reconnect to it later.  The shared folder was no 
longer mounted on the desktop and I had to remount it and it mounted 
successfully.  I did not see any type of link problems while doing 
this.  This was using server 3.01-9 and client 3.01-11.


HTH,
Gerry

My only other thought about your links problem is that somehow they had 
become owned by the wrong user.


Gerry

___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-13 Thread Gerry Reno

On 07/13/2010 07:02 AM, Mike Gabriel wrote:

Hi there,

testing the heuler x2go packages...

Client system: Debian squeeze
Server system: Ubuntu Lucid

1.
When sharing a local folder it gets mounted properly on the client, 
but the symlinks in ~/media look weird:


m...@vidar:~/media$ tree -L 2
.
|
|`- cd
|
|`- disk
|   |
|   `- _home_m.gabriel_test
|
`- rm

Is this intended?

2.
When suspending an x2go session the local shared directory gets 
unmounted properly on the server, but the desktop link (GNOME) remains 
on the desktop. After having resumed a session the desktop link is 
still there but it is invalid. I have to remove it manually, to get 
rid of it.


Greets,
Mike



Mike,
  I tried duplicating your issue but did not see this problem.  I'm 
using Lucid on both sides and with a GNOME desktop I could suspend the 
session and then reconnect to it later.  The shared folder was no longer 
mounted on the desktop and I had to remount it and it mounted 
successfully.  I did not see any type of link problems while doing 
this.  This was using server 3.01-9 and client 3.01-11.


HTH,
Gerry

___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


Re: [X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-13 Thread Mike Gabriel

2.
When suspending an x2go session the local shared directory gets  
unmounted properly on the server, but the desktop link (GNOME)  
remains on the desktop. After having resumed a session the desktop  
link is still there but it is invalid. I have to remove it manually,  
to get rid of it.


neither is it possible to reconnect the same local folder via sshfs.  
However, it is possible to share another local folder via the x2go  
client.


Reproduce:

  o login to x2go server that runs GNOME (this might not be GNOME specific)
  o share a local folder manually via x2goclient (e.g. ~/test)
  o local folder appears in x2go session (desktop icon)
  o disconnect from the session (suspend)
  o close x2goclient
  o start x2goclient again
  o resume former session
  o -> desktop icon still there, but invalid!!!
  o share formerly shared folder again (~/test)
  o check success with the mount command  (mountpoint does not appear...)
  o -> sharing the same local folder again seems to fail!!!
  o share another local folder (e.g. ~/test2)
  o sharing another local folder works for me...

Can anyone confirm on this?

For the wishlist: the server commands that run in the background  
should produce at least some debug information in /var/log/syslog...  
(this is also for terminal server security: the admin of a system  
should have the possibility to see which user mounts local shares to  
the server!!!)


Greets,
Mike

--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

eMail-LeseSchreibStunde: wochentags 8h-10h
mail: m.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev


[X2go-dev] BUG: when sharing local folders ~/media symlinks not as expected

2010-07-13 Thread Mike Gabriel

Hi there,

testing the heuler x2go packages...

Client system: Debian squeeze
Server system: Ubuntu Lucid

1.
When sharing a local folder it gets mounted properly on the client,  
but the symlinks in ~/media look weird:


m...@vidar:~/media$ tree -L 2
.
|
|`- cd
|
|`- disk
|   |
|   `- _home_m.gabriel_test
|
`- rm

Is this intended?

2.
When suspending an x2go session the local shared directory gets  
unmounted properly on the server, but the desktop link (GNOME) remains  
on the desktop. After having resumed a session the desktop link is  
still there but it is invalid. I have to remove it manually, to get  
rid of it.


Greets,
Mike

--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

eMail-LeseSchreibStunde: wochentags 8h-10h
mail: m.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
___
X2go-dev mailing list
X2go-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/x2go-dev