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

wiki-admin at x2go.org wiki-admin at x2go.org
Mon Jun 19 23:53:09 CEST 2017


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

Date        : 2017/06/19 21:53
Browser     : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
IP-Address  : 78.43.91.217
Hostname    : HSI-KBW-078-043-091-217.hsi4.kabel-badenwuerttemberg.de
Old Revision: https://wiki.x2go.org/doku.php/doc:howto:tce?rev=1497902854
New Revision: https://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: moved LBX2GO_TCE_SHRINK and LBX2GO_NOSQUASHFS to first script, added documentation
User        : stefanbaur

@@ -73,8 +73,19 @@
  
  # 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
  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
+ 
+ # 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.
+ # For all other uses of the TCE-Live image creator (i.e. Minidesktop), your results may vary ... use at your own risk.
+ export LBX2GO_TCE_SHRINK="true"
+ 
+ # This patches the squashfs file into the initrd. Only useful for netbooting.
+ # 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.
+ # When using iPXE, you can use http instead of TFTP.
+ export LBX2GO_NOSQUASHFS="false"
  
  # Select ONE of the following LBX2GO_IMAGETYPE lines and comment out the others 
  # to create an iso image:
  # export LBX2GO_IMAGETYPE='iso'
@@ -337,10 +348,8 @@
      if [ -d "../patch" ] ; then
          cp -a ../patch/* config/
      fi
      if [ "$LBX2GO_TCE_SHRINK" = "true" ] ; then
-         # You can safely set
$LBX2GO_TCE_SHRINK = "true" if you intend to run X2GoClient in fullscreen mode all the time.
-         # For all other uses of the TCE-Live image creator (i.e. Minidesktop), your results may vary ... use at your own risk
          echo '#!/bin/sh' >./config/hooks/0112-remove-folders.hook.chroot
          echo 'set -e' >>./config/hooks/0112-remove-folders.hook.chroot
          echo '# Remove folders' >>./config/hooks/0112-remove-folders.hook.chroot
          echo 'rm -rf ./usr/share/doc/*' >>./config/hooks/0112-remove-folders.hook.chroot
@@ -357,9 +366,9 @@
              ln ./tftpboot/live/initrd.img ./x2go-tce-initrd.img
              if [ "$LBX2GO_NOSQUASHFS" = "true" ] ; then
                  (cd binary; echo live$'\n'live/filesystem.squashfs |cpio -o -H newc | gzip --fast) >./x2go-tce-filesystem.cpio.gz
                  cat ./x2go-tce-initrd.img ./x2go-tce-filesystem.cpio.gz >./x2go-tce-initrd-with-fs.img
-                 rm ./x2go-tce-filesystem.cpio.gz
+                 rm
./x2go-tce-filesystem.cpio.gz ./x2go-tce-filesystem.squashfs
              fi
          fi
          if [ "$LBX2GO_IMAGETYPE" = "iso" ] || [ "$LBX2GO_IMAGETYPE" = "iso-hybrid" ] ; then
              ln ./binary/live/vmlinuz ./x2go-tce-vmlinuz


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



More information about the x2go-commits mailing list