From 025c48926a0258321a2f4158ba376a83659ff7b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 18 Sep 2019 21:44:10 +0200 Subject: [PATCH] live system for linux introduction course --- live.mk | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 live.mk diff --git a/live.mk b/live.mk new file mode 100644 index 0000000..d53d7b5 --- /dev/null +++ b/live.mk @@ -0,0 +1,86 @@ +## Choose only on of the possible target types +# image=disk.img +# squash=rootfs.squash +iso=live.iso + +## Image size in MB. Needs to be able to hold all software. +# imagesize=3072 + +## Additional packages +# packages=chromium,chromium-sandbox,chromium-l10n,okular,libreoffice-writer,libreoffice-calc,libreoffice-l10n-de,libreoffice-gnome,hyphen-de,hunspell-de-de-frami,ssh,gparted,vlc,aqemu,qemu-kvm,leafpad,network-manager-gnome,synaptic,man,manpages-de,dolphin +packages=firefox-esr,firefox-esr-l10n-de,okular,libreoffice-writer,libreoffice-calc,libreoffice-l10n-de,libreoffice-gnome,hyphen-de,hunspell-de-de-frami,ssh,gparted,vlc,aqemu,qemu-kvm,qemu-utils,mousepad,network-manager-gnome,synaptic,man-db,manpages-de,dolphin,alsa-utils,pulseaudio,pavucontrol,konsole,inkscape,rdesktop,tmux,debootstrap,ntfs-3g,exfat-utils,exfat-fuse,dosfstools,qemu-system-gui + +## Debian release, so far only stretch has been tested +release=buster + +## Comma separated list of config modules from modules/ directory +modules=nodm,xfce,live #,approx + +## Hostname for the generated machine +hostname=live + +## Root password will be salted and encrypted in image +rootpass=root + +## The corresponding .pub file for the given rootkey will be applied as +## SSH login file for the root user. +## If the pub file is not found, a new key pair will be generated +# rootkey=image_ssh + +## Comma separated list of users to be set up. +## User logins will start out with an empty password +## If the live module is in use, users will also be added to the sudo group +# users=adam,steve +users=live + +## Wifi configuration, if a Wifi password is given, WPA encryption will be used +## without the password, the system will try to connect to an open wifi +#wifi=berlin.freifunk.net +# wifi=MyWiFi +# wifipass=P4ssW0rD + +## Timezone as offered by Debians tzdata selection +timezone=Europe/Berlin + +## Comma separated list of locales, first one will become default locale +locales=de_DE.UTF-8 #,en_US.UTF-8 + +## If nodm is installed, you can choose a user to login automatically +## If no user is given here, then nodm will default to root +nodm_user=live + +## In nodm, use full screen chromium web browser as session +# webui=http://localhost/ + +## When using NIS modules the directory server should be given +# nis_server=nismaster + +## If the approxmodule is enabled, then one (and only one) apt-source +## can be choosen to install packages from +## See modules/approx.mk if you need more flexibility +# approx=http://localhost:9000/debian + +.PHONY: _live_initrd _favorites #_bootmount +_config: _live_initrd _favorites #_bootmount +_live_initrd: cfg_root _live_modules + # printf '%s\n' "isofs" "squashfs" "ata_generic" "usb_storage" "sr_mod" "mmc_block" >>"$${CFGROOT}/etc/initramfs-tools/modules" + sed -i 's;^MODULES=.*$$;MODULES=most;' "$${CFGROOT}/etc/initramfs-tools/initramfs.conf" + +_config: cfg_root/usr/share/kxmlgui5/dolphin/dolphinui.rc + +cfg_root/usr/share/kxmlgui5/dolphin/dolphinui.rc: cfg_root _xfce + mkdir -p "$(dir $@)" + printf '%s\n' '' \ + '' \ + '' \ + '' \ + '' \ + '' \ + >$@ + +_favorites: _xfce + printf 'favorites=libreoffice-startcenter.desktop,firefox-esr.desktop,xfce4-terminal.desktop,org.kde.dolphin.desktop,mousepad.desktop,synaptic.desktop,aqemu.desktop,gparted.desktop' \ + >"$${CFGROOT}/etc/xdg/xfce4/panel/whiskermenu-10.rc" + +#_bootmount: cfg_root +# printf '/lib/live/mount/medium /boot/ bind auto,bind 0 0\n' >>"$${CFGROOT}/etc/fstab" -- 2.39.2