aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/Dockerfile44
-rwxr-xr-xscripts/install-arch.sh102
-rwxr-xr-xscripts/install-beaglebone.sh80
-rwxr-xr-xscripts/install-centos.sh101
-rwxr-xr-xscripts/install-debian.sh105
-rwxr-xr-xscripts/install-octopi.sh103
-rwxr-xr-xscripts/install-ubuntu-18.04.sh102
-rwxr-xr-xscripts/install-ubuntu-22.04.sh102
-rwxr-xr-xscripts/klipper-start.sh54
-rwxr-xr-xscripts/klipper-uninstall.sh23
10 files changed, 0 insertions, 816 deletions
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
deleted file mode 100644
index c178c1ab..00000000
--- a/scripts/Dockerfile
+++ /dev/null
@@ -1,44 +0,0 @@
-# This is an example Dockerfile showing how it's possible to install Klipper in Docker.
-# IMPORTANT: The docker build must be run from the root of the repo, either copy the
-# Dockerfile to the root, or run docker build with "-f", for example:
-# docker build . -f scripts/Dockerfile -t klipper
-# Note that the host still needs to run Linux to connect the printers serial port to
-# the container.
-# When running, the serial port of your printer should be connected, including an
-# argument such as:
-# --device /dev/ttyUSB0:/dev/ttyUSB0
-# It's also required that your control program (eg: OctoPrint) be included in the same
-# container as Docker does not allow sharing of the virtual serial port outside the
-# container.
-# The config should be in a file named "printer.cfg" in a directory mounted at:
-# /home/klippy/.config/
-# For more Dockerfile examples with Klipper (and Octoprint) see:
-# https://github.com/sillyfrog/OctoPrint-Klipper-mjpg-Dockerfile
-FROM ubuntu:18.04
-
-RUN apt-get update && \
- apt-get install -y sudo
-
-# Create user
-RUN useradd -ms /bin/bash klippy && adduser klippy dialout
-USER klippy
-
-#This fixes issues with the volume command setting wrong permissions
-RUN mkdir /home/klippy/.config
-VOLUME /home/klippy/.config
-
-### Klipper setup ###
-WORKDIR /home/klippy
-
-COPY . klipper/
-USER root
-RUN echo 'klippy ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/klippy && \
- chown klippy:klippy -R klipper
-# This is to allow the install script to run without error
-RUN ln -s /bin/true /bin/systemctl
-USER klippy
-RUN ./klipper/scripts/install-ubuntu-18.04.sh
-# Clean up install script workaround
-RUN sudo rm -f /bin/systemctl
-
-CMD ["/home/klippy/klippy-env/bin/python", "/home/klippy/klipper/klippy/klippy.py", "/home/klippy/.config/printer.cfg"]
diff --git a/scripts/install-arch.sh b/scripts/install-arch.sh
deleted file mode 100755
index ad5820c0..00000000
--- a/scripts/install-arch.sh
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/bin/bash
-# This script installs Klipper on an Arch Linux system
-
-PYTHONDIR="${HOME}/klippy-env"
-SYSTEMDDIR="/etc/systemd/system"
-AURCLIENT="pamac"
-KLIPPER_USER=$USER
-KLIPPER_GROUP=$KLIPPER_USER
-
-# Step 1: Install system packages
-install_packages()
-{
- # Packages for python cffi
- PKGLIST="python2-virtualenv libffi base-devel"
- # kconfig requirements
- PKGLIST="${PKGLIST} ncurses"
- # hub-ctrl
- PKGLIST="${PKGLIST} libusb"
- # AVR chip installation and building
- PKGLIST="${PKGLIST} avrdude avr-gcc avr-binutils avr-libc"
- # ARM chip installation and building
- AURLIST="stm32flash"
- PKGLIST="${PKGLIST} arm-none-eabi-newlib"
- PKGLIST="${PKGLIST} arm-none-eabi-gcc arm-none-eabi-binutils"
-
- # Install desired packages
- report_status "Installing packages..."
- sudo pacman -S ${PKGLIST}
- $AURCLIENT build ${AURLIST}
-}
-
-# Step 2: Create python virtual environment
-create_virtualenv()
-{
- report_status "Updating python virtual environment..."
-
- # Create virtualenv if it doesn't already exist
- [ ! -d ${PYTHONDIR} ] && virtualenv2 ${PYTHONDIR}
-
- # Install/update dependencies
- ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/klippy-requirements.txt
-}
-
-# Step 3: Install startup script
-install_script()
-{
-# Create systemd service file
- KLIPPER_LOG=/tmp/klippy.log
- report_status "Installing system start script..."
- sudo /bin/sh -c "cat > $SYSTEMDDIR/klipper.service" << EOF
-#Systemd service file for klipper
-[Unit]
-Description=Starts klipper on startup
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-Type=simple
-User=$KLIPPER_USER
-RemainAfterExit=yes
-ExecStart=${PYTHONDIR}/bin/python ${SRCDIR}/klippy/klippy.py ${HOME}/printer.cfg -l ${KLIPPER_LOG}
-EOF
-# Use systemctl to enable the klipper systemd service script
- sudo systemctl enable klipper.service
- report_status "Make sure to add $KLIPPER_USER to the user group controlling your serial printer port"
-}
-
-# Step 4: Start host software
-start_software()
-{
- report_status "Launching Klipper host software..."
- sudo systemctl start klipper
-}
-
-# Helper functions
-report_status()
-{
- echo -e "\n\n###### $1"
-}
-
-verify_ready()
-{
- if [ "$EUID" -eq 0 ]; then
- echo "This script must not run as root"
- exit -1
- fi
-}
-
-# Force script to exit if an error occurs
-set -e
-
-# Find SRCDIR from the pathname of this script
-SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
-
-# Run installation steps defined above
-verify_ready
-install_packages
-create_virtualenv
-install_script
-start_software
diff --git a/scripts/install-beaglebone.sh b/scripts/install-beaglebone.sh
deleted file mode 100755
index 58424c05..00000000
--- a/scripts/install-beaglebone.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/bash
-# This script installs Klipper on a Beaglebone running Debian Bullseye
-# for use with its PRU micro-controller.
-
-# Step 1: Do main install
-install_main()
-{
- # Run the debian script - should
- # work.
- ${SRCDIR}/scripts/install-debian.sh
-}
-
-# Step 2: Install additional system packages
-install_packages()
-{
- # Remove conflicting AVR packages
- PKGLIST_REMOVE="avrdude gcc-avr binutils-avr avr-libc"
-
- report_status "Removing ARM packages because of conflicts with PRU packages"
- sudo apt-get remove --yes ${PKGLIST_REMOVE}
-
- # Install desired packages
- PKGLIST="gcc-pru"
-
- report_status "Installing beaglebone packages..."
- sudo apt-get install --yes ${PKGLIST}
-}
-
-# Step 3: Install startup script
-install_script()
-{
- report_status "Installing pru start script..."
- sudo cp "${SRCDIR}/scripts/klipper-pru-start.sh" /etc/init.d/klipper_pru
- sudo update-rc.d klipper_pru defaults-disabled
-}
-
-# Step 4: Install pru udev rule
-install_udev()
-{
- report_status "Installing pru udev rule..."
- sudo /bin/sh -c "cat > /etc/udev/rules.d/pru.rules" <<EOF
-SUBSYSTEM=="remoteproc", ENV{REMOTEPROC_NAME}!="", TAG+="systemd", ENV{SYSTEMD_WANTS}="klipper_pru.service"
-KERNEL=="rpmsg_pru30", GROUP="tty", MODE="0660"
-EOF
-}
-
-# Step 5: Add user to tty group
-install_groups()
-{
- report_status "Adding $USER to tty group..."
- sudo adduser $USER tty
-}
-
-# Helper functions
-report_status()
-{
- echo -e "\n\n###### $1"
-}
-
-verify_ready()
-{
- if [ "$EUID" -eq 0 ]; then
- echo "This script must not run as root"
- exit -1
- fi
-}
-
-# Force script to exit if an error occurs
-set -e
-
-# Find SRCDIR from the pathname of this script
-SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
-
-# Run installation steps defined above
-verify_ready
-install_main
-install_packages
-install_script
-install_udev
-install_groups
diff --git a/scripts/install-centos.sh b/scripts/install-centos.sh
deleted file mode 100755
index 79ff35f2..00000000
--- a/scripts/install-centos.sh
+++ /dev/null
@@ -1,101 +0,0 @@
-#!/bin/bash
-# This script installs Klipper on an x86_64 machine running the
-# CentOS 7 distribution.
-
-PYTHONDIR="${HOME}/klippy-env"
-SYSTEMDDIR="/etc/systemd/system"
-
-# Step 1: Install system packages
-install_packages()
-{
- # Packages for python cffi
- PKGLIST="python-virtualenv libffi-devel"
- # kconfig requirements
- PKGLIST="${PKGLIST} ncurses-devel"
- # hub-ctrl
- PKGLIST="${PKGLIST} libusb-devel"
- # AVR chip installation and building
- PKGLIST="${PKGLIST} avrdude gcc-avr32-linux-gnu binutils-avr32-linux-gnu avr-libc"
- # ARM chip installation and building
- # CentOS/Fedora do not appear to have these packages available at this time
- PKGLIST="${PKGLIST} arm-none-eabi-gcc-cs arm-none-eabi-newlib"
-
- # Install desired packages
- report_status "Installing packages..."
- sudo yum install -y ${PKGLIST}
-}
-
-# Step 2: Create python virtual environment
-create_virtualenv()
-{
- report_status "Updating python virtual environment..."
-
- # Create virtualenv if it doesn't already exist
- [ ! -d ${PYTHONDIR} ] && virtualenv -p python2 ${PYTHONDIR}
-
- # Install/update dependencies
- ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/klippy-requirements.txt
-}
-
-# Step 3: Install startup script
-install_script()
-{
-# Create systemd service file
- report_status "Installing system start script..."
- sudo /bin/sh -c "cat > $SYSTEMDDIR/klipper.service" << EOF
-#Systemd service file for klipper
-[Unit]
-Description=Starts klipper on startup
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-Type=simple
-User=$USER
-RemainAfterExit=yes
-ExecStart=${PYTHONDIR}/bin/python ${SRCDIR}/klippy/klippy.py ${HOME}/printer.cfg -l /var/log/klippy.log
-EOF
-# Use systemctl to enable the klipper systemd service script
- sudo systemctl enable klipper.service
-}
-
-# Configuration for systemctl klipper
-
-KLIPPY_USER=$USER
-
-
-# Step 5: Start host software
-start_software()
-{
- report_status "Launching Klipper host software..."
- sudo systemctl restart klipper
-}
-
-# Helper functions
-report_status()
-{
- echo -e "\n\n###### $1"
-}
-
-verify_ready()
-{
- if [ "$EUID" -eq 0 ]; then
- echo "This script must not run as root"
- exit -1
- fi
-}
-
-# Force script to exit if an error occurs
-set -e
-
-# Find SRCDIR from the pathname of this script
-SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
-
-# Run installation steps defined above
-verify_ready
-install_packages
-create_virtualenv
-install_script
-start_software
diff --git a/scripts/install-debian.sh b/scripts/install-debian.sh
deleted file mode 100755
index 9c2cd3b4..00000000
--- a/scripts/install-debian.sh
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/bash
-# This script installs Klipper on an debian
-#
-
-PYTHONDIR="${HOME}/klippy-env"
-SYSTEMDDIR="/etc/systemd/system"
-KLIPPER_USER=$USER
-KLIPPER_GROUP=$KLIPPER_USER
-
-# Step 1: Install system packages
-install_packages()
-{
- # Packages for python cffi
- PKGLIST="virtualenv python-dev libffi-dev build-essential"
- # kconfig requirements
- PKGLIST="${PKGLIST} libncurses-dev"
- # hub-ctrl
- PKGLIST="${PKGLIST} libusb-dev"
- # AVR chip installation and building
- PKGLIST="${PKGLIST} avrdude gcc-avr binutils-avr avr-libc"
- # ARM chip installation and building
- PKGLIST="${PKGLIST} stm32flash libnewlib-arm-none-eabi"
- PKGLIST="${PKGLIST} gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0 pkg-config"
-
- # Update system package info
- report_status "Running apt-get update..."
- sudo apt-get update
-
- # Install desired packages
- report_status "Installing packages..."
- sudo apt-get install --yes ${PKGLIST}
-}
-
-# Step 2: Create python virtual environment
-create_virtualenv()
-{
- report_status "Updating python virtual environment..."
-
- # Create virtualenv if it doesn't already exist
- [ ! -d ${PYTHONDIR} ] && virtualenv -p python2 ${PYTHONDIR}
-
- # Install/update dependencies
- ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/klippy-requirements.txt
-}
-
-# Step 3: Install startup script
-install_script()
-{
-# Create systemd service file
- KLIPPER_LOG=/tmp/klippy.log
- report_status "Installing system start script..."
- sudo /bin/sh -c "cat > $SYSTEMDDIR/klipper.service" << EOF
-#Systemd service file for klipper
-[Unit]
-Description=Starts klipper on startup
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-Type=simple
-User=$KLIPPER_USER
-RemainAfterExit=yes
-ExecStart=${PYTHONDIR}/bin/python ${SRCDIR}/klippy/klippy.py ${HOME}/printer.cfg -l ${KLIPPER_LOG}
-Restart=always
-RestartSec=10
-EOF
-# Use systemctl to enable the klipper systemd service script
- sudo systemctl enable klipper.service
-}
-
-# Step 4: Start host software
-start_software()
-{
- report_status "Launching Klipper host software..."
- sudo systemctl start klipper
-}
-
-# Helper functions
-report_status()
-{
- echo -e "\n\n###### $1"
-}
-
-verify_ready()
-{
- if [ "$EUID" -eq 0 ]; then
- echo "This script must not run as root"
- exit -1
- fi
-}
-
-# Force script to exit if an error occurs
-set -e
-
-# Find SRCDIR from the pathname of this script
-SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
-
-# Run installation steps defined above
-verify_ready
-install_packages
-create_virtualenv
-install_script
-start_software
diff --git a/scripts/install-octopi.sh b/scripts/install-octopi.sh
deleted file mode 100755
index a7fb78c2..00000000
--- a/scripts/install-octopi.sh
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/bin/bash
-# This script installs Klipper on a Raspberry Pi machine running the
-# OctoPi distribution.
-
-PYTHONDIR="${HOME}/klippy-env"
-
-# Step 1: Install system packages
-install_packages()
-{
- # Packages for python cffi
- PKGLIST="virtualenv python-dev libffi-dev build-essential"
- # kconfig requirements
- PKGLIST="${PKGLIST} libncurses-dev"
- # hub-ctrl
- PKGLIST="${PKGLIST} libusb-dev"
- # AVR chip installation and building
- PKGLIST="${PKGLIST} avrdude gcc-avr binutils-avr avr-libc"
- # ARM chip installation and building
- PKGLIST="${PKGLIST} stm32flash dfu-util libnewlib-arm-none-eabi"
- PKGLIST="${PKGLIST} gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0"
-
- # Update system package info
- report_status "Running apt-get update..."
- sudo apt-get update
-
- # Install desired packages
- report_status "Installing packages..."
- sudo apt-get install --yes ${PKGLIST}
-}
-
-# Step 2: Create python virtual environment
-create_virtualenv()
-{
- report_status "Updating python virtual environment..."
-
- # Create virtualenv if it doesn't already exist
- [ ! -d ${PYTHONDIR} ] && virtualenv -p python2 ${PYTHONDIR}
-
- # Install/update dependencies
- ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/klippy-requirements.txt
-}
-
-# Step 3: Install startup script
-install_script()
-{
- report_status "Installing system start script..."
- sudo cp "${SRCDIR}/scripts/klipper-start.sh" /etc/init.d/klipper
- sudo update-rc.d klipper defaults
-}
-
-# Step 4: Install startup script config
-install_config()
-{
- DEFAULTS_FILE=/etc/default/klipper
- [ -f $DEFAULTS_FILE ] && return
-
- report_status "Installing system start configuration..."
- sudo /bin/sh -c "cat > $DEFAULTS_FILE" <<EOF
-# Configuration for /etc/init.d/klipper
-
-KLIPPY_USER=$USER
-
-KLIPPY_EXEC=${PYTHONDIR}/bin/python
-
-KLIPPY_ARGS="${SRCDIR}/klippy/klippy.py ${HOME}/printer.cfg -l /tmp/klippy.log"
-
-EOF
-}
-
-# Step 5: Start host software
-start_software()
-{
- report_status "Launching Klipper host software..."
- sudo /etc/init.d/klipper restart
-}
-
-# Helper functions
-report_status()
-{
- echo -e "\n\n###### $1"
-}
-
-verify_ready()
-{
- if [ "$EUID" -eq 0 ]; then
- echo "This script must not run as root"
- exit -1
- fi
-}
-
-# Force script to exit if an error occurs
-set -e
-
-# Find SRCDIR from the pathname of this script
-SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
-
-# Run installation steps defined above
-verify_ready
-install_packages
-create_virtualenv
-install_script
-install_config
-start_software
diff --git a/scripts/install-ubuntu-18.04.sh b/scripts/install-ubuntu-18.04.sh
deleted file mode 100755
index 80d641e6..00000000
--- a/scripts/install-ubuntu-18.04.sh
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/bin/bash
-# This script installs Klipper on an Ubuntu 18.04 machine with Octoprint
-
-PYTHONDIR="${HOME}/klippy-env"
-SYSTEMDDIR="/etc/systemd/system"
-KLIPPER_USER=$USER
-KLIPPER_GROUP=$KLIPPER_USER
-
-# Step 1: Install system packages
-install_packages()
-{
- # Packages for python cffi
- PKGLIST="virtualenv python-dev libffi-dev build-essential"
- # kconfig requirements
- PKGLIST="${PKGLIST} libncurses-dev"
- # hub-ctrl
- PKGLIST="${PKGLIST} libusb-dev"
- # AVR chip installation and building
- PKGLIST="${PKGLIST} avrdude gcc-avr binutils-avr avr-libc"
- # ARM chip installation and building
- PKGLIST="${PKGLIST} stm32flash libnewlib-arm-none-eabi"
- PKGLIST="${PKGLIST} gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0"
-
- # Update system package info
- report_status "Running apt-get update..."
- sudo apt-get update
-
- # Install desired packages
- report_status "Installing packages..."
- sudo apt-get install --yes ${PKGLIST}
-}
-
-# Step 2: Create python virtual environment
-create_virtualenv()
-{
- report_status "Updating python virtual environment..."
-
- # Create virtualenv if it doesn't already exist
- [ ! -d ${PYTHONDIR} ] && virtualenv -p python2 ${PYTHONDIR}
-
- # Install/update dependencies
- ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/klippy-requirements.txt
-}
-
-# Step 3: Install startup script
-install_script()
-{
-# Create systemd service file
- KLIPPER_LOG=/tmp/klippy.log
- report_status "Installing system start script..."
- sudo /bin/sh -c "cat > $SYSTEMDDIR/klipper.service" << EOF
-#Systemd service file for klipper
-[Unit]
-Description=Starts klipper on startup
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-Type=simple
-User=$KLIPPER_USER
-RemainAfterExit=yes
-ExecStart=${PYTHONDIR}/bin/python ${SRCDIR}/klippy/klippy.py ${HOME}/printer.cfg -l ${KLIPPER_LOG}
-EOF
-# Use systemctl to enable the klipper systemd service script
- sudo systemctl enable klipper.service
-}
-
-# Step 4: Start host software
-start_software()
-{
- report_status "Launching Klipper host software..."
- sudo systemctl start klipper
-}
-
-# Helper functions
-report_status()
-{
- echo -e "\n\n###### $1"
-}
-
-verify_ready()
-{
- if [ "$EUID" -eq 0 ]; then
- echo "This script must not run as root"
- exit -1
- fi
-}
-
-# Force script to exit if an error occurs
-set -e
-
-# Find SRCDIR from the pathname of this script
-SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
-
-# Run installation steps defined above
-verify_ready
-install_packages
-create_virtualenv
-install_script
-start_software
diff --git a/scripts/install-ubuntu-22.04.sh b/scripts/install-ubuntu-22.04.sh
deleted file mode 100755
index e2b9580f..00000000
--- a/scripts/install-ubuntu-22.04.sh
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/bin/bash
-# This script installs Klipper on an Ubuntu 22.04 ("Jammy") machine
-
-PYTHONDIR="${HOME}/klippy-env"
-SYSTEMDDIR="/etc/systemd/system"
-KLIPPER_USER=$USER
-KLIPPER_GROUP=$KLIPPER_USER
-
-# Step 1: Install system packages
-install_packages()
-{
- # Packages for python cffi
- PKGLIST="virtualenv python3-dev libffi-dev build-essential"
- # kconfig requirements
- PKGLIST="${PKGLIST} libncurses-dev"
- # hub-ctrl
- PKGLIST="${PKGLIST} libusb-dev"
- # AVR chip installation and building
- PKGLIST="${PKGLIST} avrdude gcc-avr binutils-avr avr-libc"
- # ARM chip installation and building
- PKGLIST="${PKGLIST} stm32flash dfu-util libnewlib-arm-none-eabi"
- PKGLIST="${PKGLIST} gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0"
-
- # Update system package info
- report_status "Running apt-get update..."
- sudo apt-get update
-
- # Install desired packages
- report_status "Installing packages..."
- sudo apt-get install --yes ${PKGLIST}
-}
-
-# Step 2: Create python virtual environment
-create_virtualenv()
-{
- report_status "Updating python virtual environment..."
-
- # Create virtualenv if it doesn't already exist
- [ ! -d ${PYTHONDIR} ] && virtualenv -p python3 ${PYTHONDIR}
-
- # Install/update dependencies
- ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/klippy-requirements.txt
-}
-
-# Step 3: Install startup script
-install_script()
-{
-# Create systemd service file
- KLIPPER_LOG=/tmp/klippy.log
- report_status "Installing system start script..."
- sudo /bin/sh -c "cat > $SYSTEMDDIR/klipper.service" << EOF
-#Systemd service file for klipper
-[Unit]
-Description=Starts klipper on startup
-After=network.target
-
-[Install]
-WantedBy=multi-user.target
-
-[Service]
-Type=simple
-User=$KLIPPER_USER
-RemainAfterExit=yes
-ExecStart=${PYTHONDIR}/bin/python ${SRCDIR}/klippy/klippy.py ${HOME}/printer.cfg -l ${KLIPPER_LOG}
-EOF
-# Use systemctl to enable the klipper systemd service script
- sudo systemctl enable klipper.service
-}
-
-# Step 4: Start host software
-start_software()
-{
- report_status "Launching Klipper host software..."
- sudo systemctl start klipper
-}
-
-# Helper functions
-report_status()
-{
- echo -e "\n\n###### $1"
-}
-
-verify_ready()
-{
- if [ "$EUID" -eq 0 ]; then
- echo "This script must not run as root"
- exit -1
- fi
-}
-
-# Force script to exit if an error occurs
-set -e
-
-# Find SRCDIR from the pathname of this script
-SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
-
-# Run installation steps defined above
-verify_ready
-install_packages
-create_virtualenv
-install_script
-start_software
diff --git a/scripts/klipper-start.sh b/scripts/klipper-start.sh
deleted file mode 100755
index 53b19859..00000000
--- a/scripts/klipper-start.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# System startup script for Klipper 3d-printer host code
-
-### BEGIN INIT INFO
-# Provides: klipper
-# Required-Start: $local_fs
-# Required-Stop:
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Klipper daemon
-# Description: Starts the Klipper daemon.
-### END INIT INFO
-
-PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
-DESC="klipper daemon"
-NAME="klipper"
-DEFAULTS_FILE=/etc/default/klipper
-PIDFILE=/var/run/klipper.pid
-
-. /lib/lsb/init-functions
-
-# Read defaults file
-[ -r $DEFAULTS_FILE ] && . $DEFAULTS_FILE
-
-case "$1" in
-start) log_daemon_msg "Starting klipper" $NAME
- start-stop-daemon --start --quiet --exec $KLIPPY_EXEC \
- --background --pidfile $PIDFILE --make-pidfile \
- --chuid $KLIPPY_USER --user $KLIPPY_USER \
- -- $KLIPPY_ARGS
- log_end_msg $?
- ;;
-stop) log_daemon_msg "Stopping klipper" $NAME
- killproc -p $PIDFILE $KLIPPY_EXEC
- RETVAL=$?
- [ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
- log_end_msg $RETVAL
- ;;
-restart) log_daemon_msg "Restarting klipper" $NAME
- $0 stop
- $0 start
- ;;
-reload|force-reload)
- log_daemon_msg "Reloading configuration not supported" $NAME
- log_end_msg 1
- ;;
-status)
- status_of_proc -p $PIDFILE $KLIPPY_EXEC $NAME && exit 0 || exit $?
- ;;
-*) log_action_msg "Usage: /etc/init.d/klipper {start|stop|status|restart|reload|force-reload}"
- exit 2
- ;;
-esac
-exit 0
diff --git a/scripts/klipper-uninstall.sh b/scripts/klipper-uninstall.sh
deleted file mode 100755
index 60fee7c7..00000000
--- a/scripts/klipper-uninstall.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-# Uninstall script for raspbian/debian type installations
-
-# Stop Klipper Service
-echo "#### Stopping Klipper Service.."
-sudo service klipper stop
-
-# Remove Klipper from Startup
-echo
-echo "#### Removing Klipper from Startup.."
-sudo update-rc.d -f klipper remove
-
-# Remove Klipper from Services
-echo
-echo "#### Removing Klipper Service.."
-sudo rm -f /etc/init.d/klipper /etc/default/klipper
-
-# Notify user of method to remove Klipper source code
-echo
-echo "The Klipper system files have been removed."
-echo
-echo "The following command is typically used to remove local files:"
-echo " rm -rf ~/klippy-env ~/klipper"