summaryrefslogtreecommitdiff
path: root/lx-trainer-vm
AgeCommit message (Collapse)Author
2018-12-11lx-trainer-image: add networking toolsJohn Ogness
For the networking trainings, additional tools are needed. Add them: - ebtables - arptables - nftables - iptables-nftables-compat - ethtool - traceroute - mtr - iptraf - quagga Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-11-29lx-trainer-vm: add pwgenJohn Ogness
A nice tool to quickly generate secure passwords. For example with: pwgen -sy 32 1 Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-11-22lx-trainer-vm: add libpam-capJohn Ogness
The security schulung has an example involving capabilities assigned via PAM login. This package is needed for it. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-11-21lx-trainer-vm: set root:root as /opt/* ownerJohn Ogness
The linaro toolchain creates files with some obscure user/group. Instead of trusting the owners/permissions of the downloaded archives, recursively set all /opt to root:root. If for some reason any files are setuid, this will also clear that bit. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-11-09lx-trainer-img: use FQDN for nereusJohn Ogness
If building the image from a machine other than nereus, the name nereus (used in fine-tuning wget) cannot be resolved. Use the FQDN instead. That works (as long as you are in the Linutronix network). Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-10-19lx-trainer-vm: add iwJohn Ogness
This is the wireless tool to use for the future. iwlist/iwconfig are old. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-10-08lx-trainer-vm: setup console in finetuningJohn Ogness
Normally the console font and keyboard is setup on first boot. But this can be done in the finetuning so that we do not rely on a "first boot" for the console to be setup correctly. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-10-08lx-trainer-vm: use firmware from stretch backportsJohn Ogness
Most of the firmware packages have versions in stretch backports that support more hardware. Use these in an attempt to work for all laptops. NOTE: There are a few firmware packages that are not in stretch backports. These are still taking from stretch. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-09-28lx-trainer-vm: add tftp and ftpJohn Ogness
During a training I needed these tools. Especially tftp is useful for verifying that the tftp server is available. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-09-06dd-multi: workaround mount/umount issueJohn Ogness
It seems that calling umount directly after mount can lead to a busy error. With strace on umount the problem goes away. It must be a very small window. Someone should debug the umount syscall on this. It is reproducable with: ./dd-multi.sh lx-trainer.img /dev/sdx (i.e. regular training image and no layers) Implement a workaround for this for now. From the comments... If there were no layer files added, umount might return a busy error since we just mounted. (Possibly a kernel bug.) By accessing the filesytem before unmounting it, the mount/umount problem seems to go away. Use "ls" to access the filesystem. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-06-20lx-trainer-vm: add mate power managerJohn Ogness
In the last 2 trainings I've had participants with batteries going dead because there was no display for the battery status. The mate power manager provides this feature. Add it to the image. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-06-18lx-trainer-vm: add packages missing from audio schulungJohn Ogness
During the audio schulung, we needed to manually install: qjackctl libjack-dev Also, compiling the new kernels now requires: libelf-dev Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-06-09lx-trainer-vm: add audio packages for juce workshopJohn Ogness
JUCE itself is not installed (it is broken in stretch). Instead, all JUCE dependencies are installed and the upstream JUCE will be used for the workshop. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-06-09lx-trainer-vm: remove duplicate package namesJohn Ogness
Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-05-15lx-trainer-vm: yocto: add toaster/documentation depsJohn Ogness
For the yocto training, some important packages are missing. Toaster requires pip for python3. The documentation requires xsltproc and fop. Install them. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-05-14secureboot: remove references to lx-trainer.imgJohn Ogness
Use the image/device argument now passed to the script. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-05-07secureboot: allow device or image specificationJohn Ogness
Rather than assuming the image file lx-trainer.img in the current working directory, require an argument that specifies this. Also, allow this argument to be a block device to perform the secure boot preparation on devices already prepared with the image. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-05-04dd-multi.sh: unpack layers in parallelJohn Ogness
Start the untar processes in parallel. This will take advantage of file caching and should max out the USB bandwidth. This is important because some trainings (like Yocto) have huge layers. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-05-04dd-multi.sh: check if /home is empty before copyingJohn Ogness
/home shouldn't be empty, but check just in case. Getting an error in the middle of the script is very annoying. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-05-04dd-multi.sh: check for layers before beginningJohn Ogness
It is very annoying if the script aborts in the middle because of something like missing files. Check for them in the beginnning. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-05-04lx-trainer-vm: upgrade eclipseJohn Ogness
... from neon-3 to oxygen-3a. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-04-20secureboot: add make_lxtrainer_secureboot.sh scriptJohn Ogness
Eventually the lx-trainer image will come with secure boot automatically. But for now, we have to manually adjust the image. Here is a script to do that. Also update the README. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-04-20dd-multi.sh: unpack the tarballs directlyJohn Ogness
Tarballs are copied to the USB drives and then unpacked in a chroot. However, this means the data will travel across the bus three times! For large layers this is craziness. Since --numeric-owner is used anyway, just unpack the tarballs directly. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-04-05dd-multi: update/cleanup for gpt supportJohn Ogness
- require gpt images and expect partition layout and sizes from lx-trainer-vm.xml - cleanup output - use dd instead of cat (to allow progress status) - use parted instead of fdisk (necessary to fix gpt table) - remove unnecessary partprobe's Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-04-05lx-trainer-vm: do not explicitly mount debugfsJohn Ogness
Debian will mount debugfs by default. Do not explicitly specify it in /etc/fstab. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-04-05lx-trainer-vm: change boot to uefi/bios hybridJohn Ogness
This requires devel/elbe-3.0 branch to build! In particular, commit 79adee34de55 ("Add support for hybrid images (UEFI+Bios)") Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-04-05lx-trainer-vm: do not create lx-trainer.tar.gzJohn Ogness
Creating this tarball takes a long time and a lot of space on the initvm. Since this file is not needed, stop creating it. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-03-20dd-multi.sh: loop partprobe until successJohn Ogness
When partitioning many devices, it is possible that partprobe returns with a "EBUSY" error. Loop until partprobe succeeds. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-03-19lx-trainer.img: force nfs server to version 2John Ogness
In order for the qemu arm vm's to nfs root out-of-the-box, either the client must specify v3 or the server must restrict itself to version 2. Rather than expecting special arguments from the client, force the lx-trainer image to use nfs server version 2. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-03-02add colordiff toolJohn Ogness
Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-02-23dd-multi.sh: wait for new partitionsJohn Ogness
There is a latency between when partprobe is called and when udev actually creates the device nodes. Wait for the desired device nodes to appear before continuing. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-02-23add gnome-screenshotJohn Ogness
Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-02-20dd-multi.sh: add support for layer tarballs in subdirsJohn Ogness
Use 'basename' to isolate the layer tarball filename in case they are specified in a directory other than the current working directory. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-02-19dd-multi.sh: change partitioning procedureJohn Ogness
Initially write 10MB of 0's instead of 1MB to make sure any tables at the beginning are really gone. Rather than calling 'partprobe' with no arguments, explicitly pass the list of devices to re-read. 'fdisk' is used to create the 2nd (/home) partition. Do not do that in the background but instead synchronously for each device. Add a 'sync' afterwards to hopefully create a barrier before rescanning the devices. This is should address a problem where 'partprobe' is run too early and the kernel does not find the 2nd partition of the last device. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2018-01-17do not add devel user to wireshark groupJohn Ogness
There is no wireshark group by default. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-12-19add a userspace tracing exampleManuel Traut
using lttng-ust, perf and tshark traces can be shown in tracecompass Signed-off-by: Manuel Traut <manut@linutronix.de>
2017-12-19extra: remove extra scriptsJohn Ogness
dd-multi.sh now supports layers so there is no need for the example/archived extra scripts. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-12-19README: add information about --layer optionJohn Ogness
Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-12-19lx-trainer-vm: add finetuning commentsJohn Ogness
Clarify what the different finetuning steps are doing. Since some of the steps are complicated, a description helps users to determine if the finetuning steps are correct. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-12-19lx-trainer-vm: add useful tools during trainingsJohn Ogness
ntfs-3g: some users need to read/write mount ntfs partitions netcat-traditional: critical tool for testing network connections geeqie: simple yet effective image viewer gnuplot: generate graphical cyclictest latency graphs Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-12-19lx-trainer-vm: change to ftp.de.debian.orgJohn Ogness
The use of httpredir might cause problems with elbe. Use servers that are known to work reliably. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-12-19lx-trainer-vm: remove i386 compatibilityJohn Ogness
Years ago dengler needed the i386 libs for his security schulung. He has confirmed he no longer needs these, so remove them. The main motivation for the removal is to simplify local mirrors, no longer requiring i386. Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-12-19dd-multi.sh: add layer supportJohn Ogness
Layers can now be specified using: --layer=tarball Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-10-12trainer image: use nereus instead of 10.0.2.2John Ogness
Since elbe should be run in a container, we need the name.
2017-09-18update scripts and READMEJohn Ogness
- removed extra dd-variation scripts - updated script for general usage (src/dest as arguments) - adjusted script to support modifying new image - moves /home/* from part1 to part2 - adds /home entry to /etc/fstab - moved manut's update-home.sh to "extra" directory (may still be in use? until a general replacement exists) Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-09-18image: update to stretchJohn Ogness
- when run from nereus, the image will be complete out-of-the-box Signed-off-by: John Ogness <john.ogness@linutronix.de>
2017-01-19add more useful softwareJohn Ogness
2016-11-11lx-trainer: add tools and libs for security trainingHolger Dengler
- analysis: john the ripper, nmap - application security: lxc, libcap-dev - crypto: xca Signed-off-by: Holger Dengler <dengler@linutronix.de>
2016-07-13Revert accidentally commited changes in dd-scriptsHolger Dengler
Signed-off-by: Holger Dengler <dengler@linutronix.de>
2016-06-29yocto: add ilus exportsrc.bblcassManuel Traut
it's a simple example for a class Signed-off-by: Manuel Traut <manut@linutronix.de>