seho85 / klipper-dgus

A python project to connect a DGUS display to Klipper
GNU General Public License v3.0
44 stars 13 forks source link

Create install script #22

Closed Robnex closed 2 years ago

Robnex commented 2 years ago

Hey,

you should create a install script like this:

echo "#################"
echo "# DGUS INSTALLER #"
echo "#################"
echo ""
echo "Install Python3-venv"
echo ""
sudo apt-get install python3-venv -Y &&
echo "Python3-venv installed"
echo ""
echo "Create python env"
python3 -m venv venv &&
echo ""
echo "Source ENV"
source ./venv/bin/activate &&
echo ""
echo "install dependencies"
pip3 install -r requirements.txt &&
echo ""
echo "read serial devices"
ls /dev/serial/by-id &&
echo ""
echo "Update your serial device in /config/serial_config.json at line 3"
echo ""
echo "Install dgus.service"
sudo cp ./dgus.service /etc/systemd/system/ &&
sudo systemctl daemon-reload &&
echo ""
sudo systemctl enable dgus.service &&
echo "" 
echo "start dgus.service
sudo systemctl start dgus.service &&
echo "installation done" 
seho85 commented 2 years ago

An install script has been added with commit db4b81e1391b38c2b997894ef3add6a96d698959

Refer to Documentation for usage.