User Tools

Site Tools


shutdown_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
shutdown_linux [2024/11/27 13:50] torteshutdown_linux [2025/01/21 12:20] (current) torte
Line 1: Line 1:
-====== Sovol SV06+ (mostly) ======+{{page>redirect#this_wiki_has_moved}} 
 +https://torte71.github.io/InsideSovolKlipperScreen/shutdown_linux.html 
 +{{page>redirect#section}} 
 +---- 
 + 
 +====== Sovol SV06+/SV07+ (mostly) ======
 ===== Klipper Shutdown ===== ===== Klipper Shutdown =====
 ===== Linux version ===== ===== Linux version =====
Line 5: Line 10:
 ==== Requirements ==== ==== Requirements ====
   * HS110 wifi power plug   * HS110 wifi power plug
 +  * python (should already be on your system, otherwise use ''sudo apt install python3'')
   * For simple setup using clear text passwords:   * For simple setup using clear text passwords:
     * plink from putty-tools     * plink from putty-tools
Line 51: Line 57:
   * Empty the ''PASSWORD'' variable in ''mks_poweroff''   * Empty the ''PASSWORD'' variable in ''mks_poweroff''
   * Log into the device using ssh and add the **public** key to ''~/.ssh/authorized_keys'':   * Log into the device using ssh and add the **public** key to ''~/.ssh/authorized_keys'':
-    * ''cat >> ~/.ssh/authorized_keys'' +    * ''nano ~/.ssh/authorized_keys'' 
-    * Paste the public key line and press CTRL+to quit+    * Paste the public key line and press "CTRL+X" to quit, press "Y" to confirm once and press "ENTER" to confirm again and quit. 
 +  * Allow user "mks" to shutdown/reboot/halt (without "sudo" asking for a password): 
 +    * add following line to /etc/sudoers.conf (run ''sudo visudo''):\\ ''mks ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff''\\ (Change "mks" to the real username, if you use a different device than Sovol's KlipperScreen.)
  
 Now you should be able to shutdown and power off the device without clear text passwords. Now you should be able to shutdown and power off the device without clear text passwords.
shutdown_linux.1732711812.txt.gz · Last modified: 2024/11/27 13:50 by torte