Merge pull request #17 from ToyVo/patch-1
#16 Add option for prepare for Raspberry Pi OS
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 '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 Bullseye" "Quit")
|
||||
select opt in "${options[@]}"
|
||||
do
|
||||
case $opt in
|
||||
@@ -481,6 +481,10 @@ prepare () {
|
||||
INSTALL=5
|
||||
break
|
||||
;;
|
||||
"Raspberry Pi OS Bullseye")
|
||||
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 6 ]; 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
|
||||
|
||||
Reference in New Issue
Block a user