2.0 KiB
2.0 KiB
To Do...
Modular Approach
Folder Structure
- main.sh
- ./services
- tftpd-hpa
- plugin.sh
- config.sh
- ./templates
- ./build
- nfs
- samba
- iscsi / tgt
- lighthttpd
- tftpd-hpa
- ./menues
- default
- plugin.sh
- config.sh
- ./templates
- ./build
- branded-menue
- default
- ./plugins
- Knoppix
- plugin.sh
- config.sh
- ./templates
- ./build
- ./resources
- ./downloads
- ./temp
- Rescuezilla
- FreeDOS
- Clonezilla
- Knoppix
- ./services
Structure
main.sh
- drives all actions:
- init - bootstrap the bare minimum: debian packages, config files, etc.
- build - build all enabled plugins: trigger downloads, file processing
- build-all - build even disabled plugins
- start / stop / restart - handle services
./menues
-
Modular pxelinux menu:
-
split menu in parts: Knoppix, Rescuezilla, Acronis, etc.
-
use settings.sh as configuration file, e.g. MENU_KNOPPIX=YES or MENU_NON-FREE=NO
-
create template files in ./resources: menu-knoppix.cfg, menu-rescuezilla.cfg
-
use INCLUDE command if possible https://wiki.syslinux.org/wiki/index.php?title=Menu#INCLUDE
-
read settings.sh and parse templates to fill in variables
-
iSCSI Target:
- apt install tgt
- zless /usr/share/doc/tgt/README.iscsi.gz
- tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2020-11.tld.ostrach:target1
- tgtadm --lld iscsi --op show --mode target
- tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/hdc1
- tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
- apt install tgt
-
https://www.server-world.info/en/note?os=Debian_11&p=iscsi&f=2
- install tgt
- parse settings.sh and create tgt config files to:
- a Windows 10 DVD target (.iso under /srv/tftp/non-free/windows10.iso)
Remeber: Check if a iSCSI Tape-Target could be used to trick a Tape Backup Software to use HardDisks as Tapes