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

( ! ) 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/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0009413160{main}( ).../index.php:0
20.09394263024Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09394263024Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.363011454008Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.364511478272Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.365511533600Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.365911561000require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.378511960632K2ControllerItem->execute( ).../k2.php:64
90.378511960632K2ControllerItem->display( ).../BaseController.php:710
100.390712611336K2ControllerItem->display( ).../item.php:78
110.390712611336K2ControllerItem->display( ).../controller.php:19
120.396512982376Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.399813002744K2ViewItem->display( ).../ViewController.php:102
140.521615813872K2ViewItem->display( ).../view.html.php:742
150.521615813872K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.525215986808include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Qnap
  • Read 1627 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0009413160{main}( ).../index.php:0
20.09394263024Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09394263024Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.363011454008Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.364511478272Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.365511533600Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.365911561000require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.378511960632K2ControllerItem->execute( ).../k2.php:64
90.378511960632K2ControllerItem->display( ).../BaseController.php:710
100.390712611336K2ControllerItem->display( ).../item.php:78
110.390712611336K2ControllerItem->display( ).../controller.php:19
120.396512982376Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.399813002744K2ViewItem->display( ).../ViewController.php:102
140.521615813872K2ViewItem->display( ).../view.html.php:742
150.521615813872K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.525215986808include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top