[X2Go-Commits] [x2goserver] 01/13: New bin:pkg: x2goserver-desktopsharing. Move all desktop sharing integration logic from x2godesktopsharing to x2goserver src:pkg.
git-admin at x2go.org
git-admin at x2go.org
Wed Nov 14 12:24:31 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goserver.
commit aaa17c42d5b26c561ed9781d6f6dec796cf0429a
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Wed Nov 14 10:33:27 2018 +0100
New bin:pkg: x2goserver-desktopsharing. Move all desktop sharing integration logic from x2godesktopsharing to x2goserver src:pkg.
---
Makefile | 7 +
debian/changelog | 2 +
debian/control | 28 +++
debian/copyright | 16 ++
debian/po/da.po | 181 +++++++++++++++++-
debian/po/de.po | 202 ++++++++++++++++++++-
debian/po/fi.po | 170 ++++++++++++++++-
debian/po/fr.po | 172 +++++++++++++++++-
debian/po/templates.pot | 172 +++++++++++++++++-
debian/po/tr.po | 168 ++++++++++++++++-
debian/templates | 84 +++++++++
debian/x2goserver-desktopsharing.config | 75 ++++++++
debian/x2goserver-desktopsharing.install | 4 +
debian/x2goserver-desktopsharing.manpages | 1 +
debian/x2goserver-desktopsharing.postinst | 101 +++++++++++
debian/x2goserver-desktopsharing.postrm | 44 +++++
x2goserver-desktopsharing/Makefile | 93 ++++++++++
.../VERSION.x2goserver-desktopsharing | 1 +
.../bin/x2goresume-desktopsharing | 39 ++++
.../bin/x2gosuspend-desktopsharing | 34 ++++
.../bin/x2goterminate-desktopsharing | 60 ++++++
.../etc/desktopsharing/settings | 2 +
.../man/man8/x2goresume-desktopsharing.8 | 28 +++
.../man/man8/x2gosuspend-desktopsharing.8 | 37 ++++
.../man/man8/x2goterminate-desktopsharing.8 | 30 +++
.../x2goserver-desktopsharing.features | 36 ++++
x2goserver.spec | 39 ++++
27 files changed, 1801 insertions(+), 25 deletions(-)
diff --git a/Makefile b/Makefile
index 31ad093..f100925 100755
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ build_man2html:
$(MAKE) -C x2goserver-extensions $@
$(MAKE) -C x2goserver-xsession $@
$(MAKE) -C x2goserver-fmbindings $@
+ $(MAKE) -C x2goserver-desktopsharing $@
clean:
-$(MAKE) -f Makefile.perl clean
@@ -37,6 +38,7 @@ clean:
$(MAKE) -C x2goserver-extensions $@
$(MAKE) -C x2goserver-xsession $@
$(MAKE) -C x2goserver-fmbindings $@
+ $(MAKE) -C x2goserver-desktopsharing $@
distclean:
-$(MAKE) -f Makefile.perl realclean
@@ -48,6 +50,7 @@ distclean:
$(MAKE) -C x2goserver-extensions clean
$(MAKE) -C x2goserver-xsession clean
$(MAKE) -C x2goserver-fmbindings clean
+ $(MAKE) -C x2goserver-desktopsharing $@
build-arch:
$(MAKE) -C x2goserver-common $@
@@ -58,6 +61,7 @@ build-arch:
$(MAKE) -C x2goserver-extensions $@
$(MAKE) -C x2goserver-xsession $@
$(MAKE) -C x2goserver-fmbindings $@
+ $(MAKE) -C x2goserver-desktopsharing $@
build-indep:
$(PERL) Makefile.PL INSTALLDIRS=$(PERL_INSTALLDIRS)
@@ -70,6 +74,7 @@ build-indep:
$(MAKE) -C x2goserver-extensions $@
$(MAKE) -C x2goserver-xsession $@
$(MAKE) -C x2goserver-fmbindings $@
+ $(MAKE) -C x2goserver-desktopsharing $@
install:
$(MAKE) -f Makefile.perl pure_install
@@ -81,11 +86,13 @@ install:
$(MAKE) -C x2goserver-extensions $@
$(MAKE) -C x2goserver-xsession $@
$(MAKE) -C x2goserver-fmbindings $@
+ $(MAKE) -C x2goserver-desktopsharing $@
uninstall:
$(MAKE) -C x2goserver-printing $@
$(MAKE) -C x2goserver-x2goagent $@
$(MAKE) -C x2goserver-xsession $@
+ $(MAKE) -C x2goserver-desktopsharing $@
$(MAKE) -C x2goserver-fmbindings $@
$(MAKE) -C x2goserver-extensions $@
$(MAKE) -f Makefile.perl uninstall
diff --git a/debian/changelog b/debian/changelog
index bc8915f..1347e27 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ x2goserver (4.1.0.3-0x2go1) UNRELEASED; urgency=medium
* New upstream version (4.1.0.3)
- x2goserver.service: Add Documentation= key.
- x2goserver/lib/x2gocheckport: chmod a+x.
+ - New bin:pkg: x2goserver-desktopsharing. Move all desktop sharing
+ integration logic from x2godesktopsharing to x2goserver src:pkg.
* debian/x2goserver*.dirs:
+ Let dirs have a trailing slash in their path (for the human eye merely).
* debian/copyright:
diff --git a/debian/control b/debian/control
index 5b79c65..b275e11 100644
--- a/debian/control
+++ b/debian/control
@@ -333,3 +333,31 @@ Description: X2Go Server (Xsession runner)
Amongst others the parsing of Xsession scripts will enable
desktop-profiles, ssh-agent startups, gpgagent startups and many more
Xsession related features on X2Go session login automagically.
+
+Package: x2goserver-desktopsharing
+Architecture: any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends},
+ x2goserver (>= 4.0.0.0-0~),
+ x2godesktopsharing (>= 3.2.0.0~),
+Breaks: x2godesktopsharing (<< 3.2.0.0~),
+Replaces: x2godesktopsharing (<< 3.2.0.0~),
+Description: Share X11 desktops with other users via X2Go
+ X2Go is a server based computing environment with
+ - session resuming
+ - low bandwidth support
+ - session brokerage support
+ - client side mass storage mounting support
+ - client-side printing support
+ - audio support
+ - authentication by smartcard and USB stick
+ .
+ X2Go Desktop Sharing is an X2Go add-on feature that allows a user to
+ grant other X2Go users access to the current session (shadow session
+ support). The user's current session may be an X2Go session itself or
+ simply a local X11 session.
+ .
+ This package contains all the integration and configuration logics
+ of a system-wide manageable desktop sharing setup.
+
diff --git a/debian/copyright b/debian/copyright
index 47f5f14..7d2f083 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -12,6 +12,7 @@ Files: X2Go/Config.pm
X2Go_in_progress_do_not_use/Server/DB/MySQL.pm
X2Go/Server/DB/SQLite3.pm
libx2go-server-db-perl/lib/libx2go-server-db-sqlite3-wrapper.pl
+ x2goserver-desktopsharing/share/x2gofeature.d/x2goserver-desktopsharing.features
x2goserver-extensions/share/x2gofeature.d/x2goserver-extensions.features
x2goserver-fmbindings/share/x2go/x2gofeature.d/x2goserver-fmbindings.features
x2goserver-printing/bin/x2goprint
@@ -141,6 +142,15 @@ Copyright: 2007-2015, X2Go Project - http://wiki.x2go.org
2012-2015, Oleksandr Shneyder <oleksandr.shneyder at obviously-nice.de>
License: GPL-2+
+Files: x2goserver-desktopsharing/bin/x2goresume-desktopsharing
+ x2goserver-desktopsharing/bin/x2gosuspend-desktopsharing
+ x2goserver-desktopsharing/bin/x2goterminate-desktopsharing
+Copyright: 2007-2015, X2Go Project - http:wiki.x2go.org
+ 2011-2015, Oleksandr Shneyder <oleksandr.shneyder at obviously-nice.de>
+ 2011-2015, Heinz-Markus Graesing <heinz-m.graesing at obviously-nice.de>
+ 2011-2015, Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+License: GPL-2+
+
Files: ChangeLog
INSTALL
Makefile
@@ -157,6 +167,12 @@ Files: ChangeLog
x2goserver-common/etc/x2goserver.conf
x2goserver-common/etc/x2gosql/sql
x2goserver-common/man/man5/x2goserver.conf.5
+ x2goserver-desktopsharing/etc/desktopsharing/settings
+ x2goserver-desktopsharing/Makefile
+ x2goserver-desktopsharing/VERSION.x2goserver-desktopsharing
+ x2goserver-desktopsharing/man/man8/x2goresume-desktopsharing.8
+ x2goserver-desktopsharing/man/man8/x2gosuspend-desktopsharing.8
+ x2goserver-desktopsharing/man/man8/x2goterminate-desktopsharing.8
x2goserver-extensions/Makefile
x2goserver-extensions/README.md
x2goserver-extensions/VERSION.x2goserver-extensions
diff --git a/debian/po/da.po b/debian/po/da.po
index b059d90..f4fc695 100644
--- a/debian/po/da.po
+++ b/debian/po/da.po
@@ -15,10 +15,11 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: x2goserver at packages.debian.org\n"
-"POT-Creation-Date: 2012-09-20 23:46+0200\n"
+"POT-Creation-Date: 2018-11-14 10:31+0100\n"
"PO-Revision-Date: 2014-11-03 11:50+0100\n"
"Last-Translator: Mark Pedersen-Cook <mark at fleten.net>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
@@ -48,12 +49,12 @@ msgstr ""
#: ../templates:1001
msgid ""
"Please follow these PostgreSQL DB upgrade instructions before you continue "
-"using your X2Go Server: "
-"/usr/share/doc/x2goserver/README.upgrade-pgsql-database.gz"
+"using your X2Go Server: /usr/share/doc/x2goserver/README.upgrade-pgsql-"
+"database.gz"
msgstr ""
"Venligst følg disse PostgreSQL DB opgraderings instruktioner før du "
-"fortsætter med at bruge din X2Go Server: "
-"/usr/share/doc/x2goserver/README.upgrade-pgsql-database.gz"
+"fortsætter med at bruge din X2Go Server: /usr/share/doc/x2goserver/README."
+"upgrade-pgsql-database.gz"
#. Type: text
#. Description
@@ -68,8 +69,8 @@ msgid ""
"You are upgrading from an X2Go Server version (< 4.1.0.0). Between 4.1.0.0 "
"and 4.0.0.x the package structure has undergone a major change."
msgstr ""
-"Du opgradere fra en X2Go Server Version (<4.1.0.0). Imellem 4.1.0.0 og "
-"4.0.0.x har pakke strukturen fået store ændringer."
+"Du opgradere fra en X2Go Server Version (<4.1.0.0). Imellem 4.1.0.0 og 4.0.0."
+"x har pakke strukturen fået store ændringer."
#. Type: text
#. Description
@@ -80,3 +81,169 @@ msgid ""
msgstr ""
"Bemærk, at det meste af Perl coden i X2Go Server er blevet flyttet ind i sin "
"egen Perl API X2Go::Server."
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Create group for X2Go Desktop Sharing now?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing users gain the privilege to share one another's X2Go/"
+"X11 desktop session by being members of a common POSIX group. The POSIX "
+"group being used for this can be configured system-wide and on a per user "
+"basis."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing's user configuration you can adjust what group to "
+"use for this later on. Here, you are asked for the system-wide default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created now, you should assign this desktop sharing "
+"privilege to an already existing group on the next screen."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created / not assigned, users will not be able to share "
+"X2Go/X11 desktop sessions with each other."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Use already existing groups for X2Go Desktop Sharing?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid ""
+"If a group appropriate for being assigned the desktop sharing privilege has "
+"already been created (e.g. in an LDAP user/group database) then you can "
+"specify this group name on the next screen."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "Assign X2Go Desktop Sharing privilege to POSIX group:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid ""
+"Please specify the name of the POSIX group that you want to assign the X2Go "
+"Desktop Sharing privilege to."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "If you leave this empty, the \"root\" group will be used."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "Delete the group that was formerly used for this?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "The group for the X2Go Desktop Sharing privilege has been modified."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid ""
+"Please specify whether the old group should be deleted. If unsure, keep the "
+"formerly used group and manually investigate later."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid "Non-existing group"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid ""
+"The given group does not exist on this system. You should specify an already "
+"existing group."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid "Auto-start X2Go Desktop Sharing applet on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"For an X2Go/X11 desktop session to be accessible via X2Go Desktop Sharing, "
+"the X2Go Desktop Sharing applet needs to be running. It advertises the users "
+"X2Go/X11 session through an access controlled socket to X2Go client "
+"applications."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"The applet can be configured to start automatically on desktop session "
+"startup, but for security reasons this is not the default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid "Auto-activate X2Go Desktop Sharing on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"The X2Go Desktop Sharing applet normally starts in non-sharing mode (users "
+"that request to share the running desktop session get auto-rejected). The "
+"user normally has to actively activate the sharing mode in the applet's GUI."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"If you enabled the auto-start option in the previous screen, you can "
+"additionally choose here, if desktop sharing shall be activated when the "
+"X2Go Desktop Sharing applet is auto-started at session logon."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"For security and data protection reasons, this is not the default. Use this "
+"auto-activation feature only in appropriate environments (e.g. on class room "
+"computers)."
+msgstr ""
diff --git a/debian/po/de.po b/debian/po/de.po
index 6377a73..9aa8c6f 100644
--- a/debian/po/de.po
+++ b/debian/po/de.po
@@ -15,7 +15,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: x2goserver at packages.debian.org\n"
-"POT-Creation-Date: 2012-09-20 23:46+0200\n"
+"POT-Creation-Date: 2018-11-14 10:31+0100\n"
"PO-Revision-Date: 2012-09-20 23:48+0100\n"
"Last-Translator: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -33,14 +33,25 @@ msgstr "X2Go Server / PostgreSQL Upgrade"
#. Type: text
#. Description
#: ../templates:1001
-msgid "You have configured X2Go Server with PostgreSQL as session DB backend and you are upgrading x2goserver from a version minor to 3.1.0.0."
-msgstr "Ihr X2Go Server nutzt eine PostgreSQL Datenbank, um X2Go Sitzungsdaten zu verwalten, und Sie aktualisieren gerade das Paket x2goserver von einer Version kleiner als 3.1.0.0."
+msgid ""
+"You have configured X2Go Server with PostgreSQL as session DB backend and "
+"you are upgrading x2goserver from a version minor to 3.1.0.0."
+msgstr ""
+"Ihr X2Go Server nutzt eine PostgreSQL Datenbank, um X2Go Sitzungsdaten zu "
+"verwalten, und Sie aktualisieren gerade das Paket x2goserver von einer "
+"Version kleiner als 3.1.0.0."
#. Type: text
#. Description
#: ../templates:1001
-msgid "Please follow these PostgreSQL DB upgrade instructions before you continue using your X2Go Server: /usr/share/doc/x2goserver/README.upgrade-pgsql-database.gz"
-msgstr "Bitte befolgen Sie daher die PostgreSQL-Aktualisierungshinweise bevor sie mit der Weiternutzung Ihres X2Go Servers fortfahren: /usr/share/doc/x2goserver/README.upgrade-pgsl-database.gz"
+msgid ""
+"Please follow these PostgreSQL DB upgrade instructions before you continue "
+"using your X2Go Server: /usr/share/doc/x2goserver/README.upgrade-pgsql-"
+"database.gz"
+msgstr ""
+"Bitte befolgen Sie daher die PostgreSQL-Aktualisierungshinweise bevor sie "
+"mit der Weiternutzung Ihres X2Go Servers fortfahren: /usr/share/doc/"
+"x2goserver/README.upgrade-pgsl-database.gz"
#. Type: text
#. Description
@@ -51,12 +62,185 @@ msgstr "X2Go Server Upgrade"
#. Type: text
#. Description
#: ../templates:2001
-msgid "You are upgrading from an X2Go Server version (< 4.1.0.0). Between 4.1.0.0 and 4.0.0.x the package structure has undergone a major change."
-msgstr "Sie aktualisieren X2Go Server von einer Version (< 4.1.0.0). Seit 4.0.0.x wurde das Paket einigen strukturellen �nderungen unterzogen."
+msgid ""
+"You are upgrading from an X2Go Server version (< 4.1.0.0). Between 4.1.0.0 "
+"and 4.0.0.x the package structure has undergone a major change."
+msgstr ""
+"Sie aktualisieren X2Go Server von einer Version (< 4.1.0.0). Seit 4.0.0.x "
+"wurde das Paket einigen strukturellen �nderungen unterzogen."
#. Type: text
#. Description
#: ../templates:2001
-msgid "Note that most of the Perl code in X2Go Server has been moved into its own Perl API X2Go::Server."
-msgstr "Der gr��te Anteil des Perl Codes in X2Go Server ist migriert worden in die neue Perl API X2Go::Server."
+msgid ""
+"Note that most of the Perl code in X2Go Server has been moved into its own "
+"Perl API X2Go::Server."
+msgstr ""
+"Der gr��te Anteil des Perl Codes in X2Go Server ist migriert worden in die "
+"neue Perl API X2Go::Server."
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Create group for X2Go Desktop Sharing now?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing users gain the privilege to share one another's X2Go/"
+"X11 desktop session by being members of a common POSIX group. The POSIX "
+"group being used for this can be configured system-wide and on a per user "
+"basis."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing's user configuration you can adjust what group to "
+"use for this later on. Here, you are asked for the system-wide default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created now, you should assign this desktop sharing "
+"privilege to an already existing group on the next screen."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created / not assigned, users will not be able to share "
+"X2Go/X11 desktop sessions with each other."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Use already existing groups for X2Go Desktop Sharing?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid ""
+"If a group appropriate for being assigned the desktop sharing privilege has "
+"already been created (e.g. in an LDAP user/group database) then you can "
+"specify this group name on the next screen."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "Assign X2Go Desktop Sharing privilege to POSIX group:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid ""
+"Please specify the name of the POSIX group that you want to assign the X2Go "
+"Desktop Sharing privilege to."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "If you leave this empty, the \"root\" group will be used."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "Delete the group that was formerly used for this?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "The group for the X2Go Desktop Sharing privilege has been modified."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid ""
+"Please specify whether the old group should be deleted. If unsure, keep the "
+"formerly used group and manually investigate later."
+msgstr ""
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid "Non-existing group"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid ""
+"The given group does not exist on this system. You should specify an already "
+"existing group."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid "Auto-start X2Go Desktop Sharing applet on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"For an X2Go/X11 desktop session to be accessible via X2Go Desktop Sharing, "
+"the X2Go Desktop Sharing applet needs to be running. It advertises the users "
+"X2Go/X11 session through an access controlled socket to X2Go client "
+"applications."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"The applet can be configured to start automatically on desktop session "
+"startup, but for security reasons this is not the default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid "Auto-activate X2Go Desktop Sharing on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"The X2Go Desktop Sharing applet normally starts in non-sharing mode (users "
+"that request to share the running desktop session get auto-rejected). The "
+"user normally has to actively activate the sharing mode in the applet's GUI."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"If you enabled the auto-start option in the previous screen, you can "
+"additionally choose here, if desktop sharing shall be activated when the "
+"X2Go Desktop Sharing applet is auto-started at session logon."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"For security and data protection reasons, this is not the default. Use this "
+"auto-activation feature only in appropriate environments (e.g. on class room "
+"computers)."
+msgstr ""
diff --git a/debian/po/fi.po b/debian/po/fi.po
index acccf12..0752b23 100644
--- a/debian/po/fi.po
+++ b/debian/po/fi.po
@@ -15,15 +15,15 @@ msgid ""
msgstr ""
"Project-Id-Version: X2Go\n"
"Report-Msgid-Bugs-To: x2goserver at packages.debian.org\n"
-"POT-Creation-Date: 2012-09-20 23:46+0200\n"
+"POT-Creation-Date: 2018-11-14 10:31+0100\n"
"PO-Revision-Date: 2017-10-04 12:44+0300\n"
"Last-Translator: Martti Pitk�nen <martti at aplcomp.fi>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
+"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-15\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.5.4\n"
-"Language: fi\n"
#. Type: text
#. Description
@@ -77,3 +77,169 @@ msgid ""
msgstr ""
"Suurin osa X2Go Serverin Perl koodista on siirretty sen omaan hostiin Perl "
"API X2Go::Server."
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Create group for X2Go Desktop Sharing now?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing users gain the privilege to share one another's X2Go/"
+"X11 desktop session by being members of a common POSIX group. The POSIX "
+"group being used for this can be configured system-wide and on a per user "
+"basis."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing's user configuration you can adjust what group to "
+"use for this later on. Here, you are asked for the system-wide default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created now, you should assign this desktop sharing "
+"privilege to an already existing group on the next screen."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created / not assigned, users will not be able to share "
+"X2Go/X11 desktop sessions with each other."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Use already existing groups for X2Go Desktop Sharing?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid ""
+"If a group appropriate for being assigned the desktop sharing privilege has "
+"already been created (e.g. in an LDAP user/group database) then you can "
+"specify this group name on the next screen."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "Assign X2Go Desktop Sharing privilege to POSIX group:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid ""
+"Please specify the name of the POSIX group that you want to assign the X2Go "
+"Desktop Sharing privilege to."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "If you leave this empty, the \"root\" group will be used."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "Delete the group that was formerly used for this?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "The group for the X2Go Desktop Sharing privilege has been modified."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid ""
+"Please specify whether the old group should be deleted. If unsure, keep the "
+"formerly used group and manually investigate later."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid "Non-existing group"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid ""
+"The given group does not exist on this system. You should specify an already "
+"existing group."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid "Auto-start X2Go Desktop Sharing applet on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"For an X2Go/X11 desktop session to be accessible via X2Go Desktop Sharing, "
+"the X2Go Desktop Sharing applet needs to be running. It advertises the users "
+"X2Go/X11 session through an access controlled socket to X2Go client "
+"applications."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"The applet can be configured to start automatically on desktop session "
+"startup, but for security reasons this is not the default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid "Auto-activate X2Go Desktop Sharing on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"The X2Go Desktop Sharing applet normally starts in non-sharing mode (users "
+"that request to share the running desktop session get auto-rejected). The "
+"user normally has to actively activate the sharing mode in the applet's GUI."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"If you enabled the auto-start option in the previous screen, you can "
+"additionally choose here, if desktop sharing shall be activated when the "
+"X2Go Desktop Sharing applet is auto-started at session logon."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"For security and data protection reasons, this is not the default. Use this "
+"auto-activation feature only in appropriate environments (e.g. on class room "
+"computers)."
+msgstr ""
diff --git a/debian/po/fr.po b/debian/po/fr.po
index b4feaec..efdb41e 100644
--- a/debian/po/fr.po
+++ b/debian/po/fr.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: x2goserver at packages.debian.org\n"
-"POT-Creation-Date: 2012-09-20 23:46+0200\n"
+"POT-Creation-Date: 2018-11-14 10:31+0100\n"
"PO-Revision-Date: 2018-07-30 12:28+0200\n"
"Last-Translator: Jean-Pierre Giraud <jean-pierregiraud at neuf.fr>\n"
"Language-Team: French <debian-l10n-french at lists.debian.org>\n"
@@ -61,8 +61,8 @@ msgid ""
"and 4.0.0.x the package structure has undergone a major change."
msgstr ""
"Vous effectuez une mise à niveau à partir d'une version du serveur X2Go "
-"(<4.1.0.0). Entre les versions 4.0.0.x et 4.1.0.0, la structure du paquet "
-"a subi un changement majeur."
+"(<4.1.0.0). Entre les versions 4.0.0.x et 4.1.0.0, la structure du paquet a "
+"subi un changement majeur."
#. Type: text
#. Description
@@ -73,3 +73,169 @@ msgid ""
msgstr ""
"Veuillez noter que l'essentiel du code de Perl dans le serveur X2Go a migré "
"vers sa propre API Perl X2Go::Server."
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Create group for X2Go Desktop Sharing now?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing users gain the privilege to share one another's X2Go/"
+"X11 desktop session by being members of a common POSIX group. The POSIX "
+"group being used for this can be configured system-wide and on a per user "
+"basis."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing's user configuration you can adjust what group to "
+"use for this later on. Here, you are asked for the system-wide default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created now, you should assign this desktop sharing "
+"privilege to an already existing group on the next screen."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created / not assigned, users will not be able to share "
+"X2Go/X11 desktop sessions with each other."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Use already existing groups for X2Go Desktop Sharing?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid ""
+"If a group appropriate for being assigned the desktop sharing privilege has "
+"already been created (e.g. in an LDAP user/group database) then you can "
+"specify this group name on the next screen."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "Assign X2Go Desktop Sharing privilege to POSIX group:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid ""
+"Please specify the name of the POSIX group that you want to assign the X2Go "
+"Desktop Sharing privilege to."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "If you leave this empty, the \"root\" group will be used."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "Delete the group that was formerly used for this?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "The group for the X2Go Desktop Sharing privilege has been modified."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid ""
+"Please specify whether the old group should be deleted. If unsure, keep the "
+"formerly used group and manually investigate later."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid "Non-existing group"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid ""
+"The given group does not exist on this system. You should specify an already "
+"existing group."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid "Auto-start X2Go Desktop Sharing applet on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"For an X2Go/X11 desktop session to be accessible via X2Go Desktop Sharing, "
+"the X2Go Desktop Sharing applet needs to be running. It advertises the users "
+"X2Go/X11 session through an access controlled socket to X2Go client "
+"applications."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"The applet can be configured to start automatically on desktop session "
+"startup, but for security reasons this is not the default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid "Auto-activate X2Go Desktop Sharing on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"The X2Go Desktop Sharing applet normally starts in non-sharing mode (users "
+"that request to share the running desktop session get auto-rejected). The "
+"user normally has to actively activate the sharing mode in the applet's GUI."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"If you enabled the auto-start option in the previous screen, you can "
+"additionally choose here, if desktop sharing shall be activated when the "
+"X2Go Desktop Sharing applet is auto-started at session logon."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"For security and data protection reasons, this is not the default. Use this "
+"auto-activation feature only in appropriate environments (e.g. on class room "
+"computers)."
+msgstr ""
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
index 082ae26..752ca17 100644
--- a/debian/po/templates.pot
+++ b/debian/po/templates.pot
@@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
+# This file is distributed under the same license as the x2goserver package.
# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: x2goserver\n"
"Report-Msgid-Bugs-To: x2goserver at packages.debian.org\n"
-"POT-Creation-Date: 2012-09-20 23:46+0200\n"
+"POT-Creation-Date: 2018-11-14 10:31+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -61,3 +61,169 @@ msgid ""
"Note that most of the Perl code in X2Go Server has been moved into its own "
"Perl API X2Go::Server."
msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Create group for X2Go Desktop Sharing now?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing users gain the privilege to share one another's X2Go/"
+"X11 desktop session by being members of a common POSIX group. The POSIX "
+"group being used for this can be configured system-wide and on a per user "
+"basis."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing's user configuration you can adjust what group to "
+"use for this later on. Here, you are asked for the system-wide default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created now, you should assign this desktop sharing "
+"privilege to an already existing group on the next screen."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created / not assigned, users will not be able to share "
+"X2Go/X11 desktop sessions with each other."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Use already existing groups for X2Go Desktop Sharing?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid ""
+"If a group appropriate for being assigned the desktop sharing privilege has "
+"already been created (e.g. in an LDAP user/group database) then you can "
+"specify this group name on the next screen."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "Assign X2Go Desktop Sharing privilege to POSIX group:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid ""
+"Please specify the name of the POSIX group that you want to assign the X2Go "
+"Desktop Sharing privilege to."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "If you leave this empty, the \"root\" group will be used."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "Delete the group that was formerly used for this?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "The group for the X2Go Desktop Sharing privilege has been modified."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid ""
+"Please specify whether the old group should be deleted. If unsure, keep the "
+"formerly used group and manually investigate later."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid "Non-existing group"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid ""
+"The given group does not exist on this system. You should specify an already "
+"existing group."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid "Auto-start X2Go Desktop Sharing applet on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"For an X2Go/X11 desktop session to be accessible via X2Go Desktop Sharing, "
+"the X2Go Desktop Sharing applet needs to be running. It advertises the users "
+"X2Go/X11 session through an access controlled socket to X2Go client "
+"applications."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"The applet can be configured to start automatically on desktop session "
+"startup, but for security reasons this is not the default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid "Auto-activate X2Go Desktop Sharing on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"The X2Go Desktop Sharing applet normally starts in non-sharing mode (users "
+"that request to share the running desktop session get auto-rejected). The "
+"user normally has to actively activate the sharing mode in the applet's GUI."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"If you enabled the auto-start option in the previous screen, you can "
+"additionally choose here, if desktop sharing shall be activated when the "
+"X2Go Desktop Sharing applet is auto-started at session logon."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"For security and data protection reasons, this is not the default. Use this "
+"auto-activation feature only in appropriate environments (e.g. on class room "
+"computers)."
+msgstr ""
diff --git a/debian/po/tr.po b/debian/po/tr.po
index 72f8a4a..89241ec 100644
--- a/debian/po/tr.po
+++ b/debian/po/tr.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: x2goserver at packages.debian.org\n"
-"POT-Creation-Date: 2012-09-20 23:46+0200\n"
+"POT-Creation-Date: 2018-11-14 10:31+0100\n"
"PO-Revision-Date: 2014-11-19 18:25+0000\n"
"Last-Translator: Kaan Özdinçer <kaanozdincer at gmail.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -69,3 +69,169 @@ msgid ""
msgstr ""
"X2Go Sunucusunun Perl kodunun çoğu kendi Perl API'si olan X2Go::Server'a "
"taşınmıştır."
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Create group for X2Go Desktop Sharing now?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing users gain the privilege to share one another's X2Go/"
+"X11 desktop session by being members of a common POSIX group. The POSIX "
+"group being used for this can be configured system-wide and on a per user "
+"basis."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"In X2Go Desktop Sharing's user configuration you can adjust what group to "
+"use for this later on. Here, you are asked for the system-wide default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created now, you should assign this desktop sharing "
+"privilege to an already existing group on the next screen."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid ""
+"If this group is not created / not assigned, users will not be able to share "
+"X2Go/X11 desktop sessions with each other."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Use already existing groups for X2Go Desktop Sharing?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid ""
+"If a group appropriate for being assigned the desktop sharing privilege has "
+"already been created (e.g. in an LDAP user/group database) then you can "
+"specify this group name on the next screen."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "Assign X2Go Desktop Sharing privilege to POSIX group:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid ""
+"Please specify the name of the POSIX group that you want to assign the X2Go "
+"Desktop Sharing privilege to."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:6001
+msgid "If you leave this empty, the \"root\" group will be used."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "Delete the group that was formerly used for this?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "The group for the X2Go Desktop Sharing privilege has been modified."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid ""
+"Please specify whether the old group should be deleted. If unsure, keep the "
+"formerly used group and manually investigate later."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid "Non-existing group"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:8001
+msgid ""
+"The given group does not exist on this system. You should specify an already "
+"existing group."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid "Auto-start X2Go Desktop Sharing applet on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"For an X2Go/X11 desktop session to be accessible via X2Go Desktop Sharing, "
+"the X2Go Desktop Sharing applet needs to be running. It advertises the users "
+"X2Go/X11 session through an access controlled socket to X2Go client "
+"applications."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:9001
+msgid ""
+"The applet can be configured to start automatically on desktop session "
+"startup, but for security reasons this is not the default."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid "Auto-activate X2Go Desktop Sharing on desktop session startup?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"The X2Go Desktop Sharing applet normally starts in non-sharing mode (users "
+"that request to share the running desktop session get auto-rejected). The "
+"user normally has to actively activate the sharing mode in the applet's GUI."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"If you enabled the auto-start option in the previous screen, you can "
+"additionally choose here, if desktop sharing shall be activated when the "
+"X2Go Desktop Sharing applet is auto-started at session logon."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:10001
+msgid ""
+"For security and data protection reasons, this is not the default. Use this "
+"auto-activation feature only in appropriate environments (e.g. on class room "
+"computers)."
+msgstr ""
diff --git a/debian/templates b/debian/templates
index 4eeed86..1accc93 100644
--- a/debian/templates
+++ b/debian/templates
@@ -17,3 +17,87 @@ _Description: X2Go Server Upgrade
.
Note that most of the Perl code in X2Go Server has been moved into
its own Perl API X2Go::Server.
+
+Template: x2goserver-desktopsharing/last-group-sharing
+Type: string
+Default:
+Description: for internal use
+
+Template: x2goserver-desktopsharing/create-group-for-sharing
+Type: boolean
+Default: true
+_Description: Create group for X2Go Desktop Sharing now?
+ In X2Go Desktop Sharing users gain the privilege to share one another's
+ X2Go/X11 desktop session by being members of a common POSIX group. The
+ POSIX group being used for this can be configured system-wide and on a
+ per user basis.
+ .
+ In X2Go Desktop Sharing's user configuration you can adjust what group
+ to use for this later on. Here, you are asked for the system-wide default.
+ .
+ If this group is not created now, you should assign this desktop sharing
+ privilege to an already existing group on the next screen.
+ .
+ If this group is not created / not assigned, users will not be able to share
+ X2Go/X11 desktop sessions with each other.
+
+Template: x2goserver-desktopsharing/use-existing-group-for-sharing
+Type: boolean
+Default: false
+_Description: Use already existing groups for X2Go Desktop Sharing?
+ If a group appropriate for being assigned the desktop sharing privilege has
+ already been created (e.g. in an LDAP user/group database) then you can
+ specify this group name on the next screen.
+
+Template: x2goserver-desktopsharing/group-sharing
+Type: string
+Default: x2godesktopsharing
+_Description: Assign X2Go Desktop Sharing privilege to POSIX group:
+ Please specify the name of the POSIX group that you want to assign the
+ X2Go Desktop Sharing privilege to.
+ .
+ If you leave this empty, the "root" group will be used.
+
+Template: x2goserver-desktopsharing/del-last-group-sharing
+Type: boolean
+Default: false
+_Description: Delete the group that was formerly used for this?
+ The group for the X2Go Desktop Sharing privilege has been modified.
+ .
+ Please specify whether the old group should be deleted. If unsure,
+ keep the formerly used group and manually investigate later.
+
+Template: x2goserver-desktopsharing/no-such-group
+Type: error
+_Description: Non-existing group
+ The given group does not exist on this system. You should specify an
+ already existing group.
+
+Template: x2goserver-desktopsharing/auto-start-on-logon
+Type: boolean
+Default: false
+_Description: Auto-start X2Go Desktop Sharing applet on desktop session startup?
+ For an X2Go/X11 desktop session to be accessible via X2Go Desktop
+ Sharing, the X2Go Desktop Sharing applet needs to be running. It
+ advertises the users X2Go/X11 session through an access controlled
+ socket to X2Go client applications.
+ .
+ The applet can be configured to start automatically on desktop session
+ startup, but for security reasons this is not the default.
+
+Template: x2goserver-desktopsharing/auto-activate-on-logon
+Type: boolean
+Default: false
+_Description: Auto-activate X2Go Desktop Sharing on desktop session startup?
+ The X2Go Desktop Sharing applet normally starts in non-sharing mode
+ (users that request to share the running desktop session get
+ auto-rejected). The user normally has to actively activate the sharing
+ mode in the applet's GUI.
+ .
+ If you enabled the auto-start option in the previous screen, you can
+ additionally choose here, if desktop sharing shall be activated when the
+ X2Go Desktop Sharing applet is auto-started at session logon.
+ .
+ For security and data protection reasons, this is not the default. Use
+ this auto-activation feature only in appropriate environments (e.g.
+ on class room computers).
diff --git a/debian/x2goserver-desktopsharing.config b/debian/x2goserver-desktopsharing.config
new file mode 100755
index 0000000..5708985
--- /dev/null
+++ b/debian/x2goserver-desktopsharing.config
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# remember the formerly used (or default) group names, if any
+db_get x2goserver-desktopsharing/group-sharing && db_set x2goserver-desktopsharing/last-group-sharing $RET || true
+
+# set the confirmation questions for group deletions always to false before we begin...
+db_set x2goserver-desktopsharing/del-last-group-sharing false
+
+db_input high x2goserver-desktopsharing/create-group-for-sharing || true
+db_go
+db_get x2goserver-desktopsharing/create-group-for-sharing
+create_group=$RET
+
+# always allow usage of existing group (also when $create_group is set)
+db_set x2goserver-desktopsharing/use-existing-group-for-sharing true
+if [ "$create_group" = "false" ]; then
+
+ db_get x2goserver-desktopsharing/group-sharing
+ if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
+ db_set x2goserver-desktopsharing/group-sharing "root"
+ fi
+
+ db_input high x2goserver-desktopsharing/use-existing-group-for-sharing || true
+ db_go
+fi
+
+db_get x2goserver-desktopsharing/use-existing-group-for-sharing
+use_existing_group=$RET
+
+if [ "$create_group" = "true" ] || [ "$use_existing_group" = "true" ]; then
+
+ loop=1
+ while [ $loop -eq 1 ]; do
+ db_input high x2goserver-desktopsharing/group-sharing || true
+ db_go
+
+ db_get x2goserver-desktopsharing/group-sharing
+ group_sharing=$RET
+ if getent group $group_sharing 1>/dev/null; then
+ loop=0
+ else
+ if [ "$create_group" = "true" ]; then
+ loop=0
+ else
+ db_input critical x2goserver-desktopsharing/no-such-group || true
+ db_go
+ continue
+ fi
+ fi
+
+ db_get x2goserver-desktopsharing/last-group-sharing
+ if [ -z "$RET" ] || ! getent group $RET 1>/dev/null; then
+ RET="root"
+ fi
+ if [ "$RET" != "$group_sharing" ] && [ $(getent group $RET | cut -d ":" -f 3) -ge 100 ]; then
+ db_input critical x2goserver-desktopsharing/del-last-group-sharing || true
+ db_go
+ fi
+ done
+fi
+
+db_input high x2goserver-desktopsharing/auto-start-on-logon || true
+db_go
+db_get x2goserver-desktopsharing/auto-start-on-logon
+auto_start=$RET
+
+if [ "$auto_start" = "true" ]; then
+ db_input high x2goserver-desktopsharing/auto-activate-on-logon || true
+ db_go
+fi
diff --git a/debian/x2goserver-desktopsharing.install b/debian/x2goserver-desktopsharing.install
new file mode 100644
index 0000000..74622cf
--- /dev/null
+++ b/debian/x2goserver-desktopsharing.install
@@ -0,0 +1,4 @@
+usr/bin/x2go*-desktopsharing
+etc/x2go/desktopsharing/
+usr/share/x2go/versions/VERSION.x2goserver-desktopsharing
+usr/share/x2go/x2gofeature.d/x2goserver-desktopsharing.features
\ No newline at end of file
diff --git a/debian/x2goserver-desktopsharing.manpages b/debian/x2goserver-desktopsharing.manpages
new file mode 100644
index 0000000..39e405d
--- /dev/null
+++ b/debian/x2goserver-desktopsharing.manpages
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man8/x2go*-desktopsharing.8*
diff --git a/debian/x2goserver-desktopsharing.postinst b/debian/x2goserver-desktopsharing.postinst
new file mode 100755
index 0000000..e7aac11
--- /dev/null
+++ b/debian/x2goserver-desktopsharing.postinst
@@ -0,0 +1,101 @@
+#!/bin/sh
+
+set -e
+
+# postinst script for x2godesktopsharing
+#
+# see: dh_installdeb(1)
+
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+case "$1" in
+ configure)
+
+ # fetch debconf-variables for x2godesktopsharing
+ db_get x2goserver-desktopsharing/create-group-for-sharing && x2godesktopsharing_create_group_for_sharing=$RET
+ db_get x2goserver-desktopsharing/use-existing-group-for-sharing && x2godesktopsharing_use_existing_group_for_sharing=$RET
+
+ # remove previously used sharing group
+
+ db_get x2goserver-desktopsharing/del-last-group-sharing
+ del_last_group="$RET"
+
+ if [ "$del_last_group" = "true" ]; then
+ db_get x2goserver-desktopsharing/last-group-sharing
+ last_group=$(echo $RET | cut -d" " -f1)
+
+ # try to remove the formerly used sharing group; on failure, ignore it
+ getent group $last_group 1>/dev/null && delgroup "$last_group" || \
+ echo "Removing Posix previous X2Go Desktop Sharing group »$last_group« failed."
+ fi
+
+ # create debconf-configured sharing group
+
+ db_get x2goserver-desktopsharing/group-sharing
+ # for sanity: we take everything as a group name until we find a blank...
+ group=$(echo $RET | cut -d" " -f1)
+
+ if [ "$x2godesktopsharing_create_group_for_sharing" = "true" ] && [ "x$group" != "x" ]; then
+ if echo "$group" | egrep '^[[:digit:]]{1,5}$' 1>/dev/null; then
+ echo "Specified sharing group is a gidNumber, not creating any group." 1>&2
+ elif ! getent group $group >/dev/null; then
+ echo "Creating $group group." 1>&2
+ addgroup --system $group
+ else
+ echo "Group »$group« already exists." 1>&2
+ fi
+ fi
+
+ # finally tweak X2Go Desktop Sharing's configuration file and adapt the group parameter
+ if [ -n "$group" ]; then
+ sed -i /etc/x2go/desktopsharing/settings -e "s/group=.*/group=$group/"
+ fi
+
+ db_get x2goserver-desktopsharing/auto-start-on-logon
+ if [ "$RET" = "true" ] && [ ! -e /etc/xdg/autostart/x2godesktopsharing.desktop ]; then
+ echo "Setting up system-wide XDG autostart for X2Go Desktop Sharing."
+ cp /usr/share/applications/x2godesktopsharing.desktop /etc/xdg/autostart/x2godesktopsharing.desktop
+ elif [ "$RET" = "false" ] && [ -f /etc/xdg/autostart/x2godesktopsharing.desktop ]; then
+ echo "Disabling system-wide XDG autostart for X2Go Desktop Sharing."
+ rm -f /etc/xdg/autostart/x2godesktopsharing.desktop
+ fi
+
+ db_get x2goserver-desktopsharing/auto-activate-on-logon
+ if [ "$RET" = "true" ] && [ -e /etc/xdg/autostart/x2godesktopsharing.desktop ]; then
+ echo "Setting up system-wide auto-activation of X2Go Desktop Sharing."
+ sed -i /etc/xdg/autostart/x2godesktopsharing.desktop -e 's@^Exec=.*@Exec=/usr/bin/x2godesktopsharing --activate-desktop-sharing@'
+ elif [ "$RET" = "false" ] && [ -e /etc/xdg/autostart/x2godesktopsharing.desktop ]; then
+ echo "Disabling system-wide auto-activation of X2Go Desktop Sharing."
+ sed -i /etc/xdg/autostart/x2godesktopsharing.desktop -e 's@^Exec=.*@Exec=/usr/bin/x2godesktopsharing@'
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/x2goserver-desktopsharing.postrm b/debian/x2goserver-desktopsharing.postrm
new file mode 100755
index 0000000..c3f40e8
--- /dev/null
+++ b/debian/x2goserver-desktopsharing.postrm
@@ -0,0 +1,44 @@
+#!/bin/sh
+# postrm script for x2godesktopsharing
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+db_get x2goserver-desktopsharing/group-sharing
+group_sharing=$RET
+
+case "${1}" in
+ 'purge')
+ getent 'group' "${group_sharing}" >'/dev/null' && delgroup "${group_sharing}"
+ ;;
+
+ 'remove'|'upgrade'|'failed-upgrade'|'abort-install'|'abort-upgrade'|'disappear')
+ ;;
+
+ *)
+ echo "postrm called with unknown argument '${1}'" >&2
+ exit '1'
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit '0'
diff --git a/x2goserver-desktopsharing/Makefile b/x2goserver-desktopsharing/Makefile
new file mode 100755
index 0000000..d896a28
--- /dev/null
+++ b/x2goserver-desktopsharing/Makefile
@@ -0,0 +1,93 @@
+#!/usr/bin/make -f
+
+SRC_DIR=$(CURDIR)
+SHELL=/bin/bash
+
+INSTALL_DIR=install -d -o root -g root -m 755
+INSTALL_FILE=install -o root -g root -m 644
+INSTALL_PROGRAM=install -o root -g root -m 755
+
+RM_FILE=rm -f
+RM_DIR=rmdir -p --ignore-fail-on-non-empty
+
+DESTDIR ?=
+PREFIX ?= /usr/local
+ETCDIR=/etc/x2go
+BINDIR=$(PREFIX)/bin
+LIBDIR=$(PREFIX)/lib/x2go
+MANDIR=$(PREFIX)/share/man
+SHAREDIR=$(PREFIX)/share/x2go
+
+BIN_SCRIPTS=$(shell cd bin && echo *)
+FEATURE_SCRIPTS=$(shell cd share/x2go/x2gofeature.d && echo *.features)
+
+man_pages = `cd man && find * -type f`
+
+MAN2HTML_BIN = $(shell which man2html)
+MAN2HTML_SRC = man
+MAN2HTML_DEST = .build_man2html/html
+
+all: clean build
+
+build: build-arch build-indep
+
+build-arch:
+
+build-indep: build_man2html
+
+build_man2html:
+ if [ -n "$(MAN2HTML_BIN)" ]; then \
+ mkdir -p $(MAN2HTML_DEST); \
+ for man_page in $(man_pages); do mkdir -p `dirname $(MAN2HTML_DEST)/$$man_page`; done; \
+ for man_page in $(man_pages); do $(MAN2HTML_BIN) $(MAN2HTML_SRC)/$$man_page > $(MAN2HTML_DEST)/$$man_page.html; done; \
+ fi
+
+clean: clean_man2html
+
+clean_man2html:
+ rm -rf `dirname $(MAN2HTML_DEST)`
+
+install: install_scripts install_config install_man install_version
+
+install_scripts:
+ $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
+ $(INSTALL_PROGRAM) bin/x2go* $(DESTDIR)$(BINDIR)/
+ $(INSTALL_DIR) $(DESTDIR)$(ETCDIR)/desktopsharing
+ $(INSTALL_FILE) etc/desktopsharing/settings $(DESTDIR)$(ETCDIR)/desktopsharing/
+ $(INSTALL_DIR) $(DESTDIR)$(SHAREDIR)
+ $(INSTALL_DIR) $(DESTDIR)$(SHAREDIR)/x2gofeature.d
+ $(INSTALL_PROGRAM) share/x2gofeature.d/*.features $(DESTDIR)$(SHAREDIR)/x2gofeature.d/
+
+install_config:
+
+install_man:
+ $(INSTALL_DIR) $(DESTDIR)$(MANDIR)
+ $(INSTALL_DIR) $(DESTDIR)$(MANDIR)/man8
+ $(INSTALL_FILE) man/man8/*.8 $(DESTDIR)$(MANDIR)/man8
+ gzip -f $(DESTDIR)$(MANDIR)/man8/x2go*.8
+
+install_version:
+ $(INSTALL_DIR) $(DESTDIR)$(SHAREDIR)
+ $(INSTALL_DIR) $(DESTDIR)$(SHAREDIR)/versions
+ $(INSTALL_FILE) VERSION.x2goserver-desktopsharing $(DESTDIR)$(SHAREDIR)/versions/
+
+uninstall: uninstall_scripts uninstall_config uninstall_man uninstall_version
+
+uninstall_scripts:
+ for file in $(FEATURE_SCRIPTS); do $(RM_FILE) $(DESTDIR)$(SHAREDIR)/x2gofeature.d/$$file; done
+
+uninstall_config:
+
+uninstall_config:
+ $(RM_FILE) $(DESTDIR)$(ETCDIR)/desktopsharing/settings
+ $(RM_DIR) $(DESTDIR)$(ETCDIR)/desktopsharing || true
+ $(RM_DIR) $(DESTDIR)$(ETCDIR) || true
+
+uninstall_man:
+ for file in $(BIN_SCRIPTS); do $(RM_FILE) $(DESTDIR)$(MANDIR)/man8/$$file.8.gz; done
+ for file in $(SBIN_SCRIPTS); do $(RM_FILE) $(DESTDIR)$(MANDIR)/man8/$$file.8.gz; done
+ $(RM_DIR) $(DESTDIR)$(MANDIR) || true
+
+uninstall_version:
+ $(RM_FILE) $(DESTDIR)$(SHAREDIR)/versions/VERSION.x2goserver-desktopsharing
+ $(RM_DIR) $(DESTDIR)$(SHAREDIR)/versions || true
diff --git a/x2goserver-desktopsharing/VERSION.x2goserver-desktopsharing b/x2goserver-desktopsharing/VERSION.x2goserver-desktopsharing
new file mode 100644
index 0000000..69a1172
--- /dev/null
+++ b/x2goserver-desktopsharing/VERSION.x2goserver-desktopsharing
@@ -0,0 +1 @@
+3.2.0.0
diff --git a/x2goserver-desktopsharing/bin/x2goresume-desktopsharing b/x2goserver-desktopsharing/bin/x2goresume-desktopsharing
new file mode 100755
index 0000000..c07087e
--- /dev/null
+++ b/x2goserver-desktopsharing/bin/x2goresume-desktopsharing
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# Copyright (C) 2007-2015 X2Go Project - http://wiki.x2go.org
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Copyright (C) 2011-2015 Oleksandr Shneyder <oleksandr.shneyder at obviously-nice.de>
+# Copyright (C) 2011-2015 Heinz-Markus Graesing <heinz-m.graesing at obviously-nice.de>
+# Copyright (C) 2011-2015 Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+
+if [ $# -eq 1 ]; then
+ SESSION_NAME=$1
+else
+ SESSION_NAME=$X2GO_SESSION
+fi
+
+X2GO_LIB_PATH=`x2gopath libexec`
+
+$X2GO_LIB_PATH/x2gosyslog "$0" "info" "$(basename $0) called with options: $@"
+
+X2GO_DISPLAY=$(echo $SESSION_NAME | cut -d"-" -f2)
+
+test -e $HOME/.x2go/C-$SESSION_NAME/resume-desktopsharing && {
+ rm -f $HOME/.x2go/C-$SESSION_NAME/resume-desktopsharing
+ DISPLAY=:$X2GO_DISPLAY.0 x2godesktopsharing &>/dev/null &
+}
diff --git a/x2goserver-desktopsharing/bin/x2gosuspend-desktopsharing b/x2goserver-desktopsharing/bin/x2gosuspend-desktopsharing
new file mode 100755
index 0000000..81639de
--- /dev/null
+++ b/x2goserver-desktopsharing/bin/x2gosuspend-desktopsharing
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+# Copyright (C) 2007-2015 X2Go Project - http://wiki.x2go.org
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Copyright (C) 2011-2015 Oleksandr Shneyder <oleksandr.shneyder at obviously-nice.de>
+# Copyright (C) 2011-2015 Heinz-Markus Graesing <heinz-m.graesing at obviously-nice.de>
+# Copyright (C) 2011-2015 Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+
+if [ $# -eq 1 ]; then
+ SESSION_NAME=$1
+else
+ SESSION_NAME=$X2GO_SESSION
+fi
+
+X2GO_LIB_PATH=`x2gopath libexec`
+
+$X2GO_LIB_PATH/x2gosyslog "$0" "info" "$(basename $0) called with options: $@"
+
+x2goterminate-desktopsharing $SESSION_NAME && touch $HOME/.x2go/C-$SESSION_NAME/resume-desktopsharing
diff --git a/x2goserver-desktopsharing/bin/x2goterminate-desktopsharing b/x2goserver-desktopsharing/bin/x2goterminate-desktopsharing
new file mode 100755
index 0000000..59735a0
--- /dev/null
+++ b/x2goserver-desktopsharing/bin/x2goterminate-desktopsharing
@@ -0,0 +1,60 @@
+#!/bin/bash
+
+# Copyright (C) 2007-2015 X2Go Project - http://wiki.x2go.org
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Copyright (C) 2011-2015 Oleksandr Shneyder <oleksandr.shneyder at obviously-nice.de>
+# Copyright (C) 2011-2015 Heinz-Markus Graesing <heinz-m.graesing at obviously-nice.de>
+# Copyright (C) 2011-2015 Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+
+if [ $# -eq 1 ]; then
+ SESSION_NAME=$1
+else
+ SESSION_NAME=$X2GO_SESSION
+fi
+
+X2GO_LIB_PATH=`x2gopath libexec`
+
+if type -p pidof 1>/dev/null 2>/dev/null; then
+ PIDOF=pidof
+elif [ -x /usr/local/sbin/pidof ]; then
+ PIDOF=/usr/local/sbin/pidof
+elif [ -x /usr/sbin/pidof ]; then
+ PIDOF=/usr/sbin/pidof
+elif [ -x /sbin/pidof ]; then
+ PIDOF=/sbin/pidof
+else
+ # no pidof utility found, get out the big hammer!!!
+ killall x2godesktopsharing
+ exit 0
+fi
+
+$X2GO_LIB_PATH/x2gosyslog "$0" "info" "$(basename $0) called with options: $@"
+
+
+X2GO_DISPLAY=$(echo $SESSION_NAME | cut -d"-" -f2)
+for process_id in `$PIDOF x2godesktopsharing`; do
+ env_of_process=$(cat -A /proc/$process_id/environ)
+ env_of_process=${env_of_process//^@/\\n}
+ display=$(echo -e $env_of_process | egrep "^DISPLAY=.*$" | cut -d"=" -f2)
+ if echo $display | grep ":$X2GO_DISPLAY" &>/dev/null; then
+ kill -SIGTERM $process_id
+ exit 0
+ fi
+done
+
+exit -1
diff --git a/x2goserver-desktopsharing/etc/desktopsharing/settings b/x2goserver-desktopsharing/etc/desktopsharing/settings
new file mode 100644
index 0000000..fc4f7d0
--- /dev/null
+++ b/x2goserver-desktopsharing/etc/desktopsharing/settings
@@ -0,0 +1,2 @@
+[General]
+group=x2godesktopsharing
diff --git a/x2goserver-desktopsharing/man/man8/x2goresume-desktopsharing.8 b/x2goserver-desktopsharing/man/man8/x2goresume-desktopsharing.8
new file mode 100644
index 0000000..8b84fe6
--- /dev/null
+++ b/x2goserver-desktopsharing/man/man8/x2goresume-desktopsharing.8
@@ -0,0 +1,28 @@
+'\" -*- coding: utf-8 -*-
+.if \n(.g .ds T< \\FC
+.if \n(.g .ds T> \\F[\n[.fam]]
+.de URL
+\\$2 \(la\\$1\(ra\\$3
+..
+.if \n(.g .mso www.tmac
+.TH x2goresume\-desktopsharing 8 "Aug 2018" "Version 4.1.0.3" "X2Go Server Script"
+.SH NAME
+x2goresume\-desktopsharing \- Resume Desktop Sharing Applet for a given X2Go Session
+.SH SYNOPSIS
+'nh
+.fi
+.ad l
+\fBx2goresume\-desktopsharing\fR \fI<session_id>\fR
+
+.SH DESCRIPTION
+\fBx2goresume\-desktopsharing\fR launches the \fBx2godesktopsharing\fR applet for X2Go session \fI<session_id>\fR.
+.PP
+\fBx2goresume\-desktopsharing\fR is run with normal user privileges and it is used from within X2Go Server.
+There normally is no need to execute this command manually.
+.SH RETURN VALUES
+As exitcode \fBx2goresume\-desktopsharing\fR always returns 0.
+.SH SEE ALSO
+x2godesktopsharing(1), x2goresume\-session(8), x2gosuspend\-desktopsharing(8), x2goterminate\-desktopsharing(8)
+.SH AUTHOR
+This manual has been written by Mike Gabriel <mike.gabriel at das\-netzwerkteam.de> for the X2Go project
+(http://www.x2go.org).
diff --git a/x2goserver-desktopsharing/man/man8/x2gosuspend-desktopsharing.8 b/x2goserver-desktopsharing/man/man8/x2gosuspend-desktopsharing.8
new file mode 100644
index 0000000..78c4272
--- /dev/null
+++ b/x2goserver-desktopsharing/man/man8/x2gosuspend-desktopsharing.8
@@ -0,0 +1,37 @@
+'\" -*- coding: utf-8 -*-
+.if \n(.g .ds T< \\FC
+.if \n(.g .ds T> \\F[\n[.fam]]
+.de URL
+\\$2 \(la\\$1\(ra\\$3
+..
+.if \n(.g .mso www.tmac
+.TH x2gosuspend-desktopsharing 8 "Aug 2018" "Version 4.1.0.3" "X2Go Server Script"
+.SH NAME
+x2gosuspend-desktopsharing \- Suspend Desktop Sharing for a given X2Go Session
+.SH SYNOPSIS
+'nh
+.fi
+.ad l
+\fBx2gosuspend\-desktopsharing\fR \fI<session_id>\fR
+
+.SH DESCRIPTION
+\fBx2gosuspend\-desktopsharing\fR executes \fBx2goterminate\-desktopsharing\fR and places a reminder file
+.PP
+ ,,resume\-desktopsharing''
+.PP
+into
+.PP
+ $HOME/.x2go/C\-<session_id>/
+.PP
+so that \fBx2godesktopsharing\fR can be resumed
+on session resume.
+.PP
+\fBx2gosuspend\-desktopsharing\fR is run with normal user privileges and it is used from within X2Go Server.
+There normally is no need to execute this command manually.
+.SH RETURN VALUES
+As exitcode \fBx2gosuspend\-desktopsharing\fR always returns 0.
+.SH SEE ALSO
+x2godesktopsharing(1), x2gosuspend\-session(8), x2goterminate\-desktopsharing(8), x2goresume\-desktopsharing(8)
+.SH AUTHOR
+This manual has been written by Mike Gabriel <mike.gabriel at das\-netzwerkteam.de> for the X2Go project
+(http://www.x2go.org).
diff --git a/x2goserver-desktopsharing/man/man8/x2goterminate-desktopsharing.8 b/x2goserver-desktopsharing/man/man8/x2goterminate-desktopsharing.8
new file mode 100644
index 0000000..9841bb5
--- /dev/null
+++ b/x2goserver-desktopsharing/man/man8/x2goterminate-desktopsharing.8
@@ -0,0 +1,30 @@
+'\" -*- coding: utf-8 -*-
+.if \n(.g .ds T< \\FC
+.if \n(.g .ds T> \\F[\n[.fam]]
+.de URL
+\\$2 \(la\\$1\(ra\\$3
+..
+.if \n(.g .mso www.tmac
+.TH x2goterminate\-desktopsharing 8 "Aug 2018" "Version 4.1.0.3" "X2Go Server Tool"
+.SH NAME
+x2goterminate\-desktopsharing \- Cleanly Terminate Desktop Sharing for a given X2Go Session
+.SH SYNOPSIS
+'nh
+.fi
+.ad l
+\fBx2goterminate\-desktopsharing\fR \fI<session_id>\fR
+
+.SH DESCRIPTION
+\fBx2goterminate\-desktopsharing\fR allows one to detect a running and associated \fBx2godesktopsharing\fR
+applet and to cleanly terminate this applet.
+.PP
+\fBx2goterminate\-desktopsharing\fR is run with normal user privileges and it is used from within X2Go Server.
+There normally is no need to execute this command manually.
+.SH RETURN VALUES
+As exitcode \fBx2goterminate\-desktopsharing\fR returns 0 if a \fBx2godesktopsharing\fR process could be identified
+and terminated. If not, the exit code is \-1.
+.SH SEE ALSO
+x2godesktopsharing(1), x2goteminate\-session(8), x2gosuspend\-desktopsharing(8), x2goresume\-desktopsharing(8)
+.SH AUTHOR
+This manual has been written by Mike Gabriel <mike.gabriel at das\-netzwerkteam.de> for the X2Go project
+(http://www.x2go.org).
diff --git a/x2goserver-desktopsharing/share/x2gofeature.d/x2goserver-desktopsharing.features b/x2goserver-desktopsharing/share/x2gofeature.d/x2goserver-desktopsharing.features
new file mode 100755
index 0000000..26e2518
--- /dev/null
+++ b/x2goserver-desktopsharing/share/x2gofeature.d/x2goserver-desktopsharing.features
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# Copyright (C) 2007-2015 X2Go Project - http://wiki.x2go.org
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Copyright (C) 2011-2015 Oleksandr Shneyder <oleksandr.shneyder at obviously-nice.de>
+# Copyright (C) 2011-2015 Heinz-Markus Graesing <heinz-m.graesing at obviously-nice.de>
+
+X2GO_LIB_PATH=`x2gopath libexec`
+
+$X2GO_LIB_PATH/x2gosyslog "$0" "info" "$(basename $0) called with options: $@"
+
+X2GO_FEATURE=$1
+
+# check for X2Go server core features
+case "$X2GO_FEATURE" in
+
+ "X2GO_DESKTOPSHARING") echo "ok"; exit 0;;
+ *) exit -1;;
+
+esac
+
diff --git a/x2goserver.spec b/x2goserver.spec
index 36a28e1..7b14ae1 100644
--- a/x2goserver.spec
+++ b/x2goserver.spec
@@ -398,6 +398,34 @@ this package on the X2Go server(s) (and the cups-x2go package on the CUPS
server).
+%package desktopsharing
+Summary: X2Go Server (Desktop Sharing support)
+Requires: %{name} = %{version}-%{release}
+Requires: x2godesktopsharing >= 3.2.0.0
+%if 0%{?fedora} || 0%{?rhel}
+Group: Applications/Communications
+%else
+Group: Productivity/Networking/Remote Desktop
+%endif
+
+%description extensions
+X2Go is a server based computing environment with
+ - session resuming
+ - low bandwidth support
+ - session brokerage support
+ - client side mass storage mounting support
+ - audio support
+ - authentication by smartcard and USB stick
+
+X2Go Desktop Sharing is an X2Go add-on feature that allows a user to
+grant other X2Go users access to the current session (shadow session
+support). The user's current session may be an X2Go session itself or
+simply a local X11 session.
+
+This package contains all the integration and configuration logics
+of a system-wide manageable desktop sharing setup.
+
+
%package extensions
Summary: X2Go Server (extension support)
Requires: %{name} = %{version}-%{release}
@@ -933,6 +961,17 @@ fi
%{_datadir}/x2go/versions/VERSION.x2goserver-common
+%files desktopsharing
+%defattr(-,root,root)
+%doc debian/copyright
+%doc debian/changelog
+%{_bindir}/x2go*-desktopsharing
+%{_datadir}/x2go/versions/VERSION.x2goserver-desktopsharing
+%{_datadir}/x2go/x2gofeature.d/x2goserver-desktopsharing.features
+%{_mandir}/man8/x2go*-desktopsharing.8*
+%config(noreplace) %{_sysconfdir}/x2go/desktopsharing/settings
+
+
%files extensions
%defattr(-,root,root)
%doc debian/copyright
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list