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 Both sides next revision
doc:howto:tce [2019/09/17 12:02]
stefanbaur [Starting the Build] we need to fetch kernel and initrd from the chroot directory to be buildtype-independent
doc:howto:tce [2019/09/18 19:29]
stefanbaur [Configuring the Build] updated configuration for experimental ARM support
Line 44: Line 44:
 # we have a successful connect on port 3142, assume # we have a successful connect on port 3142, assume
 # it's apt-cacher-ng and use it # 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 +    # 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 http_proxy=http://127.0.0.1:3128/ 
- # export ftp_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/  +    export LB_APT_FTP_PROXY=http://127.0.0.1:3142/ 
- export LB_APT_HTTP_PROXY=http://127.0.0.1:3142/ +    export LB_APT_HTTP_PROXY=http://127.0.0.1:3142/
 fi fi
  
 # Select ONE of the following git reposities # Select ONE of the following git reposities
 # this one loosely corresponds to "stable" # 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'
 # this one loosely corresponds to "heuler" # this one loosely corresponds to "heuler"
 export LBX2GO_CONFIG='https://github.com/LinuxHaus/live-build-x2go::feature/openbox-magic-pixel-workaround-buster' export LBX2GO_CONFIG='https://github.com/LinuxHaus/live-build-x2go::feature/openbox-magic-pixel-workaround-buster'
Line 68: Line 68:
 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 # 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 # 32-Bit, smallest memory footprint - not available on buster
 # export LBX2GO_ARCH='--architectures i386 --linux-flavours 586' # export LBX2GO_ARCH='--architectures i386 --linux-flavours 586'
 +# EXPERIMENTAL: For ARM (Raspberry Pi), try:
 +# export LBX2GO_ARCH='-a arm64'
 +# Note that ARM builds are currently not working, at least not on the Pi.
  
 # If you want to use the stock ISO image as created by this script, add your boot parameters here # 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 pubkey=http://x2go/x2go-tce/config/authorized_keys sessionsurl=http://x2go/x2go-tce/config/sessions toram"
  
 # detect if the selected git repo is meant to build a buster, stretch or jessie image # detect if the selected git repo is meant to build a buster, stretch or jessie image
 if [ -z "${LBX2GO_CONFIG##*-stretch}" ] ; then if [ -z "${LBX2GO_CONFIG##*-stretch}" ] ; then
-        export LBX2GO_DEBVERSION="stretch" +    export LBX2GO_DEBVERSION="stretch" 
-        export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0"+    export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0"
 elif [ -z "${LBX2GO_CONFIG##*-buster}" ] ; then elif [ -z "${LBX2GO_CONFIG##*-buster}" ] ; then
-        export LBX2GO_DEBVERSION="buster" +    export LBX2GO_DEBVERSION="buster" 
-        export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0"+    export LBX2GO_BOOTAPPEND_LIVE+=" net.ifnames=0 biosdevname=0"
 else else
-        export LBX2GO_DEBVERSION="jessie"+    export LBX2GO_DEBVERSION="jessie"
 fi fi
  
 # newer versions of live-build use the plural form of this parameter # newer versions of live-build use the plural form of this parameter
 if $(LANG=C lb config --help | grep -q bootloaders) ; then if $(LANG=C lb config --help | grep -q bootloaders) ; then
-        export LBX2GO_BOOTLOADERPARAMNAME="--bootloaders"+    export LBX2GO_BOOTLOADERPARAMNAME="--bootloaders"
 else else
-        export LBX2GO_BOOTLOADERPARAMNAME="--bootloader"+    export LBX2GO_BOOTLOADERPARAMNAME="--bootloader"
 fi fi
  
 # set boot loader type - leave this unchanged unless you really know what you're doing # set boot loader type - leave this unchanged unless you really know what you're doing
-export LBX2GO_BOOTLOADER="syslinux"+if echo $LBX2GO_ARCH | awk '{print $2}' | grep -q "arm" ; then 
 +    # This is part of our experimental ARM support 
 +    LBX2GO_BOOTLOADERPARAMNAME="
 +    LBX2GO_BOOTLOADER="
 +else 
 +    export LBX2GO_BOOTLOADER="syslinux" 
 +fi
  
 # These options are meant to reduce the image size. # These options are meant to reduce the image size.
Line 128: Line 137:
                         --distribution $LBX2GO_DEBVERSION"                         --distribution $LBX2GO_DEBVERSION"
  
 +# This is part of our experimental ARM support
 +if echo "$LB_X2GO_ARCH" | grep -q 'arm'; then
 +    export LBX2GO_DEFAULTS+=" --bootstrap-qemu-arch arm64 \
 +                              --bootstrap-qemu-static /usr/bin/qemu-arm-static"
 +fi
  
 export LBX2GO_ARCHIVE_AREAS="main contrib non-free" export LBX2GO_ARCHIVE_AREAS="main contrib non-free"
  
 # 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
-#export LBX2GO_LANG='de'+# export LBX2GO_LANG='de'
  
 # This is to optimize squashfs size, based on a suggestion by intrigeri from the TAILS team # This is to optimize squashfs size, based on a suggestion by intrigeri from the TAILS team
Line 145: Line 159:
 # This patches the squashfs file into the initrd. Only parsed when image type "netboot" is set. # 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=... # 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. # 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. # When using iPXE, you can use http instead of TFTP.
Line 155: Line 169:
 # export LBX2GO_IMAGETYPE='iso' # export LBX2GO_IMAGETYPE='iso'
 # to create an iso image that can also be dd'ed to USB media: # 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: # to create a netboot-image:
 export LBX2GO_IMAGETYPE='netboot' export LBX2GO_IMAGETYPE='netboot'
doc/howto/tce.txt · Last modified: 2024/01/26 19:49 by stefanbaur