Klipper Command Reference

I am compiling a list of unix/linux commands you will need during your Klipper installation journey. Operating a Raspberry Pi or BigTreeTech CB1 when using Klipper requires some command line knowledge and usage of an SSH terminal.

Linux/Pi Commands


#Launch KIAUH
./kiauh/kiauh.sh

#Set Timezone
sudo timedatectl set-timezone America/Denver

#Change password
passwd

#Find MCU serial port for printer.cfg (/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0)
ls /dev/serial/by-id/*

#Open config file for BigTreeTech CB1
sudo nano /boot/BoardEnv.txt

#View RPi journal file (Log of all activites)
journalctl 

#Clear journal file
sudo journalctl --vacuum-time=1seconds

#App Management
sudo apt-get update 
sudo apt-get upgrade

#Network misc
sudo iwlist wlan0 scan | egrep "Cell|ESSID|Signal|Rates"
ifconfig
lsusb
lscpu

#Reboot
sudo reboot

#Shutdown
shutdown -h now

#View Tasks
htop

#Get Hostname
hostname -I

#Download file (Replace URL with web address)
wget URL

More References for Linux/Pi commands


Klipper Commands

#Pid Calibration
PID_CALIBRATE HEATER=extruder TARGET=215
PID_CALIBRATE HEATER=heater_bed TARGET=50

#Pressure Advance Calibration ~~~~~~~~~~~~~~
# pressure_advance = <start> + <measured_height> * <factor>. (For example, 0 + 12.90 * .020 would be .258.)

#Run command then second command below:
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500

#Direct Drive Setup
TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005

#Bowden Setup
TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.020


More References for Klipper Commands