From c7c81e760501f524d53d07c3624de4f019325c5e Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 14 Jan 2022 13:08:26 +0100 Subject: examples/disklserver/: Add X2Go TCE example configuration. --- .../x2gothinclient-minidesktop_background.svg | 158 +++++++++++++++++++++ .../x2gothinclient-minidesktop_start | 47 ++++++ .../x2gothinclient_init | 26 ++++ .../005_x2gothinclient-wipe-home | 30 ++++ .../010_x2gothinclient-fresh-home | 53 +++++++ .../950_x2gothinclient-minidesktop | 25 ++++ .../x2gothinclient_sessions | 66 +++++++++ examples/disklserver/x2gothinclient-settings.conf | 61 ++++++++ 8 files changed, 466 insertions(+) create mode 100644 examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient-minidesktop_background.svg create mode 100755 examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient-minidesktop_start create mode 100755 examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init create mode 100755 examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/005_x2gothinclient-wipe-home create mode 100755 examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/010_x2gothinclient-fresh-home create mode 100755 examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/950_x2gothinclient-minidesktop create mode 100644 examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_sessions create mode 100644 examples/disklserver/x2gothinclient-settings.conf (limited to 'examples/disklserver') diff --git a/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient-minidesktop_background.svg b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient-minidesktop_background.svg new file mode 100644 index 0000000..e3c6580 --- /dev/null +++ b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient-minidesktop_background.svg @@ -0,0 +1,158 @@ + + + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient-minidesktop_start b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient-minidesktop_start new file mode 100755 index 0000000..6165817 --- /dev/null +++ b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient-minidesktop_start @@ -0,0 +1,47 @@ +#!/bin/bash + +# Copyright (C) 2010-2019 by X2Go project, https://wiki.x2go.org +# Oleksandr Shneyder +# Moritz 'Morty' Struebe +# Mike Gabriel + +# X2Go 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. +# +# X2Go 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. + +# make sure pulseaudio can be reached via TCP from the X2Go Server side... +/usr/bin/pactl 'load-module' 'module-native-protocol-tcp' 'auth-ip-acl=127.0.0.1;::1' + +/usr/lib/x2go/x2goclient --no-menu \ + --maximize \ + --link=lan \ + --kbd-type=auto \ + --set-kbd=1 \ + --geometry=fullscreen \ + --read-exports-from=~/export \ + --no-session-edit \ + --close-disconnect \ + --session=X2Go.Example \ + --add-to-known-hosts + +#/usr/libx/x2go/x2goclient --no-menu \ +# --maximize \ +# --link=lan \ +# --kbd-type=auto \ +# --set-kbd=1 \ +# --geometry=fullscreen \ +# --read-exports-from=~/export \ +# --broker-url=https://x2gobroker.intern:8080/plain/zeroconf \ +# --broker-autologoff \ +# --add-to-known-hosts diff --git a/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init new file mode 100755 index 0000000..0e56c95 --- /dev/null +++ b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init @@ -0,0 +1,26 @@ +#!/bin/bash + +# Copyright (C) 2007-2019 X2Go Project - https://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-2019 Mike Gabriel + +set -e + +run-parts /etc/x2go/x2gothinclient_init.d/ + +exit 0 diff --git a/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/005_x2gothinclient-wipe-home b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/005_x2gothinclient-wipe-home new file mode 100755 index 0000000..ebf08b1 --- /dev/null +++ b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/005_x2gothinclient-wipe-home @@ -0,0 +1,30 @@ +#!/bin/bash + +# Copyright (C) 2010-2019 by X2Go project, https://wiki.x2go.org +# Oleksandr Shneyder +# Moritz 'Morty' Struebe +# Mike Gabriel + +# X2Go 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. +# +# X2Go 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. + +if [ -z "$X2GO_HANDLE_DAEMON" ]; then + if [ -d ~x2gothinclient ]; then + find ~x2gothinclient -mindepth 1 -type f | egrep -v "(\.Xauthority|.dmrc)" | while read file; do + rm -vf "$file" + done + find ~x2gothinclient -mindepth 1 -type d -delete + fi +fi diff --git a/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/010_x2gothinclient-fresh-home b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/010_x2gothinclient-fresh-home new file mode 100755 index 0000000..2417a24 --- /dev/null +++ b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/010_x2gothinclient-fresh-home @@ -0,0 +1,53 @@ +#!/bin/bash + +# Copyright (C) 2010-2019 by X2Go project, https://wiki.x2go.org +# Oleksandr Shneyder +# Moritz 'Morty' Struebe +# Mike Gabriel + +# X2Go 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. +# +# X2Go 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. + +if [ -z "$X2GO_HANDLE_DAEMON" ]; then + mkdir -p ~x2gothinclient + mkdir -p ~x2gothinclient/.x2goclient + if [ -e /etc/x2go/x2gothinclient_sessions ]; then + cp /etc/x2go/x2gothinclient_sessions ~x2gothinclient/.x2goclient/sessions + fi + if [ -e /etc/x2go/freerdp/known_hosts ]; then + mkdir -p ~x2gothinclient/.freerdp + cp /etc/x2go/freerdp/known_hosts ~x2gothinclient/.freerdp/known_hosts + fi + if [ -e /etc/x2go/freerdp/known_hosts2 ]; then + mkdir -p ~x2gothinclient/.config/freerdp + cp /etc/x2go/freerdp/known_hosts2 ~x2gothinclient/.config/freerdp/known_hosts2 + fi + if [ -e /etc/xdg/autostart/x2gothinclient-minidesktop.desktop ]; then + mkdir -p ~x2gothinclient/Desktop + cp /etc/xdg/autostart/x2gothinclient-minidesktop.desktop ~x2gothinclient/Desktop/ + chmod 0700 ~x2gothinclient/Desktop/x2gothinclient-minidesktop.desktop + fi + mkdir -p ~x2gothinclient/.kde + mkdir -p ~x2gothinclient/.kde/socket-`hostname` + mkdir -p ~x2gothinclient/mounts + mkdir -p ~x2gothinclient/.gnupg + echo -e "pinentry-program /usr/bin/pinentry-x2go\nenable-ssh-support">~x2gothinclient/.gnupg/gpg-agent.conf + mkdir -p ~x2gothinclient/export + mkdir -p ~x2gothinclient/logins + mkdir -p ~x2gothinclient/.ssh + mkdir -p ~x2gothinclient/.x2go + chown x2gothinclient:x2gothinclient ~x2gothinclient -Rf + chmod go-rwx ~x2gothinclient -Rf +fi diff --git a/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/950_x2gothinclient-minidesktop b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/950_x2gothinclient-minidesktop new file mode 100755 index 0000000..023e210 --- /dev/null +++ b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_init.d/950_x2gothinclient-minidesktop @@ -0,0 +1,25 @@ +#!/bin/bash + +# Copyright (C) 2010-2019 by X2Go project, https://wiki.x2go.org +# Oleksandr Shneyder +# Moritz 'Morty' Struebe +# Mike Gabriel + +# X2Go 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. +# +# X2Go 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. + +if [ -d "/lib/live/config" ] || [ -e "/usr/share/doc/x2gothinclient-minidesktop" ]; then + . /etc/X11/Xsession +fi diff --git a/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_sessions b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_sessions new file mode 100644 index 0000000..750a5c4 --- /dev/null +++ b/examples/disklserver/settings_x2go-minidesktop+amd64+bullseye/x2gothinclient_sessions @@ -0,0 +1,66 @@ +[20100623163928371] +defsndport = false +useiconv = false +iconvfrom = ISO8859-15 +height = 768 +export = +speed = 4 +fullscreen = true +width = 1024 +quality = 9 +xdmcpserver = localhost +soundtunnel = 1 +rdpoptions = +soundsystem = pulse +print = 1 +type = auto +sndport = 4713 +usekbd = true +fstunnel = true +applications = OFFICE, WWWBROWSER, MAILCLIENT, TERMINAL +host = 192.168.0.254 +link = ADSL +user = +key = +startsoundsystem = false +icon = +sound = true +rootless = false +name = X2Go.EXAMPLE +iconvto = UTF-8 +rdpserver = +useexports = true +command = MATE +dpi = 96 +sshport = 22 +setdpi = false +pack = 16m-jpeg + +[20120607130604224872] +height = 768 +export = +fullscreen = true +useexports = 1 +width = 1024 +speed = 4 +rdpoptions = +soundsystem = pulse +print = true +type = auto +sndport = 4713 +usekbd = true +host = rdpserver.your-intranet.local +multidisp=false +sound=false +rootless=false +name=DirectRDP.Example +command=RDP +dpi=96 +published=false +setdpi=false +user= +maxdim=false +rdpclient=xfreerdpnew +directrdpsettings=/d:YOUR-DOMAIN /sound:sys:pulse /cert-ignore +rdpport=3389 +directrdp=true diff --git a/examples/disklserver/x2gothinclient-settings.conf b/examples/disklserver/x2gothinclient-settings.conf new file mode 100644 index 0000000..42115dd --- /dev/null +++ b/examples/disklserver/x2gothinclient-settings.conf @@ -0,0 +1,61 @@ +# Copyright (C) 2010-2021 by X2Go project, http://wiki.x2go.org +# Oleksandr Shneyder +# Moritz 'Morty' Struebe +# Mike Gabriel + +# X2Go 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. +# +# X2Go 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. + +# select the TCE flavour (classical: "displaymanager", minimal MATE desktop shell: "minidesktop") +TC_FLAVOUR="minidesktop" + +# Distro codename to use... +TC_DISTRO_CODENAME="bullseye" + +# Architecture of the chroot... +TC_DISTRO_ARCH="amd64" + +# path to X2Go thin client chroot +TC_CHROOT="/srv/ltsp/x2go-${TC_FLAVOUR}+${TC_DISTRO_ARCH}+${TC_DISTRO_CODENAME}" + +# path to the X2Go thin client configuration +TC_CONFIG="/etc/ltsp/settings_x2go-${TC_FLAVOUR}+${TC_DISTRO_ARCH}+${TC_DISTRO_CODENAME}" + +# shell to use when maintaining X2Go thin client chroot manually +TC_SHELL="bash" + +# Use a http/ftp proxy during debootstrap (leave empty if direct connections to http/ftp are allowed) +#TC_HTTP_PROXY="http://webcache.intern:3128" +#TC_HTTPS_PROXY="http://webcache.intern:3128" +#TC_FTP_PROXY="http://webcache.intern:3128" +TC_HTTP_PROXY="http://faiserver:8000" +TC_HTTPS_PROXY="http://faiserver:8000" +TC_FTP_PROXY="http://faiserver:8000" + +echo "X2Go Thin Client Environment:" +echo "=============================" +echo "The X2Go Thin Client Environment is using the following" +echo "settings:" +echo +echo "TC_FLAVOUR=$TC_FLAVOUR" +echo "TC_DISTRO_CODENAME=$TC_DISTRO_CODENAME" +echo "TC_DISTRO_ARCH=$TC_DISTRO_ARCH" +echo "TC_CHROOT=$TC_CHROOT" +echo "TC_CONFIG=$TC_CONFIG" +echo "TC_SHELL=$TC_SHELL" +echo "TC_HTTP_PROXY=$TC_HTTP_PROXY" +echo "TC_HTTPS_PROXY=$TC_HTTPS_PROXY" +echo "TC_FTP_PROXY=$TC_FTP_PROXY" +echo -- cgit v1.2.3