Created by Thomas_H
Comments and Updates welcome

For the following entry it is strictly needed, that you have an ftp-server installed. In this case it's vsftpd, but it could be any other ftp-server, which allows anonymous logins and a chroot for anonymous.

We do not allow uploads for anonymous.

Debian
apt install vsftpd
service vsftpd status

Edit /etc/vsftpd.conf:

Configure Anonymous Access
Change the following:

  anonymous_enable=YES to allow anonymous access
  write_enable=YES to enable uploading
  anon_upload_enable=YES to enable anonymous uploading
  anon_mkdir_write_enable=YES to enable anonymous directory creation\\
  
  Append the following to the end: 1.anon_umask=022 so that new file will be readable by groups and other users. Uploaded files will have a permittion set to the value of file_open_mode (by default, 0666) subtracted by anon_umask.\\
  
  anon_other_write_enable=YES to enable anonymous deletion and renaming
  anon_root=xxx/mapftp sets the root folder for anonymous logins
  no_anon_password=YES stops prompting for a password on the command line.
  hide_ids=YES shows the user and group as ftp:ftp, regardless of the owner.
  pasv_min_port=40000 and pasv_max_port=50000 limits the range of ports that can be used for passive FTP\\
  
  Optionally changes the listening port:\\
  
  listen_port= followed by port number\\

source:https://gist.github.com/rikka0w0/32678ec92fe210ffaf1c0f73e631c0bc

Edit the /tftpboot/opsi/opsi-linux-bootimage/cfg/grub-custom.cfg for your own entries in PXE-Menu. { test }

For clonezilla add:

      "Start Clonezilla" {
      set gfxpayload=keep
      linux (pxe)opsi/opsi-linux-bootimage/ISOs/clonezilla/vmlinuz boot=live config locales=de_DE.UTF-8 keyboard-layouts=de ocs_prerun="dhclient" noswap edd=on nomodeset noprompt nosplash ocs_live_run="/usr/sbin/ocs-sr -um beginner -q2 -j2 -z1p -sc -p poweroff ask_user" ocs_live_extra_param="" ocs_live_batch=no ocs_netlink_timeout=5 fetch=ftp://<ip-of-your-ftp-server>/clonezilla/filesystem.squashfs
      initrd (pxe)opsi/opsi-linux-bootimage/ISOs/clonezilla/initrd.img
      }

if you want a diffrent language, change the option locales=

Important: change the path after “fetch=” to your own path to filesystem.squashfs!!