nohup command in qnap

after installing ipkg thru QPKG, you can retreive nohup in coreutils package

 

do
ipkg update
ipkg list | grep coreutils
ipkg 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...

Auto update an debian Server with Aptitude

How to keep software up-to-date automatically on Ubuntu Server using Aptitude

Usual disclaimer

This article is provided as it and no responsibility will be taken for things going wrong. Tested on Ubuntu 8.10 server.

Using Aptitude

If you've ever tried out Ubuntu you'll probably know what aptitude is and how to manage packages. Updating your system is as simple as sudo aptitude udpate && sudo aptitude upgrade

This updates the package lists and presents any upgrades.

Automating the process

Wouldn't it be easier if you could automate this and forget about it? That way your server can stay up to date without you ever having to worry about it. Create a file called autoupdate.sh and put the following into it:

#!/bin/bash

# A script to run Aptitude and install any upgrades automatically. 
# Add this to /etc/cron.daily to run the script every 24 hours. 

# This prevents "TERM is not set, so the dialog frontend is not usable." error
PATH="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"

aptitude update
aptitude safe-upgrade -y
aptitude autoclean

To run this script daily move it to /etc/cron.daily (making sure it is executable).

chmod +x autoupdate.sh
sudo chown root:root autoupdate.sh
sudo mv autoupdate.sh /etc/cron.daily 



test
cd /etc/cron.daily ./autoupdate.sh

The update will run automatically once a day ensuring you stay up-to-date.

Checking logs

You can keep a check on packages that have been installed and removed via the log file that Aptitude generates.

sudo tail -n 30 /var/log/aptitude

If you want to check that an upgrade has been applied you can search for it like this

sudo cat /var/log/aptitude | grep -A 20 -B 20 php5

Or you can check the currently installed version using (this example is php5)

aptitude show php5
Read more...

升级 Debian

由 5.0 (lenny) 升级至测试版本 (squeeze)

变身成系统使用者 (root) 的身份:

$ su
passwd:
#

将 /etc/apt/sources.list 中的 stable 或 lenny 转成 squeeze:

cd /etc/apt
cp sources.list sources.list.bak
sed -e 's/\<\(stable\|lenny\)\>/squeeze/g' sources.list.bak >sources.list

更新最新的套件资讯:

apt-get update

更新整个系统:

apt-get dist-upgrade
Read more...

各种版本的Word取消和开启首字母自动大写

经常在Word中输入字母的时候,我们可能会发现Word中的首个字母会自动变成大写,这样就减去了我们自己手动去更改字母大写的时间,为我们带来了不少方便。但是,在某些时候“首字母大写”功能也会给我们带来一些不必要的反作用,就像是双面刃,明明我们只需要小写字母,但它偏偏自动变成了大写。其实在Word中首字母大写和小写都是可以由我们自己去设置的,用的时候就开启,不用的时候就关掉。下面是Word联盟针对目前最流行的3个版本Word2003、Word2007、Word2010分别来教大家如何取消首字母大写

  
小技巧:其实无论是哪个版本,大家都可以利用Word快捷键 Shift + F3 ”来实现,大家可以多按几下来实行切换,按第一下是首字母大写,按第二下是全部大写,第三下是全部小写,大家可以试试,方便而又快捷!

  
Word2003取消首字母大写方法

  打开Word2003文档,编辑菜单栏的“工具”下拉列表中的“自动更正选项”,在弹出的“自动更正”窗口中将“句首字母大写”前面的钩取消,然后确定即可!



  提示:大家可以看到上图中还有表格单元格的首字母大写、英文日期第一个字母大写、更正前两个字母连续大写等,这些都可以根据自己的需要来设置。

  
Word2007取消首字母自动大写

  
方法一、直接单击“开始”功能区的“字体”分组中的“更改大小写”按钮,里面包含了我们常用的“句首字母大写”、全部小写全部大写、每个单词首字母大写等等,根据跟人需求选择即可。(如下图)



  
方法二

  
单击“Office按钮”选择“Word选项”;



  
在弹出的“Word选项”窗口中,先选择左边的“校对”,然后点击右边的“自动更正选项”按钮;



  
在弹出的“自动更正”窗口中同2003中相同,取消“句首字母大写”前面钩钩即可。



  Word2010中取消首字母大写的方法这里我就不讲了,和上面的Word2007的操作是一模一样的,大家可以参考上面2007中的设置。

 

Read more...
Subscribe to this RSS feed
( ! ) Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701
170.35454301296Joomla\CMS\Pagination\Pagination->getPagesLinks( ).../category.php:191
180.37134341576pagination_list_render( ).../Pagination.php:442

( ! ) Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34
Call Stack
#TimeMemoryFunctionLocation
10.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701
170.35454301296Joomla\CMS\Pagination\Pagination->getPagesLinks( ).../category.php:191
180.37134341576pagination_list_render( ).../Pagination.php:442

( ! ) Notice: Undefined offset: 2 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34
Call Stack
#TimeMemoryFunctionLocation
10.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701
170.35454301296Joomla\CMS\Pagination\Pagination->getPagesLinks( ).../category.php:191
180.37134341576pagination_list_render( ).../Pagination.php:442

( ! ) Notice: Undefined offset: 3 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34
Call Stack
#TimeMemoryFunctionLocation
10.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701
170.35454301296Joomla\CMS\Pagination\Pagination->getPagesLinks( ).../category.php:191
180.37134341576pagination_list_render( ).../Pagination.php:442

( ! ) 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.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701

( ! ) Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701
170.37454360912Joomla\CMS\Pagination\Pagination->getPagesLinks( ).../category.php:193
180.37994374424pagination_list_render( ).../Pagination.php:442

( ! ) Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34
Call Stack
#TimeMemoryFunctionLocation
10.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701
170.37454360912Joomla\CMS\Pagination\Pagination->getPagesLinks( ).../category.php:193
180.37994374424pagination_list_render( ).../Pagination.php:442

( ! ) Notice: Undefined offset: 2 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34
Call Stack
#TimeMemoryFunctionLocation
10.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701
170.37454360912Joomla\CMS\Pagination\Pagination->getPagesLinks( ).../category.php:193
180.37994374424pagination_list_render( ).../Pagination.php:442

( ! ) Notice: Undefined offset: 3 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34
Call Stack
#TimeMemoryFunctionLocation
10.0004404544{main}( ).../index.php:0
20.05261322480Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05261322480Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.18302979584Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.18353003912Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.18433059240Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.18443076296require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.18943143072K2ControllerItemlist->execute( ).../k2.php:64
90.18943143072K2ControllerItemlist->display( ).../BaseController.php:710
100.19293232160K2ControllerItemlist->display( ).../itemlist.php:49
110.19293232160K2ControllerItemlist->display( ).../controller.php:19
120.19403251056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.19763271792K2ViewItemlist->display( ).../ViewController.php:102
140.34084178800K2ViewItemlist->display( ).../view.html.php:1407
150.34084178800K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.34374248920include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701
170.37454360912Joomla\CMS\Pagination\Pagination->getPagesLinks( ).../category.php:193
180.37994374424pagination_list_render( ).../Pagination.php:442