# Update Mainsail ## Update Klipper ``` cd ~/klipper git fetch git checkout origin/master ``` Please check the location of the `~/klipper_config/printer.cfg` and the UDS (`-a /tmp/klippy_uds`) in the `/etc/default/klipper` file. This should look like: ``` KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/klipper_config/printer.cfg -l /tmp/klippy.log -a /tmp/klippy_uds" ``` If you have to change the location of `printer.cfg` in `/etc/default/klipper` please create the directory `~/klipper_config` and move your config files in this directory. Restart Klipper (`sudo service klipper restart`) and check the `klippy.log`, if Klipper starts correctly and then continue the guide. ## Update Moonraker (API) ``` cd ~/moonraker git fetch git checkout origin/master ``` Restart Moonraker (`sudo service moonraker restart`) and open the url `http://:7125/printer/info` in your browser. If you see a content like this ``` {"result": {"hostname": "voron250", "error_detected": false, "version": "v0.8.0-643-g528f9f25", "is_ready": true, "message": "Printer is ready", "cpu": "4 core ARMv7 Processor rev 4 (v7l)"}} ``` ## Update Mainsail (webinterface) ``` cd ~/mainsail rm -R ./* wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.2.6/mainsail-beta-0.2.6.zip && unzip mainsail.zip && rm mainsail.zip ``` ### Move gui.json from gcodes to klipper_config This is only necessary if you update from 0.2.2 to 0.2.3 or higher. If you use MainsailOS, the virtual_sdcard directory is `gcode_files` instead of `sdcard`. ``` mv ~/sdcard/gui.json ~/klipper_config/ ``` Now it should be possible to open the interface: `http:///`.