1
0
Эх сурвалжийг харах

Change scoop installation instructions, also incorporate nssm setup for the syncthing service

Miroslav Abrahám 5 жил өмнө
parent
commit
6ebc96bb54
1 өөрчлөгдсөн 35 нэмэгдсэн , 6 устгасан
  1. 35 6
      README.md

+ 35 - 6
README.md

@@ -46,23 +46,52 @@ scoop bucket add kunago https://miris%40kunago.com@bitbucket.org/kunago/scoop-bu
 ## Computer specific
 - ### general programs
 ```
-scoop install -g 7zip irfanview brave firefox-cs thunderbird-cs libreoffice-fresh vlc sumatrapdf processhacker syncthing tightvnc
+  scoop install nssm
+  scoop install -g nssm 7zip irfanview brave firefox-cs thunderbird-cs libreoffice-fresh vlc sumatrapdf processhacker syncthing tightvnc
+```
+  to install syncthing, run the following commands:
+```
+  nssm install syncthing
+
+  nssm set syncthing Application C:\ProgramData\scoop\apps\syncthing\current\syncthing.exe
+  nssm set syncthing AppDirectory C:\ProgramData\scoop\apps\syncthing\current
+  nssm set syncthing AppParameters -no-restart -no-browser -home="C:\ProgramData\scoop\apps\syncthing\current"
+
+  nssm set syncthing DisplayName Syncthing
+  nssm set syncthing Description Syncthing synchronization tool
+  nssm set syncthing Start SERVICE_DELAYED_AUTO_START
+
+  nssm set syncthing ObjectName LocalSystem
+
+  nssm set syncthing AppPriority IDLE_PRIORITY_CLASS
+  nssm set syncthing AppNoConsole 1
+
+  nssm set syncthing AppStopMethodConsole 10000
+  nssm set syncthing AppStopMethodWindow 10000
+  nssm set syncthing AppStopMethodThreads 10000
+
+  nssm set syncthing AppExit Default Exit
+  nssm set syncthing AppExit 0 Exit
+  nssm set syncthing AppExit 3 Restart
+  nssm set syncthing AppExit 4 Restart
+
+  sc start syncthing
 ```
 
 - ### admin programs
 ```
-scoop install ccleaner conemu freecommander rapidee spacesniffer speedcrunch
-scoop install autoit autoit-script-editor
+  scoop install ccleaner conemu freecommander rapidee spacesniffer speedcrunch
+  scoop install autoit autoit-script-editor
 ```
 - ### family computers
 ```
-scoop install keepassxc nextcloud signal whatsapp
+  scoop install keepassxc nextcloud signal whatsapp
 ```
 
 - ### Coccodrillo computers
 ```
-scoop install -g tesseract tesseract-languages imagemagick
-scoop reset tesseract-languages
+  scoop install -g tesseract tesseract-languages imagemagick
+  scoop reset tesseract-languages
 ```
 
 ## Update