Compare commits
3 Commits
ce4f185331
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
df690d47cf | ||
|
582077c7ec | ||
|
a4b09dc07c |
220
conf.d/menues_10_default.conf.sh
Normal file
220
conf.d/menues_10_default.conf.sh
Normal file
@@ -0,0 +1,220 @@
|
|||||||
|
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./settings.sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Menue configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
M_ENABLED=Yes
|
||||||
|
M_NAME="default"
|
||||||
|
|
||||||
|
|
||||||
|
if ! [ "$(echo $M_ENABLED | tr A-Z a-z)" = "yes" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Menue $M_NAME is enabled..."
|
||||||
|
|
||||||
|
M_PAYLOAD="
|
||||||
|
|
||||||
|
rootprompt 0
|
||||||
|
path bios/
|
||||||
|
default bios/vesamenu.c32
|
||||||
|
#TIMEOUT 300
|
||||||
|
|
||||||
|
MENU TITLE Default Menu
|
||||||
|
MENU BACKGROUND splash.png
|
||||||
|
MENU ROWS 15
|
||||||
|
MENU TABMSGROW 20
|
||||||
|
MENU TIMEOUTROW 22
|
||||||
|
|
||||||
|
LABEL disk0
|
||||||
|
localboot 0
|
||||||
|
MENU LABEL Starte von lokaler Platte (Default)
|
||||||
|
|
||||||
|
label -
|
||||||
|
MENU LABEL Live-Systeme: --------------------------
|
||||||
|
MENU DISABLE
|
||||||
|
|
||||||
|
LABEL knx
|
||||||
|
MENU LABEL * Knoppix 9.1 Live, Grafisch, 32Bit
|
||||||
|
KERNEL free/knx/boot/isolinux/linux
|
||||||
|
APPEND nfsdir=${HOST_IP}:/srv/tftp/free/knx nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 initrd=free/knx/boot/isolinux/miniroot.gz libata.force=noncq tz=europe/Berlin hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix
|
||||||
|
|
||||||
|
MENU BEGIN
|
||||||
|
MENU LABEL * Weitere Optionen...
|
||||||
|
|
||||||
|
LABEL knx
|
||||||
|
MENU LABEL * Knoppix 9.1 Live, Textmodus, 32Bit
|
||||||
|
KERNEL free/knx/boot/isolinux/linux
|
||||||
|
APPEND nfsdir=${HOST_IP}:/srv/tftp/free/knx nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 initrd=free/knx/boot/isolinux/miniroot.gz libata.force=noncq tz=Europe/Berlin hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix 2
|
||||||
|
|
||||||
|
LABEL zurueck...
|
||||||
|
MENU EXIT
|
||||||
|
MENU END
|
||||||
|
|
||||||
|
label -
|
||||||
|
MENU LABEL Backup & Restore: ----------------------
|
||||||
|
MENU DISABLE
|
||||||
|
|
||||||
|
LABEL rescue
|
||||||
|
MENU LABEL * Rescuezilla Live
|
||||||
|
kernel free/rz/casper/vmlinuz
|
||||||
|
APPEND initrd=free/rz/casper/initrd.lz netboot=nfs root=/dev/nfs ramdisk_size=1500000 ip=dhcp nfsroot=${HOST_IP}:${D_TFTP}/free/rz/ boot=casper locale=de_DE keyboard-configuration/layoutcode=de bootkbd=de console-setup/layoutcode=de quiet
|
||||||
|
|
||||||
|
MENU BEGIN
|
||||||
|
MENU LABEL * Weitere Optionen...
|
||||||
|
|
||||||
|
LABEL rescue2
|
||||||
|
MENU LABEL * Rescuezilla Live Fail-Safe
|
||||||
|
kernel free/rz/casper/vmlinuz
|
||||||
|
APPEND initrd=free/rz/casper/initrd.lz netboot=nfs root=/dev/nfs ramdisk_size=1500000 ip=dhcp nfsroot=${HOST_IP}:${D_TFTP}/free/rz/ boot=casper locale=de_DE keyboard-configuration/layoutcode=de bootkbd=de console-setup/layoutcode=de xforcevesa nomodeset vga=791 quiet
|
||||||
|
|
||||||
|
LABEL cz
|
||||||
|
MENU LABEL * Clonezilla Live (Ramdisk)
|
||||||
|
KERNEL free/cz/live/vmlinuz
|
||||||
|
APPEND initrd=free/cz/live/initrd.img boot=live username=user union=overlay config components noswap edd=on nomodeset nodmraid locales=de_DE.UTF-8 keyboard-layouts=de-latin-1 ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no net.ifnames=0 nosplash noprompt fetch=tftp://${HOST_IP}/free/cz/live/filesystem.squashfs quiet
|
||||||
|
|
||||||
|
LABEL acr18
|
||||||
|
MENU LABEL * Acronis True Image Home 2018
|
||||||
|
LINUX memdisk
|
||||||
|
INITRD non-free/acronis/acronis2018.iso
|
||||||
|
APPEND iso raw
|
||||||
|
|
||||||
|
LABEL acr14
|
||||||
|
MENU LABEL * Acronis True Image Home 2014
|
||||||
|
LINUX memdisk
|
||||||
|
INITRD non-free/acronis/acronis2014.iso
|
||||||
|
APPEND iso raw
|
||||||
|
|
||||||
|
LABEL acr11
|
||||||
|
MENU LABEL * Acronis True Image Home 2011
|
||||||
|
LINUX memdisk
|
||||||
|
INITRD non-free/acronis/acronis2011.iso
|
||||||
|
APPEND iso raw
|
||||||
|
|
||||||
|
LABEL acr10
|
||||||
|
MENU LABEL * Acronis True Image 2010
|
||||||
|
LINUX memdisk
|
||||||
|
INITRD non-free/acronis/acronis2010.iso
|
||||||
|
APPEND iso raw
|
||||||
|
|
||||||
|
LABEL acr09
|
||||||
|
MENU LABEL * Acronis True Image 2009
|
||||||
|
LINUX memdisk
|
||||||
|
INITRD non-free/acronis/acronis2009.iso
|
||||||
|
APPEND iso raw
|
||||||
|
|
||||||
|
LABEL zurueck...
|
||||||
|
MENU EXIT
|
||||||
|
MENU END
|
||||||
|
|
||||||
|
label -
|
||||||
|
MENU LABEL Installer: ------------------------------
|
||||||
|
MENU DISABLE
|
||||||
|
|
||||||
|
MENU BEGIN
|
||||||
|
MENU LABEL * Linux Installer...
|
||||||
|
|
||||||
|
LABEL deb12
|
||||||
|
MENU LABEL * Debian 12 Installer 64Bit Textmodus
|
||||||
|
CONFIG free/deb-bookworm/debian-installer/amd64/pxelinux.cfg/default
|
||||||
|
APPEND free/deb-bookworm/
|
||||||
|
LABEL deb12
|
||||||
|
MENU LABEL * Debian 12 Installer 32Bit Textmodus
|
||||||
|
CONFIG free/deb-bookworm/debian-installer/i386/pxelinux.cfg/default
|
||||||
|
APPEND free/deb-bookworm/
|
||||||
|
|
||||||
|
LABEL deb11
|
||||||
|
MENU LABEL * Debian 11 Installer 64Bit Textmodus
|
||||||
|
CONFIG free/deb-bullseye/debian-installer/amd64/pxelinux.cfg/default
|
||||||
|
APPEND free/deb-bullseye/
|
||||||
|
LABEL deb11
|
||||||
|
MENU LABEL * Debian 11 Installer 32Bit Textmodus
|
||||||
|
CONFIG free/deb-bullseye/debian-installer/i386/pxelinux.cfg/default
|
||||||
|
APPEND free/deb-bullseye/
|
||||||
|
|
||||||
|
LABEL zurueck...
|
||||||
|
MENU EXIT
|
||||||
|
MENU END
|
||||||
|
|
||||||
|
MENU BEGIN
|
||||||
|
MENU LABEL * Windows Installer...
|
||||||
|
|
||||||
|
LABEL win10
|
||||||
|
MENU LABEL * Windows 10
|
||||||
|
KERNEL memdisk
|
||||||
|
INITRD non-free/windows/winpe.iso
|
||||||
|
APPEND iso raw
|
||||||
|
|
||||||
|
LABEL win10
|
||||||
|
MENU LABEL * Windows 10 iPXE Test
|
||||||
|
KERNEL ipxe.lkrn
|
||||||
|
APPEND dhcp && chain non-free/wimboot.ipxe
|
||||||
|
|
||||||
|
LABEL zurueck...
|
||||||
|
MENU EXIT
|
||||||
|
MENU END
|
||||||
|
|
||||||
|
label -
|
||||||
|
MENU LABEL Boot- & System-Tools: --------------------
|
||||||
|
MENU DISABLE
|
||||||
|
|
||||||
|
LABEL hdt
|
||||||
|
MENU LABEL * Hardware Erkennung
|
||||||
|
COM32 bios/hdt.c32
|
||||||
|
|
||||||
|
LABEL memtestpl
|
||||||
|
MENU LABEL * Memtest86+
|
||||||
|
kernel free/memtest86+
|
||||||
|
|
||||||
|
MENU BEGIN
|
||||||
|
MENU LABEL * Weitere Optionen...
|
||||||
|
|
||||||
|
label sbm
|
||||||
|
MENU LABEL * Smart Boot Manager
|
||||||
|
kernel memdisk
|
||||||
|
append initrd=free/sbm.imz
|
||||||
|
|
||||||
|
LABEL plop
|
||||||
|
MENU LABEL * PloP Boot Manager
|
||||||
|
kernel free/plop.exe
|
||||||
|
|
||||||
|
LABEL ipxe
|
||||||
|
MENU LABEL * iPXE Shell
|
||||||
|
KERNEL ipxe.lkrn dhcp && shell
|
||||||
|
|
||||||
|
LABEL memtest
|
||||||
|
MENU LABEL * Memtest86
|
||||||
|
kernel free/memtest86
|
||||||
|
|
||||||
|
LABEL fdos
|
||||||
|
MENU LABEL * FreeDOS Bootdisk
|
||||||
|
KERNEL memdisk
|
||||||
|
APPEND initrd=free/FD13BOOT.img
|
||||||
|
|
||||||
|
label win98
|
||||||
|
MENU LABEL * Windows 98 Bootdisk (DOS 7)
|
||||||
|
kernel memdisk
|
||||||
|
append initrd=non-free/win98.img
|
||||||
|
|
||||||
|
label ether
|
||||||
|
MENU LABEL * Etherboot
|
||||||
|
kernel memdisk
|
||||||
|
append initrd=free/ether.img
|
||||||
|
|
||||||
|
LABEL zurueck...
|
||||||
|
MENU EXIT
|
||||||
|
MENU END
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
|
||||||
|
build)
|
||||||
|
echo $M_PAYLOAD > ${D_TFTP}/pxelinux.cfg/default
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
0
conf.d/plugins_10_rescuezilla.conf.sh
Normal file
0
conf.d/plugins_10_rescuezilla.conf.sh
Normal file
@@ -22,6 +22,7 @@ case $1 in
|
|||||||
|
|
||||||
# copy Files some files:
|
# copy Files some files:
|
||||||
cp -a /usr/lib/syslinux/modules/bios ${D_TFTP}/
|
cp -a /usr/lib/syslinux/modules/bios ${D_TFTP}/
|
||||||
|
cp -a ${D_RESRC}/default-minimal.txt ${D_TFTP}/pxelinux.cfg/default
|
||||||
|
|
||||||
# Link needed Files from installed Debian Packages to the TFTP-Root:
|
# Link needed Files from installed Debian Packages to the TFTP-Root:
|
||||||
ln /usr/lib/PXELINUX/pxelinux.0 ${D_TFTP}/
|
ln /usr/lib/PXELINUX/pxelinux.0 ${D_TFTP}/
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
# Service configuration
|
# Service configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
S_ENABLED=YES
|
S_ENABLED=no
|
||||||
S_NAME="nfs-kernel-server"
|
S_NAME="nfs-kernel-server"
|
||||||
S_PACKAGES="nfs-kernel-server nfs-common"
|
S_PACKAGES="nfs-kernel-server nfs-common"
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
# Service configuration
|
# Service configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
S_ENABLED=yes
|
S_ENABLED=no
|
||||||
S_NAME="smbd"
|
S_NAME="smbd"
|
||||||
S_PACKAGES="samba"
|
S_PACKAGES="samba"
|
||||||
|
|
||||||
|
20
main.sh
20
main.sh
@@ -2,9 +2,12 @@
|
|||||||
|
|
||||||
. ./settings.sh
|
. ./settings.sh
|
||||||
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
||||||
# process services
|
#
|
||||||
|
# services
|
||||||
|
#
|
||||||
services)
|
services)
|
||||||
|
|
||||||
# find services:
|
# find services:
|
||||||
@@ -48,6 +51,21 @@ services)
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
;;
|
||||||
|
#
|
||||||
|
# menues
|
||||||
|
#
|
||||||
|
menues)
|
||||||
|
;;
|
||||||
|
#
|
||||||
|
# plugins
|
||||||
|
#
|
||||||
|
plugins)
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 services [init|start|stop|restart]"
|
||||||
|
echo " $0 menues [init]"
|
||||||
|
echo " $0 plugins [init|build|download]"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
25
resrc.d/default-minimal.txt
Normal file
25
resrc.d/default-minimal.txt
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
rootprompt 0
|
||||||
|
path bios
|
||||||
|
default bios/vesamenu.c32
|
||||||
|
#TIMEOUT 300
|
||||||
|
|
||||||
|
MENU TITLE Minimal PXE Bootmenue
|
||||||
|
|
||||||
|
LABEL disk0
|
||||||
|
localboot 0
|
||||||
|
MENU LABEL Boot from first Harddisk
|
||||||
|
|
||||||
|
LABEL -
|
||||||
|
MENU LABEL --------------------------
|
||||||
|
|
||||||
|
LABEL ipxe
|
||||||
|
MENU LABEL * iPXE Shell
|
||||||
|
KERNEL ipxe dhcp && shell
|
||||||
|
|
||||||
|
LABEL demo
|
||||||
|
MENU LABEL * iPXE Demonstration
|
||||||
|
KERNEL ipxe dhcp && chain http://boot.ipxe.org/demo/boot.php
|
||||||
|
|
||||||
|
LABEL fdos
|
||||||
|
MENU LABEL * iPXE FreeDOS over HTTP and Internet
|
||||||
|
KERNEL ipxe dhcp && sanboot http://boot.ipxe.org/freedos/fdfullcd.iso
|
13
settings.sh
13
settings.sh
@@ -9,6 +9,7 @@ D_TFTP=/srv/tftp
|
|||||||
|
|
||||||
# Full path of this project:
|
# Full path of this project:
|
||||||
D_ROOTDIR=/root/pxe-bootserver
|
D_ROOTDIR=/root/pxe-bootserver
|
||||||
|
D_RESRC=${D_ROOTDIR}/resrc.d
|
||||||
|
|
||||||
# the ip and FQDN for this server
|
# the ip and FQDN for this server
|
||||||
HOST_IP=192.168.75.3
|
HOST_IP=192.168.75.3
|
||||||
@@ -26,32 +27,38 @@ fservice (){
|
|||||||
# $4 is a list of packages
|
# $4 is a list of packages
|
||||||
|
|
||||||
if [ "$1" = "yes" ] || [ "$1" = "YES" ]; then
|
if [ "$1" = "yes" ] || [ "$1" = "YES" ]; then
|
||||||
echo "touching $3 :"
|
echo "$3 is enabled:"
|
||||||
case $2 in
|
case $2 in
|
||||||
# INIT
|
# INIT
|
||||||
# Install needed Debian Packages:
|
# Install needed Debian Packages:
|
||||||
init)
|
init)
|
||||||
echo "installing: $4"
|
echo " installing: $4"
|
||||||
apt install -y $4
|
apt install -y $4
|
||||||
;;
|
;;
|
||||||
start)
|
start)
|
||||||
if ! [ "$3" = "none" ]; then
|
if ! [ "$3" = "none" ]; then
|
||||||
|
echo " starting $3 ..."
|
||||||
systemctl start $3
|
systemctl start $3
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
if ! [ "$3" = "none" ]; then
|
if ! [ "$3" = "none" ]; then
|
||||||
|
echo " stopping $3 ..."
|
||||||
systemctl stop $3
|
systemctl stop $3
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
if ! [ "$3" = "none" ]; then
|
if ! [ "$3" = "none" ]; then
|
||||||
|
echo " restarting $3 ..."
|
||||||
systemctl restart $3
|
systemctl restart $3
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
echo "$3 is disabled. nothing to do..."
|
echo "$3 is disabled. "
|
||||||
|
if ! [ "$3" = "none" ]; then
|
||||||
|
systemctl stop $3
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user