add ssh packages for remote access
This commit is contained in:
@@ -548,6 +548,7 @@ deb_packages() {
|
|||||||
-e libbsd-dev \
|
-e libbsd-dev \
|
||||||
-e ffmpeg \
|
-e ffmpeg \
|
||||||
-e uuid-runtime\
|
-e uuid-runtime\
|
||||||
|
-e ssh\
|
||||||
-e haproxy\
|
-e haproxy\
|
||||||
| xargs apt-get install -y | log
|
| xargs apt-get install -y | log
|
||||||
|
|
||||||
@@ -672,7 +673,7 @@ prepare () {
|
|||||||
fi
|
fi
|
||||||
#Fedora35
|
#Fedora35
|
||||||
if [ $INSTALL -eq 3 ]; then
|
if [ $INSTALL -eq 3 ]; then
|
||||||
dnf -y install python3-devel cmake libjpeg-turbo-devel libbsd-devel libevent-devel haproxy
|
dnf -y install python3-devel cmake libjpeg-turbo-devel libbsd-devel libevent-devel haproxy openssh openssh-server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing OctoPrint in /home/$user/OctoPrint"
|
echo "Installing OctoPrint in /home/$user/OctoPrint"
|
||||||
@@ -770,7 +771,7 @@ prepare () {
|
|||||||
restorecon -R -v /home/$user/OctoPrint/bin
|
restorecon -R -v /home/$user/OctoPrint/bin
|
||||||
if [ $VID -eq 1 ]; then
|
if [ $VID -eq 1 ]; then
|
||||||
semanage fcontext -a -t bin_t "/home/$user/mjpg-streamer/.*"
|
semanage fcontext -a -t bin_t "/home/$user/mjpg-streamer/.*"
|
||||||
chcon -Rv -u system_u -t bin_t "/home/$user/mjpg-streamer/"
|
chcon -Rv -u more sysystem_u -t bin_t "/home/$user/mjpg-streamer/"
|
||||||
restorecon -R -v /home/$user/mjpg-streamer
|
restorecon -R -v /home/$user/mjpg-streamer
|
||||||
fi
|
fi
|
||||||
if [ $VID -eq 2 ]; then
|
if [ $VID -eq 2 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user