Advertisement
hslansky

Untitled

Sep 20th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.06 KB | None | 0 0
  1. [~] # myHD
  2. myHD Usage : Color signification Tested / Tested BUT take care / Not_tested or N ot_available_for_now
  3. =====================
  4. myHD start|stop|restart|status
  5. =====================
  6. ===================== DANGEROUS uninstall ... it's INTERACTIVE so wait for quest ion and read carefully output text ...
  7. myHD uninstall_myHD ... TOTAL REMOVE myHD INCLUDING all associated QPKGs THEN Ub untu env. THEN myHD itself
  8. myHD uninstall_all_myHD_QPKG ... myHD remove all associated QPKGs
  9. myHD uninstall_Ubuntu_environment ... myHD remove Ubuntu environment
  10. myHD reinstall_ubuntu_env ... reinstall 1604 Ubuntu from network or pre-download ed files
  11. =====================
  12. myHD enter_as_root ... enter in myHD as root user
  13. myHD enter_as_user USER_NAME ... enter in myHD as USER_NAME user
  14. =====================
  15. myHD apt_upgrade_package ... run apt-get update, upgrade and restart based on my HD.conf
  16. myHD manage_external_package ... install or update external packages
  17. =====================
  18. myHD set_sshd_port PORT .... set the port use by dropbear for next myHD dropbear server start : PORT is not verifyed take care
  19. myHD restart_dropbear ... use it if you change port or keys of myHD dropbear ser ver
  20. =====================
  21. myHD list_mounted_folder ... list all mounted folder (so also temporary)
  22. =====================
  23. myHD add_include_folder [MOUNT_FOLDER_PATH_IN_myHD] ...(form : /share/xxxx ) per manent (at start) add folder to be mounted
  24. myHD remove_include_folder FOLDER_PATH ... (like /share/xxx )
  25. myHD list_include_folder ... list ALL folder permanently mounted in myHD
  26. =====================
  27. myHD list_user_define ... list users already define in myHD (qnap = admin)
  28. myHD move_user USER_QTS_TO_MOVE ... move an existing QTS user to myHD
  29. myHD change_qts_password USER_NAME NEW_PASSWORD ... change user password in Q.T. S. environment
  30. myHD change_myHD_password USER_NAME NEW_PASSWORD ... change user password in myH D environment
  31. myHD change_all_password USER_NAME NEW_PASSWORD ... change user password in Q.T. S. AND myHD environment
  32. =====================
  33. myHD clean_for_backup [full] ... clear man, doc and clean apt cache : full : add an autoclean (so reduce drasticaly backup size)
  34. ------------------- autoclean force to RE download packages when update / instal l ... so NO return to previous version NO some tools (tweek for ex.)
  35. myHD backup_env [full] ... save snapshot of 1604 Ubuntu env. incremental or new full / home folder / scipts folder
  36. myHD backup_home ... save ONLY the home folder (all users) to keep settings for applications ...
  37. myHD set_backup_folder PATH_TO_FOLDER ... change the default or actual backup FO LDER (default is /share/CACHEDEV1_DATA/.qpkg/myHD/1604_snapshot)
  38. =====================
  39. myHD set_update_at_boot [on|off] ... set on or disable (off) update after start of myHD
  40. myHD set_restart_if_update_require [on|off] ... set on or disable (off) restart after update of myHD
  41. [~] # myHD status
  42. ==== is myHD running ?
  43. ==== myHD is running
  44. ====
  45. ==== PID is 5054
  46. ====
  47. ==== List of tasks running in myHD
  48. ==== ==== PID are internal to myHD not as in Q.T.S.
  49. ==== ==== user name are internal to myHD not as in Q.T.S.
  50. /usr/bin/myHD_user: line 48: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/passwd: No such file or directory
  51. Hum! this (root) user don't exist in myHD
  52. ====
  53. ==== List of user know by myHD
  54. LIST of user in myHD :
  55. root (NOT QNAP admin user but real root myHD user)
  56. /usr/bin/myHD: line 109: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/passwd: No s uch file or directory
  57. End of the list
  58. ====
  59. ==== port used by myHD internal dropbear server
  60. Internal Listen interface and port used :
  61. grep: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/default/dropbear: No such file or directory
  62.  
  63. ====
  64. ==== List shared ressources mounted in myHD
  65. ====== List of mounted folder ... MUST be empty on uninstall
  66. /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/share/Public
  67. ======
  68. ====
  69. [~] # myHD_root
  70. /usr/bin/myHD_user: line 48: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/passwd: No such file or directory
  71. Hum! this (root) user don't exist in myHD
  72. [~] # ls -ali of /share/CACHEDEV1_DATA/.qpkg
  73. /bin/ls: cannot access of: No such file or directory
  74. /share/CACHEDEV1_DATA/.qpkg:
  75. total 84
  76. 182845441 drwxrwxrwx 21 admin administrators 4096 2018-09-20 07:57 ./
  77. 2 drwxrwxrwx 44 admin administrators 4096 2018-09-20 07:20 ../
  78. 208273500 drwxrwxr-x 14 admin administrators 4096 2018-09-11 18:43 CloudLi nk/
  79. 182849541 drwxr-xr-x 2 admin administrators 4096 2018-08-27 05:53 Downloa dStation/
  80. 182846436 drwxr-xr-x 7 admin administrators 4096 2017-03-05 21:14 DSv3/
  81. 182988801 drwxr-xr-x 29 admin administrators 4096 2018-08-27 05:53 HD_Stat ion/
  82. 182911529 drwxr-xr-x 2 admin administrators 4096 2018-09-11 18:44 .instal lation/
  83. 182847489 drwxr-xr-x 10 admin administrators 4096 2018-09-07 19:57 musicst ation/
  84. 183134212 drwxr-xr-x 2 admin administrators 4096 2018-09-18 22:48 MusicSt ation/
  85. 183021569 drwxr-xr-x 7 admin administrators 4096 2018-09-19 23:25 myHD/
  86. 183054338 drwxr-xr-x 3 admin administrators 4096 2018-09-20 08:05 .myHD/
  87. 185088002 drwx------ 7 admin administrators 4096 2018-08-27 05:53 mykodi1 8/
  88. 183054340 drwxr-xr-x 2 admin administrators 4096 2018-09-12 14:06 MyQNAPN as/
  89. 182925313 drwxr-xr-x 4 admin administrators 4096 2018-08-16 13:10 PhotoSt ation/
  90. 182851586 drwxr-xr-x 14 admin administrators 4096 2018-09-19 22:54 photost ation2/
  91. 229965830 drwxrwxr-x 5 admin administrators 4096 2018-08-27 05:53 PlexMed iaServer/
  92. 185624577 drwxrwxr-x 12 admin administrators 4096 2018-08-27 05:53 PlexPy/
  93. 183052291 drwxr-xr-x 6 admin administrators 4096 2018-08-27 05:53 Python/
  94. 186712197 drwxrwxrwx 2 gammysheila everyone 4096 2018-08-27 05:53 QNAP-WT -Install/
  95. 184940549 drwxr-xr-x 2 admin administrators 4096 2017-10-17 20:12 .@qRPla yCenter/
  96. 183076869 drwxr-xr-x 7 admin administrators 4096 2018-08-27 05:53 QsyncSe rver/
  97. [~] # ls -ali of /share/CACHEDEV1_DATA/.qpkg/myHD
  98. /bin/ls: cannot access of: No such file or directory
  99. /share/CACHEDEV1_DATA/.qpkg/myHD:
  100. total 104
  101. 183021569 drwxr-xr-x 7 admin administrators 4096 2018-09-19 23:25 ./
  102. 182845441 drwxrwxrwx 21 admin administrators 4096 2018-09-20 07:57 ../
  103. 183054337 drwxr-xr-x 2 admin administrators 4096 2018-08-05 10:24 1604_snapshot/
  104. 183021570 drwxr-xr-x 2 admin administrators 4096 2018-08-22 11:25 bin/
  105. 183023617 drwxr-xr-x 4 admin administrators 4096 2018-07-20 12:51 fake_qpkg/
  106. 183009727 -rw-r--r-- 1 admin administrators 15 2018-09-19 23:25 fstab_include
  107. 183009725 -rw-r--r-- 1 admin administrators 190 2018-09-19 23:25 fstab_myHD
  108. 183009483 -rw-r--r-- 1 admin administrators 0 2018-09-19 23:25 fstab_temp
  109. 183033857 drwxr-xr-x 2 admin administrators 4096 2018-07-09 11:24 hds/
  110. 183009726 -rw-r--r-- 1 admin administrators 207 2018-09-19 23:06 myHD.conf
  111. 183009478 -rwxr-xr-x 1 admin administrators 328 2018-06-29 16:42 myHD_env.sh*
  112. 183009484 -rw-r--r-- 1 admin administrators 89 2018-08-07 06:49 myHD_external.conf
  113. 183009485 -rw-r--r-- 1 admin administrators 2583 2018-08-24 08:52 myHD_home_delivery.tgz
  114. 183009728 -rw-r--r-- 1 admin administrators 0 2018-09-19 23:25 myHD.out
  115. 183033858 drwxr-xr-x 5 admin administrators 4096 2018-08-04 10:46 myHD_qpkg/
  116. 183009479 -rwxr-xr-x 1 admin administrators 31477 2018-09-02 13:48 myHD.sh*
  117. 183009480 -rw-r--r-- 1 admin administrators 4466 2018-04-20 13:18 .qpkg_icon_80.gif
  118. 183009481 -rw-r--r-- 1 admin administrators 3373 2018-04-20 13:18 .qpkg_icon.gif
  119. 183009482 -rw-r--r-- 1 admin administrators 4159 2018-04-20 13:18 .qpkg_icon_gray.gif
  120. [~] # myHD list_include_folder
  121. ==== List of already included folder / link ... and mount point in myHD (empty = same PATH)
  122. /share/Public:
  123. ==== End of list
  124. [~] # myHD remove_include_folder /share/Public
  125. [~] # grep -A 15 "\[myHD" /etc/config/qpkg.conf
  126. [myHD]
  127. Enable = TRUE
  128. Official = 0
  129. Incomplete_Conf = 1
  130. Name = myHD
  131. Version = 0.2
  132. QPKG_File = myHD.qpkg
  133. Date = 2018-09-19
  134. Shell = /share/CACHEDEV1_DATA/.qpkg/myHD/myHD.sh
  135. Install_Path = /share/CACHEDEV1_DATA/.qpkg/myHD
  136. Author = Father_mande
  137. Class = HD_Station
  138. Ubuntu = 1604
  139. QPKG_VERSION_NAME = myHD
  140. [~] # myHD uninstall_myHD
  141. THIS IS AN INTERACTIVE SHELL ... please answer
  142. /usr/bin/myHD_user: line 48: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/passwd: No such file or directory
  143. Hum! this (root) user don't exist in myHD
  144. Please wait ... shutdown is running
  145. Please wait ... shutdown is running
  146. Please wait ... shutdown is running
  147. Please wait ... shutdown is running
  148. Please wait ... shutdown is running
  149. Please wait ... shutdown is running
  150. Please wait ... shutdown is running
  151. Please wait ... shutdown is running
  152. Please wait ... shutdown is running
  153. Please wait ... shutdown is running
  154. Please wait ... shutdown is running
  155. Please wait ... shutdown is running
  156. Please wait ... shutdown is running
  157. Please wait ... shutdown is running
  158. Please wait ... shutdown is running
  159. Please wait ... shutdown is running
  160. Please wait ... shutdown is running
  161. Please wait ... shutdown is running
  162. Please wait ... shutdown is running
  163. Please wait ... shutdown is running
  164. Please wait ... shutdown is running
  165. Please wait ... shutdown is running
  166. Please wait ... shutdown is running
  167. Please wait ... shutdown is running
  168. Please wait ... shutdown is running
  169. Please wait ... shutdown is running
  170. Please wait ... shutdown is running
  171. Please wait ... shutdown is running
  172. Please wait ... shutdown is running
  173. Please wait ... shutdown is running
  174. Please investigate myHD was NOT totally stopped ... AFTER 2 minutes
  175. Uninstall ALL MH_xxx qpkg installed
  176. Please wait to end ... we verify that QPKG is really suppress
  177. ... sometime the request (if you request large number of actions) to QNAP's QPKG manager (queued) can be ignored (I don't know why)
  178. ... so I wait for up to 2 minutes to let time for QNAP's QPKG manager to do the job
  179.  
  180. =====
  181. List of MH_qpkg installed
  182. =====
  183. Please wait up to all myHD will be really removed
  184. =====
  185. List of MH_qpkg installed
  186. =====
  187. Uninstall myHD Ubuntu environement installed
  188. This can be do ONLY if all mount in Q.T.S. side was umounted
  189. if not possible AT END OF THIS SHELL do :
  190. ... disable myHD
  191. ... reboot
  192. BUT BUT please wait for the end of this script before going to this extreme solution
  193. =====
  194. Test if myHD is running
  195. Hum! myHD is started
  196. /share/CACHEDEV1_DATA/.qpkg/myHD/bin/uninstall_environment.sh: line 40: exit: PLEASE STOP myHD before by doing : myHD stop OR by disabling the QPKG myHD in the Web interface: numeric argument required
  197. Hum all normally is deleted at this point ...
  198. Now we request to QNAP to remove myHD QPKG itself
  199. [CLI] QPKG myHD is queuing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement