diff --git a/base-build/debian-bullseye_pt1.sh b/base-build/debian-bullseye_pt1.sh deleted file mode 100644 index a0fcfae..0000000 --- a/base-build/debian-bullseye_pt1.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -RELEASE=stable - -echo " " -echo "INFO ! Downloading other parts of the script if needed." -if [ -e /debian-bullseye_pt2.sh ] - then - echo "INFO ! debian-bullseye_pt2.sh found ... will not download." - else - echo " " - echo "WARNING ! debian-bullseye_pt2.sh not found ... will download new copy." - wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-bullseye_pt2.sh -O /debian-bullseye_pt2.sh - chmod +x debian-bullseye_pt2.sh -fi -if [ -e /debian-bullseye_pt3.sh ] - then - echo "INFO ! debian-bullseye_pt3.sh found ... will not download." - else - echo " " - echo "WARNING ! debian-bullseye_pt3.sh not found ... will download new copy." - wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-bullseye_pt3.sh -O /debian-bullseye_pt3.sh - chmod +x debian-bullseye_pt3.sh -fi -sleep 1 -echo " " -echo "INFO ! Getting system updates." -apt-get -y update -apt-get -y upgrade -apt-get -y dist-upgrade -apt autoremove -y -echo " " -echo "INFO ! Installing debootstrap,ftp-upload,bash,dirmngr." -sleep 1 -apt-get install -y debootstrap ftp-upload bash dirmngr -sleep 1 -echo " " -echo "INFO ! Downloading debian & selected packages." -debootstrap --keyring /etc/apt/trusted.gpg.d/debian-archive-bullseye-stable.gpg --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,wget,bzip2,bash,nano,ca-certificates,software-properties-common --arch=amd64 bullseye /debian-bullseye http://deb.debian.org/debian/ -echo " " -echo "INFO ! Filesystem size uncompressed." -sleep 1 -du --human-readable --summarize debian-bullseye -sleep 5 -echo " " -echo "INFO ! Mounting folders for root." -mount --bind /dev debian-bullseye/dev -mount --bind /dev/pts debian-bullseye/dev/pts -mount --bind /proc debian-bullseye/proc -mount --bind /sys debian-bullseye/sys -sleep 1 -cp -v debian-bullseye_pt2.sh /debian-bullseye -echo " " -echo "INFO ! Changeing to new root." -sleep 1 -chroot debian-bullseye -exit diff --git a/base-build/debian-bullseye_pt2.sh b/base-build/debian-bullseye_pt2.sh deleted file mode 100644 index 70f72c2..0000000 --- a/base-build/debian-bullseye_pt2.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -echo " " -echo "APT::Get::Assume-Yes \"true\";" | tee /etc/apt/apt.conf.d/10-assume_yes -sleep 1 -echo " " -echo "INFO ! Removeing unnecessary packages." -apt-get remove --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode -sleep 1 -echo " " -echo "INFO ! Cleanup." -apt-get clean -find /var/lib/apt/lists/ -maxdepth 2 -type f -delete -sleep 1 -echo " " -echo "INFO ! Type "exit" and reboot for final steps." -exit diff --git a/base-build/debian-bullseye_pt3.sh b/base-build/debian-bullseye_pt3.sh deleted file mode 100644 index 1176315..0000000 --- a/base-build/debian-bullseye_pt3.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -echo " " -echo "INFO ! Cleaning up pt2 of script from base image." -rm -frv /debian-bullseye/debian-bullseye_pt2.sh -sleep 1 -echo " " -echo "INFO ! Base image size after cleanup." -du --human-readable --summarize debian-bullseye -sleep 5 -echo " " -echo "INFO ! Creating base image archive." -echo "INFO ! This may take some time." -tar -cjf debian-bullseye.tar.bz2 --directory debian-bullseye . -sleep 1 -echo " " -echo "INFO ! Base image archive." -du --human-readable --summarize debian-bullseye.tar.bz2 -sleep 5 -echo " " -echo "INFO ! Uploading image to ftp server." -ftp-upload -v -h {IP}:{PORT} -u {USER} --password {PASSWORD} -d /mnt/user/FTP debian-bullseye.tar.bz2 -sleep 1 -echo " " -echo "INFO ! Removing temp files." -rm -fr debian-bullseye -rm -frv debian-bullseye.tar.bz2 -echo " " -echo "INFO ! Done." -echo " " -exit diff --git a/base-build/debian-buster_pt1.sh b/base-build/debian-buster_pt1.sh deleted file mode 100644 index 7d9e4ab..0000000 --- a/base-build/debian-buster_pt1.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -RELEASE=stable - -echo " " -echo "INFO ! Downloading other parts of the script if needed." -if [ -e /debian-buster_pt2.sh ] - then - echo "INFO ! debian-buster_pt2.sh found ... will not download." - else - echo " " - echo "WARNING ! debian-buster_pt2.sh not found ... will download new copy." - wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-buster_pt2.sh -O /debian-buster_pt2.sh - chmod +x debian-buster_pt2.sh -fi -if [ -e /debian-buster_pt3.sh ] - then - echo "INFO ! debian-buster_pt3.sh found ... will not download." - else - echo " " - echo "WARNING ! debian-buster_pt3.sh not found ... will download new copy." - wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-buster_pt3.sh -O /debian-buster_pt3.sh - chmod +x debian-buster_pt3.sh -fi -sleep 1 -echo " " -echo "INFO ! Getting system updates." -apt-get -y update -apt-get -y upgrade -apt-get -y dist-upgrade -apt autoremove -y -echo " " -echo "INFO ! Installing debootstrap,ftp-upload,bash,dirmngr." -sleep 1 -apt-get install -y debootstrap ftp-upload bash dirmngr -sleep 1 -echo " " -echo "INFO ! Downloading debian & selected packages." -debootstrap --keyring /etc/apt/trusted.gpg.d/debian-archive-buster-stable.gpg --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,wget,bzip2,bash,nano,ca-certificates,software-properties-common --arch=amd64 buster /debian-buster http://deb.debian.org/debian/ -echo " " -echo "INFO ! Filesystem size uncompressed." -sleep 1 -du --human-readable --summarize debian-buster -sleep 5 -echo " " -echo "INFO ! Mounting folders for root." -mount --bind /dev debian-buster/dev -mount --bind /dev/pts debian-buster/dev/pts -mount --bind /proc debian-buster/proc -mount --bind /sys debian-buster/sys -sleep 1 -cp -v debian-buster_pt2.sh /debian-buster -echo " " -echo "INFO ! Changeing to new root." -sleep 1 -chroot debian-buster -exit diff --git a/base-build/debian-buster_pt2.sh b/base-build/debian-buster_pt2.sh deleted file mode 100644 index 70f72c2..0000000 --- a/base-build/debian-buster_pt2.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -echo " " -echo "APT::Get::Assume-Yes \"true\";" | tee /etc/apt/apt.conf.d/10-assume_yes -sleep 1 -echo " " -echo "INFO ! Removeing unnecessary packages." -apt-get remove --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode -sleep 1 -echo " " -echo "INFO ! Cleanup." -apt-get clean -find /var/lib/apt/lists/ -maxdepth 2 -type f -delete -sleep 1 -echo " " -echo "INFO ! Type "exit" and reboot for final steps." -exit diff --git a/base-build/debian-buster_pt3.sh b/base-build/debian-buster_pt3.sh deleted file mode 100644 index ec006c2..0000000 --- a/base-build/debian-buster_pt3.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -echo " " -echo "INFO ! Cleaning up pt2 of script from base image." -rm -frv /debian-buster/debian-buster_pt2.sh -sleep 1 -echo " " -echo "INFO ! Base image size after cleanup." -du --human-readable --summarize debian-buster -sleep 5 -echo " " -echo "INFO ! Creating base image archive." -echo "INFO ! This may take some time." -tar -cjf debian-buster.tar.bz2 --directory debian-buster . -sleep 1 -echo " " -echo "INFO ! Base image archive." -du --human-readable --summarize debian-buster.tar.bz2 -sleep 5 -echo " " -echo "INFO ! Uploading image to ftp server." -ftp-upload -v -h {IP}:{PORT} -u {USER} --password {PASSWORD} -d /mnt/user/FTP debian-buster.tar.bz2 -sleep 1 -echo " " -echo "INFO ! Removing temp files." -rm -fr debian-buster -rm -frv debian-buster.tar.bz2 -echo " " -echo "INFO ! Done." -echo " " -exit diff --git a/base-build/debian-stretch_pt1.sh b/base-build/debian-stretch_pt1.sh deleted file mode 100644 index ecf9d59..0000000 --- a/base-build/debian-stretch_pt1.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -RELEASE=stable - -echo " " -echo "INFO ! Downloading other parts of the script if needed." -if [ -e /debian-stretch_pt2.sh ] - then - echo "INFO ! debian-stretch_pt2.sh found ... will not download." - else - echo " " - echo "WARNING ! debian-stretch_pt2.sh not found ... will download new copy." - wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-stretch_pt2.sh -O /debian-stretch_pt2.sh - chmod +x debian-stretch_pt2.sh -fi -if [ -e /debian-stretch_pt3.sh ] - then - echo "INFO ! debian-stretch_pt3.sh found ... will not download." - else - echo " " - echo "WARNING ! debian-stretch_pt3.sh not found ... will download new copy." - wget --no-cache https://raw.githubusercontent.com/fithwum/files-for-dockers/master/base-build/debian-stretch_pt3.sh -O /debian-stretch_pt3.sh - chmod +x debian-stretch_pt3.sh -fi -sleep 1 -echo " " -echo "INFO ! Getting system updates." -apt-get -y update -apt-get -y upgrade -apt-get -y dist-upgrade -apt autoremove -y -echo " " -echo "INFO ! Installing debootstrap,ftp-upload,bash,dirmngr." -sleep 1 -apt-get install -y debootstrap ftp-upload bash dirmngr -sleep 1 -echo " " -echo "INFO ! Downloading debian & selected packages." -debootstrap --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,wget,bzip2,bash,nano,ca-certificates,software-properties-common --arch=amd64 stretch /debian-stretch http://deb.debian.org/debian/ -echo " " -echo "INFO ! Filesystem size uncompressed." -sleep 1 -du --human-readable --summarize debian-stretch -sleep 5 -echo " " -echo "INFO ! Mounting folders for root." -mount --bind /dev debian-stretch/dev -mount --bind /dev/pts debian-stretch/dev/pts -mount --bind /proc debian-stretch/proc -mount --bind /sys debian-stretch/sys -sleep 1 -cp -v debian-stretch_pt2.sh /debian-stretch -echo " " -echo "INFO ! Changeing to new root." -sleep 1 -chroot debian-stretch -exit diff --git a/base-build/debian-stretch_pt2.sh b/base-build/debian-stretch_pt2.sh deleted file mode 100644 index 70f72c2..0000000 --- a/base-build/debian-stretch_pt2.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -echo " " -echo "APT::Get::Assume-Yes \"true\";" | tee /etc/apt/apt.conf.d/10-assume_yes -sleep 1 -echo " " -echo "INFO ! Removeing unnecessary packages." -apt-get remove --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode -sleep 1 -echo " " -echo "INFO ! Cleanup." -apt-get clean -find /var/lib/apt/lists/ -maxdepth 2 -type f -delete -sleep 1 -echo " " -echo "INFO ! Type "exit" and reboot for final steps." -exit diff --git a/base-build/debian-stretch_pt3.sh b/base-build/debian-stretch_pt3.sh deleted file mode 100644 index 1a4e6a0..0000000 --- a/base-build/debian-stretch_pt3.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright (c) 2018 fithwum -# All rights reserved - -echo " " -echo "INFO ! Cleaning up pt2 of script from base image." -rm -frv /debian-stretch/debian-stretch_pt2.sh -sleep 1 -echo " " -echo "INFO ! Base image size after cleanup." -du --human-readable --summarize debian-stretch -sleep 5 -echo " " -echo "INFO ! Creating base image archive." -echo "INFO ! This may take some time." -tar -cjf debian-stretch.tar.bz2 --directory debian-stretch . -sleep 1 -echo " " -echo "INFO ! Base image archive." -du --human-readable --summarize debian-stretch.tar.bz2 -sleep 5 -echo " " -echo "INFO ! Uploading image to ftp server." -ftp-upload -v -h {IP}:{PORT} -u {USER} --password {PASSWORD} -d /mnt/user/FTP debian-stretch.tar.bz2 -sleep 1 -echo " " -echo "INFO ! Removing temp files." -rm -fr debian-stretch -rm -frv debian-stretch.tar.bz2 -echo " " -echo "INFO ! Done." -echo " " -exit