From 3f8394ea88d6f3cb0aba2da9286df4264e5a66aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Fri, 12 Nov 2021 23:40:40 +0100 Subject: [PATCH 01/12] Delete RPiOS64autoinstall.sh no longer compatible with latest image! --- RPiOS64autoinstall.sh | 119 ------------------------------------------ 1 file changed, 119 deletions(-) delete mode 100644 RPiOS64autoinstall.sh diff --git a/RPiOS64autoinstall.sh b/RPiOS64autoinstall.sh deleted file mode 100644 index ba11378..0000000 --- a/RPiOS64autoinstall.sh +++ /dev/null @@ -1,119 +0,0 @@ -# !/bin/bash -################################################################# -# Name: RPiOS64fullautoinst.sh Version: 0.0.2 # -# Created: 07.09.2021 Modified: 10.09.2021 # -# Author: TuxfeatMac J.T. # -# Purpose: full automated Pimox7 installation RPi4B, RPi3B+ # -################################################################# -# Tested with image from: https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2021-05-28/2021-05-07-raspios-buster-arm64-lite.zip -################################################################# -#### BASIC SETTINGS !! PROPPERLY CONFIGURE THESE SETTINGS !! ### -HOSTNAME='RPiX-PVE-X' # set the new hostname - RPI_IP='XXX.XXX.XXX.XXX' # set new static ip address - GATEWAY='XXX.XXX.XXX.X' # set the gateway - NETMASK='/24' # set the netmask only / notation -#### ADVANCED SETTINGS ########################################## -PI3_ZRAM='1664' # zram 1,6GB -PI3_SWAP='384' # dphys-swapfile 0,4GB -CT_STATS='true' # fix cmdline.txt for GUI stats -#PI4_ZRAM='no install' -#PI4_SWAP='will be removed' -################################################################# -# ! NO TOUCHIE BELOW THIS LINE UNLEES U KNOW WHAT YOU ARE DOING ! -################################################################# - -#### SCRIPT IS MENT TO BE TO RUN AS ROOT! NOT AS PI WITH SUDO ### -if [ $USER != root ] - then - printf "This script is ment to be to run as superuser!\n" - exit # correct it, if u know how to improve it. -fi - -#### SET A ROOT PWD FOR WEB GUI LOGIN ##### ##################### -printf " -========================== -! SET YOUR ROOT PASSWORD ! -========================== -" && passwd -if [ $? != 0 ]; then exit; fi - -#### BASE UPDATE, DEPENDENCIES INSTALLATION ##################### -apt update && apt upgrade -y # maybe upgrade could be skiped ? -apt install -y gnupg # nmon #screen -RPIMOD=$(cat /sys/firmware/devicetree/base/model | cut -d ' ' -f 3) -if [ $RPIMOD == 3 ] - then - - apt install -y zram-tools - printf "SIZE=$PI3_ZRAM\nPRIORITY=100\nALGO=lz4\n" >> /etc/default/zramswap - printf "CONF_SWAPSIZE=$PI3_SWAP\n" >> /etc/dphys-swapfile - vm.swappiness=100 >> /etc/sysctl.d/99-sysctl.conf - # fix net names eth0 | enxMAC - RPIMAC=$(ip a | grep ether | cut -d ' ' -f 6) - printf "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"$RPIMAC\", ATTR{dev_id}==\"0x0\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth0\"\n" > /etc/udev/rules.d/70-presistant-net.rules -fi - -#### ADDJUST SOURCES 11 | PIMOX7 + KEY ############################# -rm -f /etc/apt/sources.list.d/*.list -printf "# Raspberry Pi OS 11 Bullseye Repo -deb http://archive.raspberrypi.org/debian/ bullseye main -# Pimox 7 Development Repo | PVE 7 -deb https://raw.githubusercontent.com/pimox/pimox7/master/ dev/ -# Debian 11 Bullseye Repo -deb http://deb.debian.org/debian bullseye main contrib -# Debian 11 Bullseye Security Updates Repo -deb http://security.debian.org/debian-security bullseye-security main contrib \n" > /etc/apt/sources.list -curl https://raw.githubusercontent.com/pimox/pimox7/master/KEY.gpg | apt-key add - - -#### UPDATE UND UPGRADE TO 11 ###################################### -echo '* libraries/restart-without-asking boolean true' | debconf-set-selections #### How to reset at end? -DEBIAN_FRONTEND=noninteractive apt update && apt -y -o Dpkg::Options::="--force-confold" dist-upgrade -apt install -y raspberrypi-kernel-headers - -#### RECONFIGURE NETWORK ########################################### -printf "auto lo -iface lo inet loopback - -auto eth0 -iface eth0 inet static -address $RPI_IP$NETMASK -gateway $GATEWAY\n" > /etc/network/interfaces - -#### SET NEW HOSTNAME ############################################## -hostnamectl set-hostname $HOSTNAME -printf "127.0.0.1\t\tlocalhost\n$RPI_IP\t\t$HOSTNAME\n" > /etc/hosts - -#### REMOVE DHCP, CLEAN UP ######################################### -apt purge -y dhcpcd5 -if [ $RPIMOD == 4 ] - then - # remove sdcard swapfile # ask for it ? - apt purge -y dphys-swapfile -fi - apt autoremove -y - -# FIX CONTAINER STATS NOT SHOWING UP IN WEB GUI #################### -if [ "$CT_STATS" == "true" ] - then - if [ "$(cat /boot/cmdline.txt | grep cgroup)" != "" ] - then - printf "Seems to be already fixed!" - else - sed -i "1 s|$| cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1|" /boot/cmdline.txt - fi -fi - -# INSTALL PIMOX7 AND REBOOT######################################### -DEBIAN_FRONTEND=noninteractive apt install -y -o Dpkg::Options::="--force-confdef" proxmox-ve -printf " -========================================= -! ERRORS ARE NOMALAY FINE -> README.md ! -========================================= -\n" && sleep 3 -printf " -========================================= -! INSTALATION COMPLETED ! WAIT ! REBOOT ! -========================================= -\n" && sleep 7 && reboot - -#### EOF #### From 71da6f36d79acb71b094ffb75eed366cdb9d85a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 13:11:19 +0100 Subject: [PATCH 02/12] added interactive automatic installer ask for network configuration automatic pimox7 installation --- RPiOS64-IA-Install.sh | 173 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 RPiOS64-IA-Install.sh diff --git a/RPiOS64-IA-Install.sh b/RPiOS64-IA-Install.sh new file mode 100644 index 0000000..1059017 --- /dev/null +++ b/RPiOS64-IA-Install.sh @@ -0,0 +1,173 @@ +# !/bin/bash +####################################################################### +# Name: RPiOS64-IA-Install.sh Version: 0.1.1 # +# Created: 07.09.2021 Modified: 13.11.2021 # +# Author: TuxfeatMac J.T. # +# Purpose: interactive, automatic, Pimox7 installation RPi4B, RPi3B+ # +######################################################################################################################################### +# Tested with image from: # +# https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2021-11-08/2021-10-30-raspios-bullseye-arm64-lite.zip # +######################################################################################################################################### + +#### SET SOME COLOURS ################################################################################################################### +NORMAL=$(tput sgr0) +RED=$(tput setaf 1) +GREEN=$(tput setaf 2) +YELLOW=$(tput setaf 3) +GREY=$(tput setaf 8) + +#### SCRIPT IS MENT TO BE TO RUN AS ROOT! NOT AS PI WITH SUDO ########################################################################### +if [ $USER != root ] + then + printf "This script is ment to be to run as superuser!\n" + exit +fi + +#### GET THE RPI MODEL #### EXTRA STEPS FOR RPI3B+ ##################### UNTESTED ####################################################### +RPIMOD=$(cat /sys/firmware/devicetree/base/model | cut -d ' ' -f 3) +if [ $RPIMOD == 3 ] + then + printf "Edit installer.sh manually.. I hope you know what you are doing..." + exit + ## WORKS BUT DOSEN'T SHOW RPI 3 WARNINGS YET ... + # [ ] ADD WARNING MESSAGES + # [ ] GET RPI3 VALUES SWAP ZRAM INSTED OF HARD CODING ? + PI3_ZRAM='1664' # zram 1,6GB + PI3_SWAP='384' # dphys-swapfile 0,4GB + ## + apt install -y zram-tools + printf "SIZE=$PI3_ZRAM\nPRIORITY=100\nALGO=lz4\n" >> /etc/default/zramswap + printf "CONF_SWAPSIZE=$PI3_SWAP\n" >> /etc/dphys-swapfile + vm.swappiness=100 >> /etc/sysctl.d/99-sysctl.conf + # fix net names eth0 | enxMAC # ! + RPIMAC=$(ip a | grep ether | cut -d ' ' -f 6) + printf "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"$RPIMAC\", ATTR{dev_id}==\"0x0\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth0\"\n" > /etc/udev/rules.d/70-presistant-net.rules +fi + +#### GET USER INPUTS #### HOSTNAME ###################################################################################################### +read -p "Enter new hostname e.g. RPi4-01-PVE : " HOSTNAME +while [[ ! "$HOSTNAME" =~ ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$ ]] + do + printf " --->$RED $HOSTNAME $NORMAL<--- Is NOT an valid HOSTNAME, try again...\n" + read -p "Enter new hostname e.g.: RPi4-01-PVE : " HOSTNAME +done + +#### IP AND NETMASK ! ################################################################################################################### +read -p "Enter new static IP and NETMASK e.g. 192.168.0.100/24 : " RPI_IP +while [[ ! "$RPI_IP" =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}+\/[0-9]+$ ]] + do + printf " --->$RED $RPI_IP $NORMAL<--- Is NOT an valid IPv4 ADDRESS with NETMASK, try again...\n" + read -p "IPADDRESS & NETMASK ! E.G.: 192.168.0.100/24 : " RPI_IP +done +RPI_IP_ONLY=$(echo "$RPI_IP" | cut -d '/' -f 1) + +#### GATEWAY ############################################################################################################################ +GATEWAY="$(echo $RPI_IP | cut -d '.' -f 1,2,3).1" +read -p"Is $GATEWAY the correct gateway ? y / n : " CORRECT +if [ "$CORRECT" != "y" ] + then + read -p "Enter the gateway e.g. 192.168.0.1 : " GATEWAY + while [[ ! "$GATEWAY" =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]] + do + printf " --->$RED $GATEWAY $NORMAL<--- Is NOT an valid IPv4 GATEWAY, try again...\n" + read -p "THE GATEWAY IP ! E.G. 192.168.0.1 : " GATEWAY + done +fi + +#### AGREE TO CHANGES ################################################################################################################### +printf " +$YELLOW######################################################################################### +=========================================================================================$NORMAL +THE NEW HOSTNAME WILL BE:$GREEN $HOSTNAME $NORMAL +========================================================================================= +THE DHCP SERVER ($YELLOW dhcpcd5 $NORMAL) WILL BE $RED REMOVED $NORMAL !!! +========================================================================================= +THE PIMOX REPO WILL BE ADDED IN : $YELLOW /etc/apt/sources.list.d/pimox.list $NORMAL CONFIGURATION : +$GRAY# Pimox 7 Development Repo$NORMAL +deb https://raw.githubusercontent.com/pimox/pimox7/master/ dev/ +========================================================================================= +THE NETWORK CONFIGURATION IN : $YELLOW /etc/network/interfaces $NORMAL WILL BE $RED OVERWRITTEN $NORMAL !!! WITH : +auto lo +iface lo inet loopback +auto eth0 +iface eth0 inet static +address $GREEN$RPI_IP$NORMAL +gateway $GREEN$GATEWAY$NORMAL +========================================================================================= +THE HOSTNAMES IN : $YELLOW /etc/hosts $NORMAL WILL BE $RED OVERWRITTEN $NORMAL !!! WITH : +127.0.0.1\tlocalhost +$RPI_IP_ONLY\t$HOSTNAME +========================================================================================= +THESE STATEMENTS WILL BE $RED ADDED $NORMAL TO THE $YELLOW /boot/cmdline.txt $NORMAL IF NONE EXISTENT : +cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 +$YELLOW========================================================================================= +#########################################################################################\n $NORMAL +" + +#### PROMPT FOR CONFORMATION ############################################################################################################ +read -p "YOU ARE OKAY WITH THESE CHANGES ? YOUR DECLARATIONS ARE CORRECT ? CONTINUE ? y / n : " CONFIRM +if [ "$CONFIRM" != "y" ]; then exit; fi + +#### SET A ROOT PWD FOR WEB GUI LOGIN ################################################################################################### +printf " +========================================================================================= + $RED ! SET YOUR ROOT PASSWORD ! $NORMAL +=========================================================================================\n +" && passwd +if [ $? != 0 ]; then exit; fi + +#### BASE UPDATE, DEPENDENCIES INSTALLATION ############################################################################################# +printf " +========================================================================================= + Begin installation, Normal duration on a default RPi4 ~ 30 minutes, be patient... +=========================================================================================\n +" + +#### SET NEW HOSTNAME ################################################################################################################### +hostnamectl set-hostname $HOSTNAME +printf "127.0.0.1\tlocalhost +$RPI_IP_ONLY\t$HOSTNAME" > /etc/hosts + +#### RECONFIGURE NETWORK ################################################################################################################ +printf "auto lo +iface lo inet loopback +auto eth0 +iface eth0 inet static +address $RPI_IP +gateway $GATEWAY\n" > /etc/network/interfaces + +#### ADD SOURCE PIMOX7 + KEY & UPDATE & INSTALL RPI-KERNEL-HEADERS ####################################################################### +printf "# PiMox7 Development Repo +deb https://raw.githubusercontent.com/pimox/pimox7/master/ dev/ \n" > /etc/apt/sources.list.d/pimox.list +curl https://raw.githubusercontent.com/pimox/pimox7/master/KEY.gpg | apt-key add - +apt update && apt upgrade -y && apt install -y raspberrypi-kernel-headers + +#### REMOVE DHCP, CLEAN UP ############################################################################################################### +apt purge -y dhcpcd5 +apt autoremove -y + +#### PREVENT DEFAULT NETCONFIGURATION #################################################################################################### +rm -r /etc/network/interfaces.new + +#### FIX CONTAINER STATS NOT SHOWING UP IN WEB GUI ####################################################################################### +if [ "$(cat /boot/cmdline.txt | grep cgroup)" != "" ] + then + printf "Seems to be already fixed!" + else + sed -i "1 s|$| cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1|" /boot/cmdline.txt +fi + +#### INSTALL PIMOX7 AND REBOOT ########################################################################################################### +DEBIAN_FRONTEND=noninteractive apt install -y -o Dpkg::Options::="--force-confdef" proxmox-ve +printf " +========================================================================================= + ! ERRORS ARE NOMALAY FINE -> README.md ! +========================================================================================= +\n" && sleep 3 +printf " +========================================================================================= + $GREEN ! INSTALATION COMPLETED ! WAIT ! REBOOT ! $NORMAL +========================================================================================= +\n" && sleep 7 && reboot + +#### EOF #### \ No newline at end of file From bd613b6b8d30949996ca47e7104a1fdd64eface9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 13:15:09 +0100 Subject: [PATCH 03/12] adjusted README.md changed autoinstall steps --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9567c5b..0c7b6b7 100644 --- a/README.md +++ b/README.md @@ -25,14 +25,9 @@ RPiOS64 autoinstall --- 0. Flash and startup the latest image from https://downloads.raspberrypi.org/raspios_arm64/ . 1. sudo -s -2. curl https://raw.githubusercontent.com/pimox/pimox7/master/RPiOS64autoinstall.sh > RPiOS64autoinstall.sh -3. nano RPiOS64autoinstall.sh -5. Adjust network and hostname settings. -6. chmod +x RPiOS64autoinstall.sh -7. ./RPiOS64autoinstall.sh -8. Type a new root password. -9. Retype new password. -10. Do __not__ touch it untill, reboot is done. +2. curl https://raw.githubusercontent.com/pimox/pimox7/master/RPiOS64-IA-Install.sh > RPiOS64-IA-Install.sh +3. ./RPiOS64autoinstall.sh +4. Follow the pormpots Notes --- From 359027c019d324b6c141071471dd9a624cccce17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 13:25:37 +0100 Subject: [PATCH 04/12] Update RPiOS64-IA-Install.sh added final message with new IP, in case of remote installation. --- RPiOS64-IA-Install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RPiOS64-IA-Install.sh b/RPiOS64-IA-Install.sh index 1059017..d378f39 100644 --- a/RPiOS64-IA-Install.sh +++ b/RPiOS64-IA-Install.sh @@ -168,6 +168,9 @@ printf " ========================================================================================= $GREEN ! INSTALATION COMPLETED ! WAIT ! REBOOT ! $NORMAL ========================================================================================= + + after rebbot the PVE web interface will be reachable here : + ---> $GREEN https://$RPI_IP:8006/ $NORMAL <--- \n" && sleep 7 && reboot -#### EOF #### \ No newline at end of file +#### EOF #### From 229de94cd8b5952a69c833fa751af4e43ed0c8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 13:28:32 +0100 Subject: [PATCH 05/12] Update README.md updated step 3... --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c7b6b7..ccb6400 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ RPiOS64 autoinstall 0. Flash and startup the latest image from https://downloads.raspberrypi.org/raspios_arm64/ . 1. sudo -s 2. curl https://raw.githubusercontent.com/pimox/pimox7/master/RPiOS64-IA-Install.sh > RPiOS64-IA-Install.sh -3. ./RPiOS64autoinstall.sh +3. ./RPiOS64-IA-Install.sh 4. Follow the pormpots Notes From d803b41323b2224e5ba9ff457ef36001a05925ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 21:35:50 +0100 Subject: [PATCH 06/12] update for remote install This update fixes the installer if executed remotely, "prevent" the ssh conection to be closed, by network changes. However it produces more output errors in the installation phase, witch are "ok", because they get fixed on reboot. --- RPiOS64-IA-Install.sh | 49 +++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/RPiOS64-IA-Install.sh b/RPiOS64-IA-Install.sh index d378f39..458a92e 100644 --- a/RPiOS64-IA-Install.sh +++ b/RPiOS64-IA-Install.sh @@ -1,6 +1,6 @@ # !/bin/bash ####################################################################### -# Name: RPiOS64-IA-Install.sh Version: 0.1.1 # +# Name: RPiOS64-IA-Install.sh Version: 0.1.2 # # Created: 07.09.2021 Modified: 13.11.2021 # # Author: TuxfeatMac J.T. # # Purpose: interactive, automatic, Pimox7 installation RPi4B, RPi3B+ # @@ -86,13 +86,17 @@ THE PIMOX REPO WILL BE ADDED IN : $YELLOW /etc/apt/sources.list.d/pimox.list $NO $GRAY# Pimox 7 Development Repo$NORMAL deb https://raw.githubusercontent.com/pimox/pimox7/master/ dev/ ========================================================================================= -THE NETWORK CONFIGURATION IN : $YELLOW /etc/network/interfaces $NORMAL WILL BE $RED OVERWRITTEN $NORMAL !!! WITH : +THE NETWORK CONFIGURATION IN : $YELLOW /etc/network/interfaces $NORMAL WILL BE $RED CHANGED $NORMAL !!! TO : auto lo iface lo inet loopback -auto eth0 -iface eth0 inet static -address $GREEN$RPI_IP$NORMAL -gateway $GREEN$GATEWAY$NORMAL +iface eth0 inet manual +auto vmbr0 +iface vmbr0 inet static + address $GREEN $RPI_IP $NORMAL + gateway $GREEN $GATEWAY $NORMAL + bridge-ports eth0 + bridge-stp off + bridge-fd 0 ========================================================================================= THE HOSTNAMES IN : $YELLOW /etc/hosts $NORMAL WILL BE $RED OVERWRITTEN $NORMAL !!! WITH : 127.0.0.1\tlocalhost @@ -125,16 +129,6 @@ printf " #### SET NEW HOSTNAME ################################################################################################################### hostnamectl set-hostname $HOSTNAME -printf "127.0.0.1\tlocalhost -$RPI_IP_ONLY\t$HOSTNAME" > /etc/hosts - -#### RECONFIGURE NETWORK ################################################################################################################ -printf "auto lo -iface lo inet loopback -auto eth0 -iface eth0 inet static -address $RPI_IP -gateway $GATEWAY\n" > /etc/network/interfaces #### ADD SOURCE PIMOX7 + KEY & UPDATE & INSTALL RPI-KERNEL-HEADERS ####################################################################### printf "# PiMox7 Development Repo @@ -146,9 +140,6 @@ apt update && apt upgrade -y && apt install -y raspberrypi-kernel-headers apt purge -y dhcpcd5 apt autoremove -y -#### PREVENT DEFAULT NETCONFIGURATION #################################################################################################### -rm -r /etc/network/interfaces.new - #### FIX CONTAINER STATS NOT SHOWING UP IN WEB GUI ####################################################################################### if [ "$(cat /boot/cmdline.txt | grep cgroup)" != "" ] then @@ -159,6 +150,24 @@ fi #### INSTALL PIMOX7 AND REBOOT ########################################################################################################### DEBIAN_FRONTEND=noninteractive apt install -y -o Dpkg::Options::="--force-confdef" proxmox-ve + +#### RECONFIGURE NETWORK #### /etc/hosts REMOVE IPv6 #### /etc/network/interfaces.new CONFIGURE NETWORK TO CHANGE ON REBOOT ############## +printf "127.0.0.1\tlocalhost +$RPI_IP_ONLY\t$HOSTNAME\n" > /etc/hosts +printf "auto lo +iface lo inet loopback + +iface eth0 inet manual + +auto vmbr0 +iface vmbr0 inet static + address $RPI_IP + gateway $GATEWAY + bridge-ports eth0 + bridge-stp off + bridge-fd 0 \n" > /etc/network/interfaces.new + +### FINAL MESSAGE ######################################################################################################################## printf " ========================================================================================= ! ERRORS ARE NOMALAY FINE -> README.md ! @@ -170,7 +179,7 @@ printf " ========================================================================================= after rebbot the PVE web interface will be reachable here : - ---> $GREEN https://$RPI_IP:8006/ $NORMAL <--- + ---> $GREEN https://$RPI_IP_ONLY:8006/ $NORMAL <--- \n" && sleep 7 && reboot #### EOF #### From 72661a70a1efd1f5f7146b87267877dc224a5f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 22:09:24 +0100 Subject: [PATCH 07/12] cleanup, info output. --- RPiOS64-IA-Install.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/RPiOS64-IA-Install.sh b/RPiOS64-IA-Install.sh index 458a92e..a95aba1 100644 --- a/RPiOS64-IA-Install.sh +++ b/RPiOS64-IA-Install.sh @@ -152,6 +152,11 @@ fi DEBIAN_FRONTEND=noninteractive apt install -y -o Dpkg::Options::="--force-confdef" proxmox-ve #### RECONFIGURE NETWORK #### /etc/hosts REMOVE IPv6 #### /etc/network/interfaces.new CONFIGURE NETWORK TO CHANGE ON REBOOT ############## +printf " +========================================================================================= +$GREEN ! FIXING NETWORK CONFIGURATION.... ERRORS ARE NOMALAY FINE AND RESOLVED AFTER REBOOT ! $NORMAL +========================================================================================= +\n" printf "127.0.0.1\tlocalhost $RPI_IP_ONLY\t$HOSTNAME\n" > /etc/hosts printf "auto lo @@ -169,17 +174,16 @@ iface vmbr0 inet static ### FINAL MESSAGE ######################################################################################################################## printf " -========================================================================================= - ! ERRORS ARE NOMALAY FINE -> README.md ! -========================================================================================= -\n" && sleep 3 -printf " ========================================================================================= $GREEN ! INSTALATION COMPLETED ! WAIT ! REBOOT ! $NORMAL ========================================================================================= after rebbot the PVE web interface will be reachable here : ---> $GREEN https://$RPI_IP_ONLY:8006/ $NORMAL <--- -\n" && sleep 7 && reboot + + run ---> $YELLOW apt get upgrade -y $NORMAL <--- + in a root shell to complet the installation. + +\n" && sleep 10 && reboot #### EOF #### From fca558d13a68df830fc2bdfe36da3872ce392b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 22:39:18 +0100 Subject: [PATCH 08/12] fix typo old habits die hard... --- RPiOS64-IA-Install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RPiOS64-IA-Install.sh b/RPiOS64-IA-Install.sh index a95aba1..7178003 100644 --- a/RPiOS64-IA-Install.sh +++ b/RPiOS64-IA-Install.sh @@ -181,7 +181,7 @@ printf " after rebbot the PVE web interface will be reachable here : ---> $GREEN https://$RPI_IP_ONLY:8006/ $NORMAL <--- - run ---> $YELLOW apt get upgrade -y $NORMAL <--- + run ---> $YELLOW apt upgrade -y $NORMAL <--- in a root shell to complet the installation. \n" && sleep 10 && reboot From d44745c4434ff95854c5d2d1f46f107113a73f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 23:08:54 +0100 Subject: [PATCH 09/12] fixed typo --- RPiOS64-IA-Install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RPiOS64-IA-Install.sh b/RPiOS64-IA-Install.sh index 7178003..ca20585 100644 --- a/RPiOS64-IA-Install.sh +++ b/RPiOS64-IA-Install.sh @@ -182,7 +182,7 @@ printf " ---> $GREEN https://$RPI_IP_ONLY:8006/ $NORMAL <--- run ---> $YELLOW apt upgrade -y $NORMAL <--- - in a root shell to complet the installation. + in a root shell to complete the installation. \n" && sleep 10 && reboot From ee012a53152c0a8d76c686185fc64f9538926f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sat, 13 Nov 2021 23:09:56 +0100 Subject: [PATCH 10/12] Update README.md addes step 3. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ccb6400..0135a95 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,9 @@ RPiOS64 autoinstall 0. Flash and startup the latest image from https://downloads.raspberrypi.org/raspios_arm64/ . 1. sudo -s 2. curl https://raw.githubusercontent.com/pimox/pimox7/master/RPiOS64-IA-Install.sh > RPiOS64-IA-Install.sh -3. ./RPiOS64-IA-Install.sh -4. Follow the pormpots +3. chmod +x RPiOS64-IA-Install.sh +4. ./RPiOS64-IA-Install.sh +5. Follow the pormpots Notes --- From 0892dd5fc3656bc008a80f85ac2472e396fa8d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Sun, 14 Nov 2021 17:20:23 +0100 Subject: [PATCH 11/12] changed auto installer heading --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0135a95..a0dd58c 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Install 2. sudo -s 3. curl https://raw.githubusercontent.com/pimox/pimox7/master/pimox.sh | sh -RPiOS64 autoinstall +Install from scratch, RPiOS64bit Interactive Automatic Installer --- 0. Flash and startup the latest image from https://downloads.raspberrypi.org/raspios_arm64/ . 1. sudo -s From d62e278da947164f72cfceb94cae4e5859e746ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Tr=C3=A4uble?= Date: Tue, 16 Nov 2021 19:17:21 +0100 Subject: [PATCH 12/12] replace the default no sub message I don't think it is possible to get a subscription for the RPi, so it is neat to have a reminder that this is not an official proxmox build --- RPiOS64-IA-Install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RPiOS64-IA-Install.sh b/RPiOS64-IA-Install.sh index ca20585..4e99c57 100644 --- a/RPiOS64-IA-Install.sh +++ b/RPiOS64-IA-Install.sh @@ -172,6 +172,13 @@ iface vmbr0 inet static bridge-stp off bridge-fd 0 \n" > /etc/network/interfaces.new +#### CONFIGURE PIMOX7 BANNER ############################################################################################################# +cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.auto.backup +SEARCH="return Ext.String.format('" +#### PLACE HOLDER BANNER BEGINN --> #### LINE 1 #### #### LINEBREAK #### -- #### LINE 2 ##### +REPLACE="return Ext.String.format(' This is a unofficial development build of PVE7 - PIMOX7 - https://github.com/pimox/pimox7 Build to run a PVE7 on the RPi4. ! ! ! NO GUARANTEE NOT OFFICCIAL SUPPORTED ! ! ! ');" +sed -i "s|$SEARCH.*|$REPLACE|" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js + ### FINAL MESSAGE ######################################################################################################################## printf " =========================================================================================