Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
    • Ubuntu
      • Ubuntu 22.04 Jammy
      • Ubuntu 20.04 Focal
      • Ubuntu 24.04 noble
      • Ubuntu 23.04 Lunar
      • Ubuntu PXE Boot
      • Ubuntu USB boot
      • Ubuntu MID USB boot
      • Boot installer from HDD
      • getDebconfAnswer.sh
      • Lubuntu
      • Auto upgrade
      • repository
      • Strato HiDrive
      • live
      • Debian live-helper
      • Default application / file association
      • LiveCD
      • NetInstall CD
      • Unity
      • Upgrade SSH to v7.3
      • apt-mirror
      • netplan
      • updUbuntuPxeFiles.sh
    • LTSP
    • HowTo
    • BASH
    • Backtrack
    • CUPS
    • CentOS
    • Debian
    • FreeNX
    • GRML
    • Gnome
    • Grub
    • IpFire
    • Kernel
    • Linux Lite
    • SSH
    • UEFI
    • dban
    • logrotate
    • parted
    • proxy
    • systemd
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
DEFAULT_URL=http://releases.ubuntu.com/releases/12.04/ubuntu-12.04-desktop-i386.iso
NFS_SERVER=192.168.1.9

if [ ! -z $1 ]; then
        FILE=$1

        if [ ! -f ${FILE} ]; then
                echo "File ${FILE} not found"
                exit 0
        fi
else
        URL=${DEFAULT_URL}
        wget ${URL} -P /tmp
        FILE=/tmp/${URL##*/}
fi 

# set parameter
ISO=${FILE##*/}
DISTRO=${ISO%.*}
DISTRO=${DISTRO//desktop/live}

echo "create ${DISTRO}"

echo "copy files..."
mount ${FILE} /mnt/ -o loop
mkdir /var/lib/tftpboot/${DISTRO}
cp -a /mnt/casper/ /var/lib/tftpboot/${DISTRO}
umount /mnt

echo "configure and restart nfs..." 
echo "/var/lib/tftpboot/${DISTRO}   *(ro,sync,no_subtree_check)" >> /etc/exports
/etc/init.d/nfs-kernel-server restart

echo "confiure tftpboot..." 
cat <  /var/lib/tftpboot/pxelinux.cfg/${DISTRO}.conf
LABEL linux
   MENU LABEL Ubuntu Live (${DISTRO}) 
   KERNEL /${DISTRO}/casper/vmlinuz
#   APPEND initrd=/${DISTRO}/casper/initrd.gz boot=casper netboot=nfs nfsroot=${NFS_SERVER}:/var/lib/tftpboot/${DISTRO} quiet splash locale=de_DE bootkbd=de console-setup/layoutcode=de --
   APPEND initrd=/${DISTRO}/casper/initrd.lz boot=casper netboot=nfs nfsroot=${NFS_SERVER}:/var/lib/tftpboot/${DISTRO} quiet splash locale=de_DE bootkbd=de console-setup/layoutcode=de --
   IPAPPEND 2
EOF

echo "MENU INCLUDE pxelinux.cfg/${DISTRO}.conf" >> /var/lib/tftpboot/pxelinux.cfg/default


# LINKS
# https://help.ubuntu.com/community/BootOptions
# http://manpages.ubuntu.com/manpages/intrepid/man7/casper.html
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung