2012年8月27日 星期一

find command tips

find . -type d ! -perm -o=x -perm -mode --> ambiguous compare
-perm mode --> exactly compare

2012年8月17日 星期五

backup exec tips

-o84  --> find robotic library device id
-o85 --> find robotic library device name
-o103 --> run inventory
-o104 * -a"robotic library device name" --> lock library door
-o105 * -a"robotic library device name" --> unlock library door
-o69 --> get media set id
-o70 --> get media set name and id mapping
-o132 --> list medias which is put in the media set
-o130 --> move media

2012年8月9日 星期四

noise from analog port

boot option for analog port fix
noapic pci=noacpi,usepirqmask

2012年8月6日 星期一

GLIBCXX_3.4.9 cannot be found

1:manually download prerequisites
required package info can be found at contrib/download_prerequisites
2:compile prerequisites with static library (enable static and disable shared )
GMP, MPFR, MPC
3:compile gcc with shared library (please refer options to gcc -v command)
4:use LD_PRELOAD to load proper libstdc++ to start program

debug: strings libstdc++ |grep GLIBC

2012年6月17日 星期日

asterisk channel information

channel information will be truncated by core show channels command
use concise option to retrieve full channel information
core  show channels concise

add user defined variable for agi
Set: variable=xxxx

2012年5月31日 星期四

name resolving issue under vpn connection

relate to dns search order.

http://support.microsoft.com/kb/311218

Const HKLM = &H80000002
sComputer = "."
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
& sComputer & "\root\default:StdRegProv") 

sKeyPath = "SYSTEM\CurrentControlSet\Services\Tcpip\Linkage"
sValueName = "Bind"

oReg.GetMultiStringValue HKLM, sKeyPath, sValueName, arValues
arValuesNew = Array()

'patch registry
If UCase(arValues(0)) <> UCase("\device\ndiswanip") Then
ReDim Preserve arValuesNew(0)
arValuesNew(0) = "\Device\NdisWanIp"
For Each objarValues in arValues
If UCase(objarValues) <> UCase("\device\ndiswanip") Then
ReDim Preserve arValuesNew(UBound(arValuesNew)+1)
arValuesNew(UBound(arValuesNew)) = objarValues
End If
Next
End If
If UBound(arValuesNew) <> -1 Then
oReg.SetMultiStringValue HKLM, sKeyPath, sValueName, arValuesNew
End If

2012年5月23日 星期三

grant power control authority to users

GPO registry control
HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\CONTROLS FOLDER\POWERCFG
HKLM\SYSTEM\CURRENTCONTROLSET\CONTROL\SESSION MANAGER\POWER