A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 17:38
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487438297
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Starting the Build] paths were wrong, script was not executable
User : stefanbaur
@@ -338,15 +338,16 @@
fi
if [ $X2GOTCE_SHRINK = "true" ] ; then
# You can safely set $X2GOTCE_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/normal/0112-remove-folders.hook.chroot
- echo 'set -e'
>>./config/hooks/normal/0112-remove-folders.hook.chroot
- echo '# Remove folders' >>./config/hooks/normal/0112-remove-folders.hook.chroot
- echo 'rm -rf /usr/share/doc/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
- echo 'rm -rf /usr/share/locale/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
- echo 'rm -rf /usr/share/man/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
- echo 'rm -rf ./squashfs-root/var/lib/apt/lists/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
+ 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/normal/0112-remove-folders.hook.chroot
+ echo 'rm -rf ./usr/share/locale/*' >>./config/normal/0112-remove-folders.hook.chroot
+ echo 'rm -rf
./usr/share/man/*' >>./config/normal/0112-remove-folders.hook.chroot
+ echo 'rm -rf ./var/lib/apt/lists/*' >>./config/normal/0112-remove-folders.hook.chroot
+ chmod 755 ./config/normal/0112-remove-folders.hook.chroot
fi
if lb build ; then
echo -e "Build is done: '$LBX2GO_TCEDIR'"
ln ./binary/live/filesystem.squashfs ./x2go-tce-filesystem.squashfs
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 17:18
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487438218
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Configuring the Build] add squashfs optimizations, as suggested by intrigeri from TAILS
User : stefanbaur
@@ -69,8 +69,11 @@
--security true
--updates true'
export LBX2GO_ARCHIVE_AREAS="main contrib non-free"
+
+ # This is to optimize squashfs size, as suggested by intrigeri from the TAILS team
+ export MKSQUASHFS_OPTIONS="-comp xz -Xbcj x86 -b 1024K -Xdict-size 1024K"
# Select ONE of the following LBX2GO_IMAGETYPE lines and comment out the others
# to create an iso
image:
# export LBX2GO_IMAGETYPE='iso'
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 17:16
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487438119
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Configuring the Build] no longer requires "apt-recommends true"
User : stefanbaur
@@ -54,17 +54,14 @@
# 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
- --apt-recommends true
+ --apt-recommends false
--cache false
--checksums none
--firmware-binary false
--memtest none
--win32-loader
false'
- # Note: you can safely set "--apt-recommends false" if
- # you are using the github.com/LinuxHaus/ repository
- # The official repository will follow soon.
# These are default values that should not require tuning
export LBX2GO_DEFAULTS='--backports true
--firmware-chroot true
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 17:15
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487438085
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Starting the Build] whitespace fix
User : stefanbaur
@@ -335,9 +335,9 @@
--archive-areas "$LBX2GO_ARCHIVE_AREAS"
if [ -d "../patch" ] ; then
cp -a ../patch/* config/
fi
- if [ $X2GOTCE_SHRINK = "true" ] ; then
+ if [ $X2GOTCE_SHRINK = "true" ] ; then
# You can safely set $X2GOTCE_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/normal/0112-remove-folders.hook.chroot
echo 'set -e' >>./config/hooks/normal/0112-remove-folders.hook.chroot
@@ -345,9 +345,9 @@
echo 'rm -rf /usr/share/doc/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
echo 'rm -rf /usr/share/locale/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
echo 'rm -rf /usr/share/man/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
echo 'rm -rf ./squashfs-root/var/lib/apt/lists/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
- fi
+ fi
if lb build ; then
echo -e "Build is done: '$LBX2GO_TCEDIR'"
ln ./binary/live/filesystem.squashfs ./x2go-tce-filesystem.squashfs
if [ "$LBX2GO_IMAGETYPE" = "netboot" ] ; then
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 17:14
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487437738
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Starting the Build] moved deletion into hooks script
User : stefanbaur
@@ -335,21 +335,22 @@
--archive-areas "$LBX2GO_ARCHIVE_AREAS"
if [ -d "../patch" ] ; then
cp -a ../patch/* config/
fi
+ if [ $X2GOTCE_SHRINK = "true" ] ; then
+ # You can safely set $X2GOTCE_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/normal/0112-remove-folders.hook.chroot
+ echo 'set -e' >>./config/hooks/normal/0112-remove-folders.hook.chroot
+ echo '# Remove folders' >>./config/hooks/normal/0112-remove-folders.hook.chroot
+ echo 'rm -rf /usr/share/doc/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
+ echo 'rm -rf /usr/share/locale/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
+ echo 'rm -rf /usr/share/man/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
+ echo 'rm -rf ./squashfs-root/var/lib/apt/lists/*' >>./config/hooks/normal/0112-remove-folders.hook.chroot
+ fi
if lb build ; then
echo -e "Build is done: '$LBX2GO_TCEDIR'"
ln ./binary/live/filesystem.squashfs ./x2go-tce-filesystem.squashfs
- if [ $X2GOTCE_SHRINK = "true" ] ; then
- # You can safely set $X2GOTCE_SHRINK = "true" if you intend to run X2GoClient in fullscreen mode all the time.
-
# For all other uses of the TCE-Live image creator, your results may vary ... use at your own risk.
- # This code unpacks the squashfs, deletes a few directory contents that would only be useful for shell logins and local apps,
- # then repacks everything again, with a larger block size and better compression.
- # Effects: Build time will increase, loading time and ramdisk size will decrease.
- unsquashfs ./x2go-tce-filesystem.squashfs
- rm -rf ./squashfs-root/usr/share/doc/* ./squashfs-root/usr/share/locale/* ./squashfs-root/usr/share/man/* ./squashfs-root/var/lib/apt/lists/*
- (cd squashfs-root && mksquashfs . ../x2go-tce-filesystem.squashfs -b 1048576 -comp xz -noappend) && rm -rf ./squashfs-root
- fi
if [ "$LBX2GO_IMAGETYPE" = "netboot" ] ; then
ln ./tftpboot/live/vmlinuz ./x2go-tce-vmlinuz
ln ./tftpboot/live/initrd.img
./x2go-tce-initrd.img
fi
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 17:08
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487426326
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Starting the Build] whitespace fix
User : stefanbaur
@@ -339,17 +339,17 @@
if lb build ; then
echo -e "Build is done: '$LBX2GO_TCEDIR'"
ln ./binary/live/filesystem.squashfs ./x2go-tce-filesystem.squashfs
if [ $X2GOTCE_SHRINK = "true" ] ; then
- # You can safely set $X2GOTCE_SHRINK = "true" if you intend to run X2GoClient in fullscreen mode all the time.
- # For all other uses of the TCE-Live image creator, your results may vary ... use at your own risk.
- # This code unpacks the squashfs,
deletes a few directory contents that would only be useful for shell logins and local apps,
- # then repacks everything again, with a larger block size and better compression.
- # Effects: Build time will increase, loading time and ramdisk size will decrease.
- unsquashfs ./x2go-tce-filesystem.squashfs
- rm -rf ./squashfs-root/usr/share/doc/* ./squashfs-root/usr/share/locale/* ./squashfs-root/usr/share/man/* ./squashfs-root/var/lib/apt/lists/*
- (cd squashfs-root && mksquashfs . ../x2go-tce-filesystem.squashfs -b 1048576 -comp xz -noappend) && rm -rf ./squashfs-root
- fi
+ # You can safely set $X2GOTCE_SHRINK = "true" if you intend to run X2GoClient in fullscreen mode all the time.
+ # For all other uses of the TCE-Live image creator, your results may vary ... use at your own risk.
+ # This code unpacks the squashfs, deletes a few directory contents that would only be useful for shell logins
and local apps,
+ # then repacks everything again, with a larger block size and better compression.
+ # Effects: Build time will increase, loading time and ramdisk size will decrease.
+ unsquashfs ./x2go-tce-filesystem.squashfs
+ rm -rf ./squashfs-root/usr/share/doc/* ./squashfs-root/usr/share/locale/* ./squashfs-root/usr/share/man/* ./squashfs-root/var/lib/apt/lists/*
+ (cd squashfs-root && mksquashfs . ../x2go-tce-filesystem.squashfs -b 1048576 -comp xz -noappend) && rm -rf ./squashfs-root
+ fi
if [ "$LBX2GO_IMAGETYPE" = "netboot" ] ; then
ln ./tftpboot/live/vmlinuz ./x2go-tce-vmlinuz
ln ./tftpboot/live/initrd.img ./x2go-tce-initrd.img
fi
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 13:58
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487424517
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Starting the Build] added noappend to avoid appending to squashfs
User : stefanbaur
@@ -346,9 +346,9 @@
# then repacks everything again, with a larger block size and better compression.
# Effects: Build time will increase, loading time and ramdisk size will decrease.
unsquashfs ./x2go-tce-filesystem.squashfs
rm -rf ./squashfs-root/usr/share/doc/* ./squashfs-root/usr/share/locale/* ./squashfs-root/usr/share/man/* ./squashfs-root/var/lib/apt/lists/*
- (cd squashfs-root && mksquashfs .
../x2go-tce-filesystem.squashfs -b 1048576 -comp xz) && rm -rf ./squashfs-root
+ (cd squashfs-root && mksquashfs . ../x2go-tce-filesystem.squashfs -b 1048576 -comp xz -noappend) && rm -rf ./squashfs-root
fi
if [ "$LBX2GO_IMAGETYPE" = "netboot" ] ; then
ln ./tftpboot/live/vmlinuz ./x2go-tce-vmlinuz
ln ./tftpboot/live/initrd.img ./x2go-tce-initrd.img
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 13:28
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487422614
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Starting the Build] tab->spaces
User : stefanbaur
@@ -339,17 +339,17 @@
if lb build ; then
echo -e "Build is done: '$LBX2GO_TCEDIR'"
ln ./binary/live/filesystem.squashfs ./x2go-tce-filesystem.squashfs
if [ $X2GOTCE_SHRINK = "true" ] ; then
- # You can safely set $X2GOTCE_SHRINK = "true" if you intend to run X2GoClient in fullscreen mode all the time.
- # For all other uses of the TCE-Live image creator, your results may vary ... use at your own risk.
- # This code unpacks the squashfs, deletes a few directory
contents that would only be useful for shell logins and local apps,
- # then repacks everything again, with a larger block size and better compression.
- # Effects: Build time will increase, loading time and ramdisk size will decrease.
- unsquashfs ./x2go-tce-filesystem.squashfs
- rm -rf ./squashfs-root/usr/share/doc/* ./squashfs-root/usr/share/locale/* ./squashfs-root/usr/share/man/* ./squashfs-root/var/lib/apt/lists/*
- (cd squashfs-root && mksquashfs . ../x2go-tce-filesystem.squashfs -b 1048576 -comp xz) && rm -rf ./squashfs-root
- fi
+ # You can safely set $X2GOTCE_SHRINK = "true" if you intend to run X2GoClient in fullscreen mode all the time.
+ # For all other uses of the TCE-Live image creator, your results may vary ... use at your own risk.
+ # This code unpacks the squashfs, deletes a few directory contents that would only be useful for shell logins and local apps,
+ # then repacks everything again, with a larger block size and
better compression.
+ # Effects: Build time will increase, loading time and ramdisk size will decrease.
+ unsquashfs ./x2go-tce-filesystem.squashfs
+ rm -rf ./squashfs-root/usr/share/doc/* ./squashfs-root/usr/share/locale/* ./squashfs-root/usr/share/man/* ./squashfs-root/var/lib/apt/lists/*
+ (cd squashfs-root && mksquashfs . ../x2go-tce-filesystem.squashfs -b 1048576 -comp xz) && rm -rf ./squashfs-root
+ fi
if [ "$LBX2GO_IMAGETYPE" = "netboot" ] ; then
ln ./tftpboot/live/vmlinuz ./x2go-tce-vmlinuz
ln ./tftpboot/live/initrd.img ./x2go-tce-initrd.img
fi
@@ -370,10 +370,8 @@
fi
cd ..
fi
</code>
-
-
===== Netbooting =====
==== Prerequisites ====
* You need an existing DHCP/PXE/TFTP setup with the usual pxelinux.0/pxelinux.cfg boot and configuration files, and a directory where kernel and initrd can be stored. This is not covered here, though we might add a separate howto for
that some time later on.
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2017/02/18 12:54
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
IP-Address : 78.43.90.159
Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de
Old Revision: http://wiki.x2go.org/doku.php/doc:howto:tce?rev=1487421943
New Revision: http://wiki.x2go.org/doku.php/doc:howto:tce
Edit Summary: [Starting the Build] added shrinker
User : stefanbaur
@@ -338,8 +338,18 @@
fi
if lb build ; then
echo -e "Build is done: '$LBX2GO_TCEDIR'"
ln ./binary/live/filesystem.squashfs ./x2go-tce-filesystem.squashfs
+ if [ $X2GOTCE_SHRINK = "true" ] ; then
+ # You can safely set $X2GOTCE_SHRINK = "true" if you intend to run X2GoClient in fullscreen mode all the time.
+ # For all other uses of the TCE-Live image creator, your results may vary ... use at your own risk.
+ # This code unpacks the squashfs, deletes a few
directory contents that would only be useful for shell logins and local apps,
+ # then repacks everything again, with a larger block size and better compression.
+ # Effects: Build time will increase, loading time and ramdisk size will decrease.
+ unsquashfs ./x2go-tce-filesystem.squashfs
+ rm -rf ./squashfs-root/usr/share/doc/* ./squashfs-root/usr/share/locale/* ./squashfs-root/usr/share/man/* ./squashfs-root/var/lib/apt/lists/*
+ (cd squashfs-root && mksquashfs . ../x2go-tce-filesystem.squashfs -b 1048576 -comp xz) && rm -rf ./squashfs-root
+ fi
if [ "$LBX2GO_IMAGETYPE" = "netboot" ] ; then
ln ./tftpboot/live/vmlinuz ./x2go-tce-vmlinuz
ln ./tftpboot/live/initrd.img ./x2go-tce-initrd.img
fi
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/