mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-11-15 17:45:53 +01:00
Update octoprint-server-install.sh
This commit is contained in:
@@ -7,8 +7,8 @@
|
|||||||
# Author URI: https://cryinkfly.com
|
# Author URI: https://cryinkfly.com
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# Copyright (c) 2020-2021
|
# Copyright (c) 2020-2021
|
||||||
# Time/Date: 22:30/16.08.2021
|
# Time/Date: 17:00/16.09.2021
|
||||||
# Version: 1.2
|
# Version: 1.3
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
@@ -34,8 +34,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
function install-requirement-check {
|
function install-requirement-check {
|
||||||
if VERB="$( which apt-get )" 2> /dev/null; then
|
|
||||||
echo "Debian-based"
|
|
||||||
sudo apt-get update &&
|
sudo apt-get update &&
|
||||||
sudo apt-get install python3-pip python3-dev python3-setuptools python3-venv git libyaml-dev build-essential &&
|
sudo apt-get install python3-pip python3-dev python3-setuptools python3-venv git libyaml-dev build-essential &&
|
||||||
mkdir OctoPrint &&
|
mkdir OctoPrint &&
|
||||||
@@ -44,7 +42,7 @@ if VERB="$( which apt-get )" 2> /dev/null; then
|
|||||||
source venv/bin/activate &&
|
source venv/bin/activate &&
|
||||||
pip install pip --upgrade &&
|
pip install pip --upgrade &&
|
||||||
pip install octoprint &&
|
pip install octoprint &&
|
||||||
|
|
||||||
sudo usermod -a -G tty $USER &&
|
sudo usermod -a -G tty $USER &&
|
||||||
sudo usermod -a -G dialout $USER &&
|
sudo usermod -a -G dialout $USER &&
|
||||||
|
|
||||||
@@ -57,10 +55,9 @@ if VERB="$( which apt-get )" 2> /dev/null; then
|
|||||||
|
|
||||||
echo "The installation of OctoPrint (Server) is completed and you can use it for your projects."
|
echo "The installation of OctoPrint (Server) is completed and you can use it for your projects."
|
||||||
echo "Now you can use this command for manage OctoPrint (Server) on your system: sudo service octoprint {start|stop|restart}"
|
echo "Now you can use this command for manage OctoPrint (Server) on your system: sudo service octoprint {start|stop|restart}"
|
||||||
else
|
|
||||||
echo "I can't find your package manager!"
|
|
||||||
exit;
|
exit;
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
requirement-check
|
requirement-check
|
||||||
|
|||||||
Reference in New Issue
Block a user