You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I booted up kamikaze and realized that octoprint as it was distributed would not allow for "online" updates as would be expected on octopi. Similarly, installing plugins had to be done from the command line.
This is a not so minor inconvenience...
So I created this bash script which will take the 16/02/2016 image of Kamikaze and restore its octoprint functionality.
WARNING: I don't know that all the changes I did to the octo user were required. Some may introduce some security risks. This is only a first draft at correcting the issue, and I sincerely appreciate anyone pointing out the flaws of my modifications so that I may correct them.
!/bin/bash
Execute as root
easy_install -U pip
pip install -U octoprint
passwd -u octo
usermod -p octo1234 octo
usermod -s /bin/bash octo
usermod -a -G staff octo
echo "DenyUsers octo" >> /etc/ssh/sshd_config
cd /home/octo
git clone https://github.com/foosel/OctoPrint.git
chown octo:octo -R OctoPrint
chmod 664 /usr/local/lib/python2.7/dist-packages/easy-install.pth
su octo
cd ~/OctoPrint/
python setup.py clean
python setup.py install
exit
sed -i -e "s/bin/octoprint/local/bin/octoprint/g" /etc/systemd/system/multi-user.target.wants/octoprint.service
systemctl daemon-reload
systemctl restart octoprint.service
The text was updated successfully, but these errors were encountered:
I booted up kamikaze and realized that octoprint as it was distributed would not allow for "online" updates as would be expected on octopi. Similarly, installing plugins had to be done from the command line.
This is a not so minor inconvenience...
So I created this bash script which will take the 16/02/2016 image of Kamikaze and restore its octoprint functionality.
WARNING: I don't know that all the changes I did to the octo user were required. Some may introduce some security risks. This is only a first draft at correcting the issue, and I sincerely appreciate anyone pointing out the flaws of my modifications so that I may correct them.
The text was updated successfully, but these errors were encountered: