Qnap (12)

qnap screen rsync

screen -S rsync ---screen command nohup rsync -avzP --bwlimit=200 --password-file=/root/rsyncpass rsync://home@ipaddress/home /share/rsync & quit screen Ctrl-a d 断开所有 screen 终端,返回 screen 执行前状态,但 screen 内所有终端的任务都在执行 检查 screen screen -ls There is a screen on: 24646.rsync (Detached) 1 Socket in /tmp/screens/S-admin. ok 可以 退出 putty --------------------------------------------------------------------------------------------------------------------------------- kill screen -S 24646 -X quit ---------------------------------------------------------------------------------------------- 运行:screenCtrl-a S 新建水平分割窗口Ctrl-a Tab 切换窗口Ctrl-a :screen bash 新建 screen 终端,并运行 bashCtrl-a :quit 退出 screen,将关闭所有 screen 终端,结束其中所有任务screen 常用命令,代码:Ctrl-a c 新建 bash screen 终端Ctrl-a " 列出Ctrl-a A 重命名Ctrl-a n 在当前窗口中切换到下一个 screen 终端Ctrl-a p 在当前窗口中切换到上一个 screen 终端 Ctrl-a d 断开所有 screen 终端,返回 screen 执行前状态,但 screen 内所有终端的任务都在执行screen -ls 列出当前用户的所有 screen 实例,包括联接和断开的screen -R <pid>…
Read more...

qnap .profile

/root/.profile To make this setting permanent, you can add this to your .profile, before the 'reset' line export PS1='[\w] # ' export TERMINFO='/usr/share/terminfo/' reset This assumes that you are using the default QNAP shell of /bin/sh. If you are using /bin/bash, put the export command in .bashrc. Troubleshooting If the .profile gets overwritten at reboot (which is the case with firmware 3.8.1) a workaround could be to create a .profile_backup in /share/HDA_DATA/ and overwrite the .profile in autorun.sh with: cp /share/HDA_DATA/.profile_backup /root/.profile
Read more...

# screen /var/run/utmp: No such file or directory Cannot find termcap entry for '...'

QNAP screen command broken-ness On the QNAP per default the screen command is not configured properly. When running screen the following errors are output. # screen /var/run/utmp: No such file or directory Cannot find termcap entry for '...' (Where ... is a placeholder for xterm-color, xterm-256color or any file which is not available on the QNAP.) If you cd to /var/run/ you will notice that the file utmp is indeed missing. To solve the first error it suffices to create an empty file. # touch /var/run/utmp The second error appears because the termcap to which the environment variable TERM points,…
Read more...

nohup command in qnap

after installing ipkg thru QPKG, you can retreive nohup in coreutils package doipkg updateipkg list | grep coreutilsipkg install coreutils http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/coreutils_8.4-1_arm.ipk
Read more...

qnap rsync Segmentation fault daemon

This is problem version rsync de qnap change original version of rsync to version optware--ipkg wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/rsync_3.0.9-1_arm.ipk unzip all login ssh to qnap find /bin/rsync copy and overwrite to qnap /usr/bin/rsync your rsync is newest 3.09 next is creqt a password file in qnap /root/rsyncpassword use command rsync -avzP --bwlimit=200 --password-file=/root/rsyncpass rsync://This email address is being protected from spambots. You need JavaScript enabled to view it./daemon_name /share/rsync
Read more...

Seagate ST3000DM001 3TB drives...chirping and clicking

Hi,I am using a QNAP TS-659 PROII and it's fantasitc. I have five 3TB Seagate ST3000DM001-9YN1CC4B drives and they all click, spin down and spin up constantly every 20 seconds or so. Most of you would know that this is the head parking and the drive spinning down. This is called a 'load cycle' and the drives are only rated for about 300,000 of them. Some people are reporting a lot of load cycles so not only are they noising and annoying but they're also putting mechanical stress on the drives.I have updated my QNAP to run a script when…
Read more...

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0001402976{main}( ).../index.php:0
20.08151320488Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08151320488Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.34572977568Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.34623001912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.34693057240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.34703074296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.35183141048K2ControllerItemlist->execute( ).../k2.php:64
90.35183141048K2ControllerItemlist->display( ).../BaseController.php:710
100.35543230136K2ControllerItemlist->display( ).../itemlist.php:49
110.35543230136K2ControllerItemlist->display( ).../controller.php:19
120.35663249032Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.38153269768K2ViewItemlist->display( ).../ViewController.php:102
140.57304209168K2ViewItemlist->display( ).../view.html.php:1407
150.57304209168K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.57404279288include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701