Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [~] # myHD
- myHD Usage : Color signification Tested / Tested BUT take care / Not_tested or N ot_available_for_now
- =====================
- myHD start|stop|restart|status
- =====================
- ===================== DANGEROUS uninstall ... it's INTERACTIVE so wait for quest ion and read carefully output text ...
- myHD uninstall_myHD ... TOTAL REMOVE myHD INCLUDING all associated QPKGs THEN Ub untu env. THEN myHD itself
- myHD uninstall_all_myHD_QPKG ... myHD remove all associated QPKGs
- myHD uninstall_Ubuntu_environment ... myHD remove Ubuntu environment
- myHD reinstall_ubuntu_env ... reinstall 1604 Ubuntu from network or pre-download ed files
- =====================
- myHD enter_as_root ... enter in myHD as root user
- myHD enter_as_user USER_NAME ... enter in myHD as USER_NAME user
- =====================
- myHD apt_upgrade_package ... run apt-get update, upgrade and restart based on my HD.conf
- myHD manage_external_package ... install or update external packages
- =====================
- myHD set_sshd_port PORT .... set the port use by dropbear for next myHD dropbear server start : PORT is not verifyed take care
- myHD restart_dropbear ... use it if you change port or keys of myHD dropbear ser ver
- =====================
- myHD list_mounted_folder ... list all mounted folder (so also temporary)
- =====================
- myHD add_include_folder [MOUNT_FOLDER_PATH_IN_myHD] ...(form : /share/xxxx ) per manent (at start) add folder to be mounted
- myHD remove_include_folder FOLDER_PATH ... (like /share/xxx )
- myHD list_include_folder ... list ALL folder permanently mounted in myHD
- =====================
- myHD list_user_define ... list users already define in myHD (qnap = admin)
- myHD move_user USER_QTS_TO_MOVE ... move an existing QTS user to myHD
- myHD change_qts_password USER_NAME NEW_PASSWORD ... change user password in Q.T. S. environment
- myHD change_myHD_password USER_NAME NEW_PASSWORD ... change user password in myH D environment
- myHD change_all_password USER_NAME NEW_PASSWORD ... change user password in Q.T. S. AND myHD environment
- =====================
- myHD clean_for_backup [full] ... clear man, doc and clean apt cache : full : add an autoclean (so reduce drasticaly backup size)
- ------------------- autoclean force to RE download packages when update / instal l ... so NO return to previous version NO some tools (tweek for ex.)
- myHD backup_env [full] ... save snapshot of 1604 Ubuntu env. incremental or new full / home folder / scipts folder
- myHD backup_home ... save ONLY the home folder (all users) to keep settings for applications ...
- myHD set_backup_folder PATH_TO_FOLDER ... change the default or actual backup FO LDER (default is /share/CACHEDEV1_DATA/.qpkg/myHD/1604_snapshot)
- =====================
- myHD set_update_at_boot [on|off] ... set on or disable (off) update after start of myHD
- myHD set_restart_if_update_require [on|off] ... set on or disable (off) restart after update of myHD
- [~] # myHD status
- ==== is myHD running ?
- ==== myHD is running
- ====
- ==== PID is 5054
- ====
- ==== List of tasks running in myHD
- ==== ==== PID are internal to myHD not as in Q.T.S.
- ==== ==== user name are internal to myHD not as in Q.T.S.
- /usr/bin/myHD_user: line 48: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/passwd: No such file or directory
- Hum! this (root) user don't exist in myHD
- ====
- ==== List of user know by myHD
- LIST of user in myHD :
- root (NOT QNAP admin user but real root myHD user)
- /usr/bin/myHD: line 109: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/passwd: No s uch file or directory
- End of the list
- ====
- ==== port used by myHD internal dropbear server
- Internal Listen interface and port used :
- grep: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/default/dropbear: No such file or directory
- ====
- ==== List shared ressources mounted in myHD
- ====== List of mounted folder ... MUST be empty on uninstall
- /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/share/Public
- ======
- ====
- [~] # myHD_root
- /usr/bin/myHD_user: line 48: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/passwd: No such file or directory
- Hum! this (root) user don't exist in myHD
- [~] # ls -ali of /share/CACHEDEV1_DATA/.qpkg
- /bin/ls: cannot access of: No such file or directory
- /share/CACHEDEV1_DATA/.qpkg:
- total 84
- 182845441 drwxrwxrwx 21 admin administrators 4096 2018-09-20 07:57 ./
- 2 drwxrwxrwx 44 admin administrators 4096 2018-09-20 07:20 ../
- 208273500 drwxrwxr-x 14 admin administrators 4096 2018-09-11 18:43 CloudLi nk/
- 182849541 drwxr-xr-x 2 admin administrators 4096 2018-08-27 05:53 Downloa dStation/
- 182846436 drwxr-xr-x 7 admin administrators 4096 2017-03-05 21:14 DSv3/
- 182988801 drwxr-xr-x 29 admin administrators 4096 2018-08-27 05:53 HD_Stat ion/
- 182911529 drwxr-xr-x 2 admin administrators 4096 2018-09-11 18:44 .instal lation/
- 182847489 drwxr-xr-x 10 admin administrators 4096 2018-09-07 19:57 musicst ation/
- 183134212 drwxr-xr-x 2 admin administrators 4096 2018-09-18 22:48 MusicSt ation/
- 183021569 drwxr-xr-x 7 admin administrators 4096 2018-09-19 23:25 myHD/
- 183054338 drwxr-xr-x 3 admin administrators 4096 2018-09-20 08:05 .myHD/
- 185088002 drwx------ 7 admin administrators 4096 2018-08-27 05:53 mykodi1 8/
- 183054340 drwxr-xr-x 2 admin administrators 4096 2018-09-12 14:06 MyQNAPN as/
- 182925313 drwxr-xr-x 4 admin administrators 4096 2018-08-16 13:10 PhotoSt ation/
- 182851586 drwxr-xr-x 14 admin administrators 4096 2018-09-19 22:54 photost ation2/
- 229965830 drwxrwxr-x 5 admin administrators 4096 2018-08-27 05:53 PlexMed iaServer/
- 185624577 drwxrwxr-x 12 admin administrators 4096 2018-08-27 05:53 PlexPy/
- 183052291 drwxr-xr-x 6 admin administrators 4096 2018-08-27 05:53 Python/
- 186712197 drwxrwxrwx 2 gammysheila everyone 4096 2018-08-27 05:53 QNAP-WT -Install/
- 184940549 drwxr-xr-x 2 admin administrators 4096 2017-10-17 20:12 .@qRPla yCenter/
- 183076869 drwxr-xr-x 7 admin administrators 4096 2018-08-27 05:53 QsyncSe rver/
- [~] # ls -ali of /share/CACHEDEV1_DATA/.qpkg/myHD
- /bin/ls: cannot access of: No such file or directory
- /share/CACHEDEV1_DATA/.qpkg/myHD:
- total 104
- 183021569 drwxr-xr-x 7 admin administrators 4096 2018-09-19 23:25 ./
- 182845441 drwxrwxrwx 21 admin administrators 4096 2018-09-20 07:57 ../
- 183054337 drwxr-xr-x 2 admin administrators 4096 2018-08-05 10:24 1604_snapshot/
- 183021570 drwxr-xr-x 2 admin administrators 4096 2018-08-22 11:25 bin/
- 183023617 drwxr-xr-x 4 admin administrators 4096 2018-07-20 12:51 fake_qpkg/
- 183009727 -rw-r--r-- 1 admin administrators 15 2018-09-19 23:25 fstab_include
- 183009725 -rw-r--r-- 1 admin administrators 190 2018-09-19 23:25 fstab_myHD
- 183009483 -rw-r--r-- 1 admin administrators 0 2018-09-19 23:25 fstab_temp
- 183033857 drwxr-xr-x 2 admin administrators 4096 2018-07-09 11:24 hds/
- 183009726 -rw-r--r-- 1 admin administrators 207 2018-09-19 23:06 myHD.conf
- 183009478 -rwxr-xr-x 1 admin administrators 328 2018-06-29 16:42 myHD_env.sh*
- 183009484 -rw-r--r-- 1 admin administrators 89 2018-08-07 06:49 myHD_external.conf
- 183009485 -rw-r--r-- 1 admin administrators 2583 2018-08-24 08:52 myHD_home_delivery.tgz
- 183009728 -rw-r--r-- 1 admin administrators 0 2018-09-19 23:25 myHD.out
- 183033858 drwxr-xr-x 5 admin administrators 4096 2018-08-04 10:46 myHD_qpkg/
- 183009479 -rwxr-xr-x 1 admin administrators 31477 2018-09-02 13:48 myHD.sh*
- 183009480 -rw-r--r-- 1 admin administrators 4466 2018-04-20 13:18 .qpkg_icon_80.gif
- 183009481 -rw-r--r-- 1 admin administrators 3373 2018-04-20 13:18 .qpkg_icon.gif
- 183009482 -rw-r--r-- 1 admin administrators 4159 2018-04-20 13:18 .qpkg_icon_gray.gif
- [~] # myHD list_include_folder
- ==== List of already included folder / link ... and mount point in myHD (empty = same PATH)
- /share/Public:
- ==== End of list
- [~] # myHD remove_include_folder /share/Public
- [~] # grep -A 15 "\[myHD" /etc/config/qpkg.conf
- [myHD]
- Enable = TRUE
- Official = 0
- Incomplete_Conf = 1
- Name = myHD
- Version = 0.2
- QPKG_File = myHD.qpkg
- Date = 2018-09-19
- Shell = /share/CACHEDEV1_DATA/.qpkg/myHD/myHD.sh
- Install_Path = /share/CACHEDEV1_DATA/.qpkg/myHD
- Author = Father_mande
- Class = HD_Station
- Ubuntu = 1604
- QPKG_VERSION_NAME = myHD
- [~] # myHD uninstall_myHD
- THIS IS AN INTERACTIVE SHELL ... please answer
- /usr/bin/myHD_user: line 48: /share/CACHEDEV1_DATA/.qpkg/.myHD/1604/etc/passwd: No such file or directory
- Hum! this (root) user don't exist in myHD
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please wait ... shutdown is running
- Please investigate myHD was NOT totally stopped ... AFTER 2 minutes
- Uninstall ALL MH_xxx qpkg installed
- Please wait to end ... we verify that QPKG is really suppress
- ... sometime the request (if you request large number of actions) to QNAP's QPKG manager (queued) can be ignored (I don't know why)
- ... so I wait for up to 2 minutes to let time for QNAP's QPKG manager to do the job
- =====
- List of MH_qpkg installed
- =====
- Please wait up to all myHD will be really removed
- =====
- List of MH_qpkg installed
- =====
- Uninstall myHD Ubuntu environement installed
- This can be do ONLY if all mount in Q.T.S. side was umounted
- if not possible AT END OF THIS SHELL do :
- ... disable myHD
- ... reboot
- BUT BUT please wait for the end of this script before going to this extreme solution
- =====
- Test if myHD is running
- Hum! myHD is started
- /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
- Hum all normally is deleted at this point ...
- Now we request to QNAP to remove myHD QPKG itself
- [CLI] QPKG myHD is queuing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement