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/107.0.0.0 Safari/537.36 IP Address : 78.43.74.240 Hostname : ip-078-043-074-240.um18.pools.vodafone-ip.de Old Revision : https://wiki.x2go.org/doku.php/doc:howto:tce?rev=1663757964 New Revision : https://wiki.x2go.org/doku.php/doc:howto:tce Date of New Revision: 2022/12/02 12:57 Edit Summary : [Configuring the Build] updated buildscript 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. @@ -43,11 +43,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/ @@ -59,35 +59,43 @@ #export LBX2GO_GETSRC="true" # Select ONE of the following git reposities # this one loosely corresponds to "stable" - # export LBX2GO_CONFIG='git://code.x2go.org/live-build-x2go.git::feature/openbox-magic-pixel-workaround-buster' + #export LBX2GO_CONFIG='git://code.x2go.org/live-build-x2go.git::feature/openbox-magic-pixel-workaround-buster' + #export LBX2GO_CONFIG='git://code.x2go.org/live-build-x2go.git::feature/mate-minidesktop-buster' + export LBX2GO_CONFIG='git://code.x2go.org/live-build-x2go.git::feature/openbox-magic-pixel-workaround-bullseye' + #export LBX2GO_CONFIG='git://code.x2go.org/live-build-x2go.git::feature/mate-minidesktop-bullseye' # this one loosely corresponds to "heuler" - export LBX2GO_CONFIG='https://github.com/LinuxHaus/live-build-x2go::feature/openbox-magic-pixel-wo...' - # NOTE: Add "-stretch" to the end of the LBX2GO_CONFIG string to create a stretch build, and "-buster" for a buster build - # NOTE: As of 2019-08-27, buster builds are only available via the github repo and for the feature/openbox-magic-pixel-workaround-buster and feature/mate-minidesktop-buster branches + #export LBX2GO_CONFIG='https://github.com/LinuxHaus/live-build-x2go::feature/openbox-magic-pixel-wo...' + #export LBX2GO_CONFIG='https://github.com/LinuxHaus/live-build-x2go::feature/openbox-mate-minideskt...' + #export LBX2GO_CONFIG='https://github.com/LinuxHaus/live-build-x2go::feature/openbox-magic-pixel-wo...' + #export LBX2GO_CONFIG='https://github.com/LinuxHaus/live-build-x2go::feature/openbox-mate-minideskt...' + # NOTE: 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 # Select ONE of the following LBX2GO_ARCH lines and comment out the others # (feel free to use long or short options) # for 64-Bit builds, use: - export LBX2GO_ARCH='-a amd64 -k amd64' + #export LBX2GO_ARCH='-a amd64 -k amd64' # 32-Bit, larger memory footprint, but faster performance on i686 and newer - # export LBX2GO_ARCH='-a i386 -k 686-pae' + #export LBX2GO_ARCH='-a i386 -k 686-pae' # 32-Bit, smallest memory footprint - not available on buster # export LBX2GO_ARCH='--architectures i386 --linux-flavours 586' # For ARM (Raspberry Pi): - #export LBX2GO_ARCH='-a arm64' - #export LBX2GO_ARCH_MODEL='Pi4' # you can also set this to 'Pi3'. Note that there must not be any whitespace between 'Pi' and the digit. + export LBX2GO_ARCH='-a arm64' + export LBX2GO_ARCH_MODEL='Pi4' # you can also set this to 'Pi3'. Note that there must not be any whitespace between 'Pi' and the digit. # 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://x2go.baur-itcs.de/.config/x2go-demo/config/sessions pubkey=https://x2go.baur-itcs.de/.config/x2go-demo/config/authorized_keys toram " if echo -e "$LBX2GO_CONFIG" | grep -q "openbox"; then - LBX2GO_BOOTAPPEND_LIVE+="fastpo " - export LBX2GO_BOOTAPPEND_LIVE + 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 + 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 fi # detect if the selected git repo is meant to build a buster, stretch or jessie image if [ -z "${LBX2GO_CONFIG##*-stretch}" ] ; then @@ -100,8 +108,11 @@ export LBX2GO_DEBVERSION="buster" export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0" elif [ -z "${LBX2GO_CONFIG##*-buster}" ] ; then export LBX2GO_DEBVERSION="buster" + export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0" + elif [ -z "${LBX2GO_CONFIG##*-bullseye}" ] ; then + export LBX2GO_DEBVERSION="bullseye" export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0" else export LBX2GO_DEBVERSION="jessie" fi @@ -123,9 +134,10 @@ fi # These options are meant to reduce the image size. # Feel free to adapt them after consulting "man lb_config" - export LBX2GO_SPACE='--apt-indices none + # FIXME export LBX2GO_SPACE='--apt-indices none + export LBX2GO_SPACE='--apt-indices false --apt-recommends false --cache false --checksums none --firmware-binary false @@ -176,15 +188,22 @@ # export LBX2GO_LANG='de' # This is to optimize squashfs size, based on a suggestion by intrigeri from the TAILS team # note that this will permanently change /usr/lib/live/build/binary_rootfs + # + # if dpkg --print-architecture | 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 + # 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 - sed -i -e 's#MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -comp xz"#MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -comp xz -Xbcj x86 -b 1024K -Xdict-size 1024K"#' /usr/lib/live/build/binary_rootfs + 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. @@ -192,40 +211,42 @@ 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" + #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' + #export LBX2GO_IMAGETYPE='netboot' # /!\ the options below are NOT RECOMMENDED unless you use live-build from Debian Buster /!\ # 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 + # always results in a "build failed" message, even though the build might have worked - use # live-build from Buster and things will work): - # export LBX2GO_IMAGETYPE='hdd' + #export LBX2GO_IMAGETYPE='hdd' + ## DEBUG FIXME + #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." - 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 - LBX2GO_DEFAULTS+=" $LBX2GO_BOOTLOADER" + export LBX2GO_DEFAULTS+=" $LBX2GO_BOOTLOADER" fi </code> ==== Live-Patching the Build ==== -- This mail was generated by DokuWiki at https://wiki.x2go.org/