[X2Go-Commits] [[X2Go Wiki]] page changed: doc:howto:tce
wiki-admin at x2go.org
wiki-admin at x2go.org
Mon Apr 21 08:18:13 CEST 2025
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/135.0.0.0 Safari/537.36
IP Address : 91.89.35.26
Hostname : ip-091-089-035-026.um28.pools.vodafone-ip.de
Old Revision : https://wiki.x2go.org/doku.php/doc:howto:tce?rev=1745216169
New Revision : https://wiki.x2go.org/doku.php/doc:howto:tce
Date of New Revision: 2025/04/21 06:18
Edit Summary : [Configuring the Build] New x2go-tce-config version
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.
@@ -45,11 +45,11 @@
# simple check for apt-cacher-ng being active - if
# we have a successful connect on port 3142, assume
# it's apt-cacher-ng and use it
#
- if nc -z 127.0.0.1 3142 ; then
+ if nc -z 127.0.0.1 3142 ; then
# bad idea with apt-cacher-ng, but will work with e.g. squid
- # export https_proxy=http://127.0.0.1:3128/
+ # export https_proxy=http://127.0.0.1:3128/
# export http_proxy=http://127.0.0.1:3128/
# export ftp_proxy=http://127.0.0.1:3128/
export LB_APT_FTP_PROXY=http://127.0.0.1:3142/
@@ -90,14 +90,17 @@
# If you want to use the stock ISO image as created by this script, add your boot parameters here
# export LBX2GO_BOOTAPPEND_LIVE="boot=live components noswap lang=de vconsole.keymap=de keyboard-layouts=de locales=de_DE.UTF-8 silent quiet pubkey=http://x2go/x2go-tce/config/authorized_keys sessionsurl=http://x2go/x2go-tce/config/sessions toram"
export LBX2GO_BOOTAPPEND_LIVE="boot=live components noswap lang=de vconsole.keymap=de keyboard-layouts=de locales=de_DE.UTF-8 silent quiet sessionsurl=https://your_server_here/config/sessions pubkey=https://your_server_here/config/authorized_keys toram "
- if echo -e "$LBX2GO_CONFIG" | grep -q "openbox"; then
- LBX2GO_BOOTAPPEND_LIVE+="fastpo "
- export LBX2GO_BOOTAPPEND_LIVE
- elif echo -e "$LBX2GO_CONFIG" | grep -q "minidesktop"; then
- LBX2GO_BOOTAPPEND_LIVE+='timezone=Europe/Berlin noautologin ' # if you use nottyautologin instead of noautologin, an autologin will be set for the account "user", which conflicts our setting for the account "x2gothinclient"
- export LBX2GO_BOOTAPPEND_LIVE
+ if echo -e "$LBX2GO_CONFIG" | grep -q "minidesktop"; then
+ LBX2GO_BOOTAPPEND_LIVE+='timezone=Europe/Berlin noautologin ' # if you use nottyautologin instead of noautologin, an autologin will be set for the account "user", which conflicts our setting for the account "x2gothinclient"
+ export LBX2GO_BOOTAPPEND_LIVE
+ elif echo -e "$LBX2GO_CONFIG" | grep -q "microdesktop"; then
+ LBX2GO_BOOTAPPEND_LIVE+='timezone=Europe/Berlin '
+ export LBX2GO_BOOTAPPEND_LIVE
+ elif echo -e "$LBX2GO_CONFIG" | grep -q "openbox"; then
+ LBX2GO_BOOTAPPEND_LIVE+="fastpo "
+ export LBX2GO_BOOTAPPEND_LIVE
fi
# detect if the selected git repo is meant to build a buster, stretch or jessie image
if [ -z "${LBX2GO_CONFIG##*-stretch}" ] ; then
@@ -153,12 +156,12 @@
# fixing some peculiarities for Ubuntu here
if $(lsb_release -i | grep -i ubuntu -q ) ; then
[ -f /usr/lib/live/build/binary_rootfs ] || ln -s /usr/lib/live/build/lb_binary_rootfs /usr/lib/live/build/binary_rootfs
export LBX2GO_MIRROR=" -m http://deb.debian.org/debian
- --mirror-chroot-security http://security.debian.org/debian/
- --mirror-binary-security http://security.debian.org/debian/
- --parent-mirror-chroot-security http://security.debian.org/debian/
- --parent-mirror-binary-security http://security.debian.org/debian/"
+ --mirror-chroot-security https://security.debian.org/debian-security/
+ --mirror-binary-security https://security.debian.org/debian-security/
+ --parent-mirror-chroot-security https://security.debian.org/debian-security/
+ --parent-mirror-binary-security https://security.debian.org/debian-security/"
else
export LBX2GO_UPDATES="--updates true"
fi
@@ -197,19 +200,19 @@
# note that this will permanently change /usr/lib/live/build/binary_rootfs
#
#
if dpkg --print-architecture | grep -q 'arm' || echo $LBX2GO_ARCH | grep -q 'arm' ; then
- # on arm, these parameters must not be used; if they're there, we need to reinstall the package to undo our patch
- if grep -q -- '-Xbcj x86 -b 1024K -Xdict-size 1024K' /usr/lib/live/build/binary_rootfs; then
- apt install --reinstall live-build
- fi
- # feel free to experiment with these options, but be prepared for subtle breakage
- #export MKSQUASHFS_OPTIONS=' -Xbcj arm '
- #export MKSQUASHFS_OPTIONS=' -b 1024K -Xdict-size 1024K '
- #export MKSQUASHFS_OPTIONS=' -Xbcj arm -b 1024K -Xdict-size 1024K '
- export MKSQUASHFS_OPTIONS=''
+ # on arm, these parameters must not be used; if they're there, we need to reinstall the package to undo our patch
+ if grep -q -- '-Xbcj x86 -b 1024K -Xdict-size 1024K' /usr/lib/live/build/binary_rootfs; then
+ apt install --reinstall live-build
+ fi
+ # feel free to experiment with these options, but be prepared for subtle breakage
+ #export MKSQUASHFS_OPTIONS=' -Xbcj arm '
+ #export MKSQUASHFS_OPTIONS=' -b 1024K -Xdict-size 1024K '
+ #export MKSQUASHFS_OPTIONS=' -Xbcj arm -b 1024K -Xdict-size 1024K '
+ export MKSQUASHFS_OPTIONS=''
else
- export MKSQUASHFS_OPTIONS=' -Xbcj x86 -b 1024K -Xdict-size 1024K '
+ export MKSQUASHFS_OPTIONS=' -Xbcj x86 -b 1024K -Xdict-size 1024K '
fi
# This removes documentation, locales and man pages
# You can safely enable this if you intend to run X2GoClient in fullscreen mode all the time, or when building the ssh-only rescue image.
@@ -217,38 +220,38 @@
export LBX2GO_TCE_SHRINK="true"
# This patches the squashfs file into the initrd. Only parsed when image type "netboot" is set.
# Will require boot parameter live-media=/ instead of fetch=...
- # Both TFTP client and TFTP server must support file transfers >32MB for this to work, if you want to deploy this initrd via TFTP,
+ # Both TFTP client and TFTP server must support file transfers >32MB for this to work, if you want to deploy this initrd via TFTP,
# so e.g. atftpd will not work - tftpd-hpa, however, seems to have no problem with larger files.
# When using iPXE, you can use http instead of TFTP.
# This is especially helpful if you want to netboot via http and cannot use the server's IP, but must specify a DNS name - as "fetch=..." only understands IPs.
#export LBX2GO_NOSQUASHFS="true"
# Select ONE of the following LBX2GO_IMAGETYPE lines and comment out the others
# to create an iso image:
- #export LBX2GO_IMAGETYPE='iso'
+ # export LBX2GO_IMAGETYPE='iso'
# to create an iso image that can also be dd'ed to USB media:
- export LBX2GO_IMAGETYPE='iso-hybrid'
+ # export LBX2GO_IMAGETYPE='iso-hybrid'
# to create a netboot-image:
- #export LBX2GO_IMAGETYPE='netboot'
- # /!\ the options below are NOT RECOMMENDED unless you use live-build from Debian Buster /!\
- # (Debian 10) or newer to create an image that can be written to a hard disk (for older
- # live-build versions, this always results in a "build failed" message, even though the build
- # might have worked - use live-build from Buster or newer and things will work):
+ export LBX2GO_IMAGETYPE='netboot'
+ # /!\ The options below are NOT RECOMMENDED unless you use live-build from Debian Buster/Debian 10 or newer /!\
+ # to create an image that can be written to a hard disk (for older live-build versions, this always results
+ # in a "build failed" message, even though the build might have worked - use live-build from Buster or newer
+ # and things will work):
#export LBX2GO_IMAGETYPE='hdd'
## This might be required for hdd builds, especially for (u)efi
#export LBX2GO_BOOTLOADER="syslinux grub-pc grub-efi"
# to create a tar file only (seems to be broken in older live-build versions - Buster works):
- #export LBX2GO_IMAGETYPE='tar'
+ # export LBX2GO_IMAGETYPE='tar'
# This is part of our experimental ARM support
if echo "$LBX2GO_ARCH" | grep -q "arm" ; then
- # enforce hdd image for arm at the moment (might need to support netboot later on too)
- if ! [ "$LBX2GO_IMAGETYPE" = "hdd" ] ; then
- echo "WARNING: Replacing selected image type with 'hdd'. That's all we currently support on ARM."
- export LBX2GO_IMAGETYPE="hdd"
- fi
+ # enforce hdd image for arm at the moment (might need to support netboot later on too)
+ if ! [ "$LBX2GO_IMAGETYPE" = "hdd" ] ; then
+ echo "WARNING: Replacing selected image type with 'hdd'. That's all we currently support on ARM."
+ export LBX2GO_IMAGETYPE="hdd"
+ fi
fi
if [ "$LBX2GO_IMAGETYPE" = "netboot" ]; then
export LBX2GO_DEFAULTS+=" $LBX2GO_BOOTLOADER"
--
This mail was generated by DokuWiki at
https://wiki.x2go.org/
More information about the x2go-commits
mailing list