#16 add raspberry pi os prepare option

This commit is contained in:
Collin Diekvoss
2022-04-18 19:29:03 -05:00
committed by GitHub
parent 2d4c07ad80
commit 2bd6e3a6e0

View File

@@ -457,7 +457,7 @@ prepare () {
echo 'This only needs to be run once to prepare your system to use octoprint_deploy.' echo 'This only needs to be run once to prepare your system to use octoprint_deploy.'
echo 'Run this setup and then connect to OctoPrint through your browser to setup your admin user.' echo 'Run this setup and then connect to OctoPrint through your browser to setup your admin user.'
PS3='Installation type: ' PS3='Installation type: '
options=("OctoPi" "Ubuntu 18-20" "Ubuntu 21.X" "Mint 20.3" "Fedora 35+" "Quit") options=("OctoPi" "Ubuntu 18-20" "Ubuntu 21.X" "Mint 20.3" "Fedora 35+" "Raspberry Pi OS Buster" "Quit")
select opt in "${options[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in
@@ -481,6 +481,10 @@ prepare () {
INSTALL=5 INSTALL=5
break break
;; ;;
"Raspberry Pi OS Buster")
INSTALL=6
break
;;
"Quit") "Quit")
exit 1 exit 1
;; ;;
@@ -538,6 +542,11 @@ prepare () {
if [ $INSTALL -eq 5 ]; then if [ $INSTALL -eq 5 ]; then
dnf -y install python3-devel cmake libjpeg-turbo-devel dnf -y install python3-devel cmake libjpeg-turbo-devel
fi fi
#Raspberry Pi OS Buster
if [ $INSTALL -eq 5 ]; then
apt-get update > /dev/null
apt-get -y install make v4l-utils virtualenv python-is-python3 cmake libjpeg62-turbo-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip python3-venv
fi
echo "Installing OctoPrint in /home/$user/OctoPrint" echo "Installing OctoPrint in /home/$user/OctoPrint"
#make venv #make venv