#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 'Run this setup and then connect to OctoPrint through your browser to setup your admin user.'
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[@]}"
do
case $opt in
@@ -481,6 +481,10 @@ prepare () {
INSTALL=5
break
;;
"Raspberry Pi OS Buster")
INSTALL=6
break
;;
"Quit")
exit 1
;;
@@ -538,6 +542,11 @@ prepare () {
if [ $INSTALL -eq 5 ]; then
dnf -y install python3-devel cmake libjpeg-turbo-devel
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"
#make venv
@@ -630,4 +639,4 @@ main_menu() {
if [ $SUDO_USER ]; then user=$SUDO_USER; fi
logfile='octoprint_deploy.log'
SCRIPTDIR=$(dirname $(readlink -f $0))
main_menu
main_menu