#16 add raspberry pi os prepare option
This commit is contained in:
@@ -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
|
||||||
@@ -630,4 +639,4 @@ main_menu() {
|
|||||||
if [ $SUDO_USER ]; then user=$SUDO_USER; fi
|
if [ $SUDO_USER ]; then user=$SUDO_USER; fi
|
||||||
logfile='octoprint_deploy.log'
|
logfile='octoprint_deploy.log'
|
||||||
SCRIPTDIR=$(dirname $(readlink -f $0))
|
SCRIPTDIR=$(dirname $(readlink -f $0))
|
||||||
main_menu
|
main_menu
|
||||||
|
|||||||
Reference in New Issue
Block a user