User Tools

Site Tools


doc:howto:tce

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
doc:howto:tce [2022/12/27 14:47]
gratuxri
doc:howto:tce [2024/01/26 15:23]
stefanbaur [Configuring the Build] updated build config for bookworm, added notes
Line 65: Line 65:
 export LBX2GO_CONFIG='https://gitlab.x2go.org/x2go/live-build-x2go.git::feature/openbox-magic-pixel-workaround-bullseye' export LBX2GO_CONFIG='https://gitlab.x2go.org/x2go/live-build-x2go.git::feature/openbox-magic-pixel-workaround-bullseye'
 #export LBX2GO_CONFIG='https://gitlab.x2go.org/x2go/live-build-x2go.git::feature/mate-minidesktop-bullseye' #export LBX2GO_CONFIG='https://gitlab.x2go.org/x2go/live-build-x2go.git::feature/mate-minidesktop-bullseye'
-this one loosely corresponds to "heuler" +#export LBX2GO_CONFIG='https://github.com/bauritcs/live-build-x2go.git::feature/openbox-magic-pixel-workaround-bookworm' 
-NOTE: Add "-stretch" to the end of the LBX2GO_CONFIG string to create a stretch build, +#export LBX2GO_CONFIG='https://github.com/bauritcs/live-build-x2go.git::feature/mate-minidesktop-bookworm' 
-      add "-buster" to the end of the LBX2GO_CONFIG string to create a buster build, +# NOTES: 1) https://github.com/bauritcs loosely corresponds to "heuler" 
-      add "-bullseye" to the end of the LBX2GO_CONFIG string to create a bullseye build+       2) Minidesktop builds are work in progress and not production-ready. Cont(r)act us if you need them; feel free to submit patches. 
 +#        3) Add "-stretch" to the end of the LBX2GO_CONFIG string to create a stretch build, 
 +          add "-buster" to the end of the LBX2GO_CONFIG string to create a buster build, 
 +          add "-bullseye" to the end of the LBX2GO_CONFIG string to create a bullseye build 
 +#           add "-bookworm" to the end of the LBX2GO_CONFIG string to create a bookworm build (will be in gitlab repo $SOON - use github.com/bauritcs for now)
  
 # Select ONE of the following LBX2GO_ARCH lines and comment out the others # Select ONE of the following LBX2GO_ARCH lines and comment out the others
Line 110: Line 114:
     export LBX2GO_DEBVERSION="bullseye"     export LBX2GO_DEBVERSION="bullseye"
     export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0"     export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0"
 +elif [ -z "${LBX2GO_CONFIG##*-bookworm}" ] ; then
 +    export LBX2GO_DEBVERSION="bookworm"
 +    export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0"
 +    export LBX2GO_ARCHIVE_AREAS="non-free-firmware "
 else else
     export LBX2GO_DEBVERSION="jessie"     export LBX2GO_DEBVERSION="jessie"
Line 179: Line 187:
 fi fi
  
-export LBX2GO_ARCHIVE_AREAS="main contrib non-free"+export LBX2GO_ARCHIVE_AREAS="main contrib non-free $LBX2GO_ARCHIVE_AREAS"
  
 # This is for minidesktop builds and currently only adds firefox-esr language packs # This is for minidesktop builds and currently only adds firefox-esr language packs
Line 249: Line 257:
 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. 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@phoca-gmbh.de> 
 +#       Moritz 'Morty' Struebe <Moritz.Struebe@informatik.uni-erlangen.de> 
 +#       Mike Gabriel <mike.gabriel@das-netzwerkteam.de> 
 +#       Stefan Baur <X2Go-ML-1@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 ==== ==== 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//): 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//):
doc/howto/tce.txt · Last modified: 2024/01/26 19:49 by stefanbaur