Qnap (12)

Running Your Own Application at Startup

Method 1 Log into your QNAP device using SSH or Telnet, for instance by using Putty Optional: install nano; use ipkg install nano & edit with nano instead of vi TS-201: Mount the config ramblock /dev/mtdblock4: # mount -t ext2 /dev/mtdblock4 /tmp/config TS-109, TS-109P, TS-110, TS-119, TS-209, TS-209P, TS-219, TS-409 (Marvell ARM), TS-419P: Mount the config ramblock /dev/mtdblock5: # mount -t ext2 /dev/mtdblock5 /tmp/config TS-439, TS-509, TS-639, TS-809, TS-809U (x86): Mount the config ramblock /dev/sdx6: # mount -t ext2 /dev/sdx6 /tmp/config Create/Edit /tmp/config/autorun.sh . either using vi: # vi /tmp/config/autorun.sh Get vi editor into edit mode: press a Edit whatever you need to…
Read more...

Qnap 设置 APM 254

 fdisk -l   - Go to the 'Application servers' area in the admin control panel... then to the 'QPKG' area. From here I installed and activated 'Optaware.' This will install the ipkg system for Linux. -打开 网页服务器 -打开 连接 http://192.168.1.xx:80/Optware/ -搜索 hdparm 点击 install -SSH 服务打开 登陆 ssh 运行 hdparm- hdparm -B 254 /dev/sda 返回的结果 [~] # hdparm -B 254 /dev/sda /dev/sda: setting Advanced Power Management level to 0xFE (254) HDIO_DRIVE_CMD failed: Invalid argument    等待完全启动 再运行   hdparm-hdparm -B 254 /dev/sda hdparm-hdparm -B 254 /dev/sdb - Go to the 'Application servers' area in the admin control panel... then to…
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.0009404880{main}( ).../index.php:0
20.05051322864Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05051322864Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.33882980168Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.33933004512Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.34023059840Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.34033076896require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.34503143648K2ControllerItemlist->execute( ).../k2.php:64
90.34503143648K2ControllerItemlist->display( ).../BaseController.php:710
100.34823232736K2ControllerItemlist->display( ).../itemlist.php:49
110.34823232736K2ControllerItemlist->display( ).../controller.php:19
120.34943251632Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.35143272368K2ViewItemlist->display( ).../ViewController.php:102
140.41273706848K2ViewItemlist->display( ).../view.html.php:1407
150.41273706848K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.41603776968include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701