From 454bce2bebf21117d9b70876598cdd8acba174ec Mon Sep 17 00:00:00 2001 From: root Date: Thu, 13 Apr 2023 10:08:48 +0000 Subject: [PATCH] developing windows boot settings... --- config-full.sh | 3 +-- configure-debian-system.sh | 6 ++++-- configure-windows-pxeboot.sh | 17 +++++++++++++++++ download-free.sh | 2 +- download-non-free.sh | 6 ++++++ resources/default-full | 12 ++++++++++++ runall.sh | 4 ++-- settings.sh | 2 ++ 8 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 configure-windows-pxeboot.sh create mode 100755 download-non-free.sh diff --git a/config-full.sh b/config-full.sh index cc3de4e..0f221b0 100755 --- a/config-full.sh +++ b/config-full.sh @@ -8,5 +8,4 @@ cat ./resources/default-full | \ -e "s/__MENUTITLE__/${MENUTUTLE}/g" \ -e "s/__MENUBACKGROUND__/${MENUBACKGROUND}/g" > ${TFTP}/pxelinux.cfg/default -cp -av ./free ${TFTP}/ -cp -av ./non-free ${TFTP}/ +./configure-debian-system.sh diff --git a/configure-debian-system.sh b/configure-debian-system.sh index 8712f5a..b1fe103 100755 --- a/configure-debian-system.sh +++ b/configure-debian-system.sh @@ -1,6 +1,7 @@ #!/bin/sh -TFTP=/srv/tftp +# Load Global Settings +. ./settings.sh # create directories mkdir -p ${TFTP} @@ -21,7 +22,8 @@ ln ${TFTP}/bios/ldlinux.c32 ${TFTP}/ ln ${TFTP}/pxelinux.cfg/default ${TFTP}/default -s # set file access -chown www-data.www-data ${TFTP} -R +chown ${USERID}:${GROUPID} * -R +chown ${USERID}:${GROUPID} ${TFTP}/* -R chmod a+rwx ${TFTP} -R # restart services diff --git a/configure-windows-pxeboot.sh b/configure-windows-pxeboot.sh new file mode 100644 index 0000000..9eb9e63 --- /dev/null +++ b/configure-windows-pxeboot.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +. ./settings.sh + +# Download Debian Packages +apt update +apt install -y samba genisoimage wimtools cabextract + +# setup temp-dirs: +mkdir -p ./temp/waik + +# Download Windows Stuff: +WAIKURL="https://download.microsoft.com/download/8/E/9/8E9BBC64-E6F8-457C-9B8D-F6C9A16E6D6A/KB3AIK_EN.iso" +FILENAME="./temp/KB3AIK_EN.iso" +if ! [ -e $FILENAME ]; then + wget -nc -O $FILENAME $WAIKURL +fi diff --git a/download-free.sh b/download-free.sh index 83c2d7d..e1beb40 100755 --- a/download-free.sh +++ b/download-free.sh @@ -93,4 +93,4 @@ do done done -chmod a+rwx ${TFTP}/ -R +./configure-debian-system.sh diff --git a/download-non-free.sh b/download-non-free.sh new file mode 100755 index 0000000..7656747 --- /dev/null +++ b/download-non-free.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +. ./settings.sh + +# copy local non-free directory to the tftp server: +cp -av ./non-free ${TFTP}/ diff --git a/resources/default-full b/resources/default-full index fbe6eea..0b57da1 100644 --- a/resources/default-full +++ b/resources/default-full @@ -71,6 +71,18 @@ MENU BEGIN 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://__NFSSERVERIP__/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 diff --git a/runall.sh b/runall.sh index 2e8df32..7c00da8 100755 --- a/runall.sh +++ b/runall.sh @@ -14,5 +14,5 @@ # 4. download free stuff (knoppix...) ./download-free.sh -# 5. setting open file access - chmod a+rwx ${TFTP}/ -R +# 5. rerun some settings... + ./configure-debian-system.sh diff --git a/settings.sh b/settings.sh index 0ea2f43..e1c25ed 100644 --- a/settings.sh +++ b/settings.sh @@ -6,3 +6,5 @@ NFSSERVERIP=192.168.75.3 MENUTUTLE="Sample Title Text" MENUBACKGROUND="splash.png" +USERID=www-data +GROUPID=www-data