November 2024

nohup command in qnap

  • Published in Qnap
  • May 16, 2013

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

  • Published in Qnap
  • May 16, 2013

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...

ESXi 5.0 DELL PERC H200 RAID Health status

Use the VIB File of MegaRAID SAS 9240-4i since this also uses LSISAS2008. Download:

http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/00.03.V0.03_SMIS_VMware_Installer.zip

 

client set sleep all VMs

client set host to maintenance mode 

SSH connect to esxi host

cd /tmp

unzip zip file and up load only vib

command 

esxcli software vib install -v /tmp/vmware-esx-provider-lsiprovider.vib -force

Read more...

Auto update an debian Server with Aptitude

  • Published in Debian
  • May 13, 2013

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

  • Published in Debian
  • May 11, 2013

由 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...

CentOS 6 VMware Tools Install the Easy Way

  • Published in CentOS 6
  • May 5, 2013

Initiate the VMware tools install on your CentOS 6.2 VM. Open a SSH session to your VM and copy/paste this:

yum -y install perl
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp
umount /mnt/cdrom
tar -zxf /tmp/VMwareTools-*.tar.gz -C /tmp
cd /
./tmp/vmware-tools-distrib/vmware-install.pl --default
rm -f /tmp/VMwareTools-*.tar.gz
rm -rf /tmp/vmware-tools-distrib

 


Bam! VMware Tools installed!

Read more...

产品:vCenter Single Sign On -- 错误 2229

 在非英语区域设置下从 Single Sign-On 5.1 升级到 Single Sign-On 5.1 Update 1 会失败,并显示数据库表 错误 2229* 
尝试在所有支持的非英语区域设置下从 Single Sign-On 5.1 升级到 Single Sign-On 5.1 Update 1 时, 升级将失败并显示类似以下内容的数据库表错误 2229: 

产品:vCenter Single Sign On -- 错误 2229。数据库:. SQL 查询中无法加载表“Control”:SELECT `Control`, `Type`, `X`, `Y`, `Width`, `Height`, `Attributes`, `Property`, `Text`, `Control_Next`, `Help` FROM `Control` WHERE `Dialog_`=? (Product: vCenter Single Sign On -- Error 2229. Database: . Table 'Control' could not be loaded in SQL query: SELECT `Control`, `Type`, `X`, `Y`, `Width`, `Height`, `Attributes`, `Property`, `Text`, `Control_Next`, `Help` FROM `Control` WHERE `Dialog_`=?)。 

解决办法:请按照以下步骤继续进行升级:

  1. 找到日志文件 %TEMP%vim-sso-msi.log
  2. 搜索上次安装期间作为缓存文件的 *.mst 文件。例如: c:\Windows \Installer\xxxxx.mst
  3. 找到该 *.mst 文件并将其删除。
  4. 再次运行 Single Sign-On 升级。 
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

Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

Notice: Undefined offset: 2 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 18

Notice: Undefined offset: 1 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34

Notice: Undefined offset: 2 in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/pagination.php on line 34