[X2Go-Commits] [[X2Go Wiki]] page changed: doc:howto:tce

wiki-admin at x2go.org wiki-admin at x2go.org
Fri Jan 26 16:15:22 CET 2024


A page in your DokuWiki was added or changed. Here are the details:

Browser             : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
IP Address          : 178.202.75.45
Hostname            : ip-178-202-075-045.um47.pools.vodafone-ip.de
Old Revision        : https://wiki.x2go.org/doku.php/doc:howto:tce?rev=1705331555
New Revision        : https://wiki.x2go.org/doku.php/doc:howto:tce
Date of New Revision: 2024/01/26 15:15
Edit Summary        : [Live-Patching the Build] - added example for minidesktop
User                : stefanbaur

There may be newer changes after this revision. If this
happens, a message will be shown on the top of the rev page.

@@ -252,9 +252,65 @@
  
  ==== Live-Patching the Build ====
  To add patches that aren't part of any package yet, you can use the directory ./patch/ for patches that should be added to all versions, and ./patch-minidesktop/ for patches that should only be added to the MATE-MiniDesktop Edition.
  
- You will need to create a directory structure like ./patch/includes.chroot/etc/ to create/overwrite a file in /etc/ within the live environment.
+ You will need to create a directory structure like <code>./patch/includes.chroot/etc/</code> to create/overwrite a file in <code>/etc/</code> within the live environment.
+ 
+ e.g. to override <code>/etc/x2go/x2gothinclient-minidesktop_start</code> with a custom version, run <code>mkdir -p ./patch-minidesktop/includes.chroot/etc/x2go/</code> and save the following file as <code>./patch-minidesktop/includes.chroot/etc/x2go/x2gothinclient-minidesktop_start</code>
+ <code>
+ #!/bin/bash
+ 
+ # Copyright (C) 2010-2024 by X2Go project, https://wiki.x2go.org
+ #       Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
+ #       Moritz 'Morty' Struebe <Moritz.Struebe at informatik.uni-erlangen.de>
+ #       Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+ #       Stefan Baur <X2Go-ML-1 at baur-itcs.de>
+ #
+ # 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...
+ if ! /usr/bin/pactl list modules | grep -A1 'module-native-protocol-tcp' | grep -q 'auth-ip-acl=127.0.0.1;::1' ; then
+         /usr/bin/pactl 'load-module' 'module-native-protocol-tcp' 'auth-ip-acl=127.0.0.1;::1'
+ fi
+ 
+ # make sure we don't start before sessions and settings files exist - avoids race conditions
+ while ! [ -e ~x2gothinclient/.x2goclient/sessions ] ; do
+         sleep 1;
+ done
+ 
+ while ! [ -e ~x2gothinclient/.x2goclient/settings ]; do
+         sleep 1
+ done
+ 
+ [ -s /etc/x2go/x2gothinclient_bg.svg ] && X2GO_BG='--background="/etc/x2go/x2gothinclient_bg.svg'
+ [ -s /etc/x2go/x2gothinclient_branding.svg ] && X2GO_BRAND='--branding="/etc/x2go/x2gothinclient_branding.svg'
+ 
+ 
+ /usr/lib/x2go/x2goclient --no-menu \
+                          $X2GO_BG \
+                          $X2GO_BRAND \
+                          --kbd-type=auto \
+                          --set-kbd=1 \
+                          --tray-icon \
+                          --read-exports-from=~/export \
+                          --no-session-edit \
+                          --add-to-known-hosts \
+                          &
+ 
+ </code>
  ==== Starting the Build ====
  In the directory where you want to save your builds, save the following file as x2go-tce-build, and run it (e.g. via //sudo bash ./x2go-tce-build//):
  <code>
  #!/bin/bash


-- 
This mail was generated by DokuWiki at
https://wiki.x2go.org/


More information about the x2go-commits mailing list