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

2012年5月16日星期三

nfsv4

exports option "fsid=0"
https://wiki.archlinux.org/index.php/NFSv4

亦即此share為nfsv4的root
所有其他nfsv4的share必須依賴於此mount point之下
注意:/etc/idmapd.conf設定

2012年5月14日星期一

run shell command and then display the result on web through asp.net via vb.net


       Dim psi As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo

        psi.FileName = "ipconfig.exe"
        psi.Arguments = " /all"
        psi.UseShellExecute = False
        psi.RedirectStandardInput = True
        psi.RedirectStandardOutput = True

        Dim ps As System.Diagnostics.Process = New System.Diagnostics.Process
        ps.StartInfo = psi
        ps.Start()
        Dim sr As StreamReader = ps.StandardOutput
        Dim aa As String
        While (Not sr.EndOfStream)
            aa = sr.ReadLine
            Response.Write(aa)
            Response.Write("
")
        End While
       ps.Dispose()

2012年3月5日星期一

specify specific rsync binary

I have 64bits rsync 2.6.9 installed in my environment. When remote site triggers file transfer through rsync to my 32 bits platform, system will complain about rsync binary execution error. The reason is the search order in my environment setup. System looks for rsync binary from /usr/local/bin/ first and then /usr/bin/. In order to get this resolve, you have to specify the rsync path when running rsync command.

2012年3月1日星期四

session stalled when transfer files between two sites with unstable internet connection

net.core.rmem_default = 524288


net.core.rmem_max = 524288

net.core.wmem_default = 524288

net.core.wmem_max = 524288

net.ipv4.tcp_wmem = 4096 87380 524288

net.ipv4.tcp_rmem = 4096 87380 524288

net.ipv4.tcp_mem = 524288 524288 524288

net.ipv4.tcp_rfc1337 = 1

net.ipv4.ip_no_pmtu_disc = 0

net.ipv4.tcp_sack = 1

net.ipv4.tcp_fack = 1

net.ipv4.tcp_window_scaling = 1

net.ipv4.tcp_timestamps = 1

net.ipv4.tcp_ecn = 0

net.ipv4.route.flush = 1

ref: http://ubuntuforums.org/showthread.php?t=891695

2012年1月6日星期五

glibc version issue

in order not to upgrade the whole system to support some specific program, you can pull the required library from the compatible system to desired platform and have LD_PRELOAD or LD_LIBRARY_PATH defined before invoking the process.
in bash
LD_PRELOAD="......" glibc.so target_process

lmgrd去跑vendor daemon會有問題
此時僅需暫時修改預設loader,待lmgrd成功啟用後,在改回預設loader即可