archlinux attempt
This commit is contained in:
@@ -566,7 +566,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-22, Mint, Debian, Raspberry Pi OS" "Fedora 35+" "Quit")
|
options=("OctoPi" "Ubuntu 18-22, Mint, Debian, Raspberry Pi OS" "Fedora/CentOS" "ArchLinux" "Quit")
|
||||||
select opt in "${options[@]}"
|
select opt in "${options[@]}"
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
@@ -578,10 +578,13 @@ prepare () {
|
|||||||
INSTALL=2
|
INSTALL=2
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"Fedora 35+")
|
"Fedora/Centos"
|
||||||
INSTALL=3
|
INSTALL=3
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
"ArchLinux"
|
||||||
|
INSTALL=4
|
||||||
|
break
|
||||||
"Quit")
|
"Quit")
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
@@ -671,11 +674,16 @@ prepare () {
|
|||||||
apt-get update > /dev/null
|
apt-get update > /dev/null
|
||||||
deb_packages
|
deb_packages
|
||||||
fi
|
fi
|
||||||
#Fedora35
|
#Fedora35/CentOS
|
||||||
if [ $INSTALL -eq 3 ]; then
|
if [ $INSTALL -eq 3 ]; then
|
||||||
dnf -y install python3-devel cmake libjpeg-turbo-devel libbsd-devel libevent-devel haproxy openssh openssh-server
|
dnf -y install python3-devel cmake libjpeg-turbo-devel libbsd-devel libevent-devel haproxy openssh openssh-server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#ArchLinux
|
||||||
|
if [ $INSTALL -eq 4 ]; then
|
||||||
|
pacman -S --noconfirm make cmake python python-virtualenv libyaml python-pip libjpeg-turbo python-yaml python-setuptools ffmpeg gcc libevent libbsd openssh haproxy v4l-utils
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing OctoPrint in /home/$user/OctoPrint"
|
echo "Installing OctoPrint in /home/$user/OctoPrint"
|
||||||
#make venv
|
#make venv
|
||||||
sudo -u $user python3 -m venv /home/$user/OctoPrint
|
sudo -u $user python3 -m venv /home/$user/OctoPrint
|
||||||
|
|||||||
Reference in New Issue
Block a user