2010年11月18日

Allowing Root Logins to Telnet and FTP Services

只要編輯/etc/securetty即可
加入以下就可以讓10個session以root telnet登入
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9

Ref: http://www.idevelopment.info/data/Unix/Linux/LINUX_TelnetFTPAsRoot.shtml

2010年9月12日

如何清除網路芳鄰的記憶密碼

http://blog.roodo.com/horoyang/archives/7435049.html

2010年8月16日

stdout stderr

1 - denotes stdout ( standard output )
2 - denotes stderr ( standard error )
/dev/null . apparently is null , nothing , empty , zero etc , etc .

2>/dev/null - redirect stderr to nothing , it turns stderr off.

>/dev/null 2>&1 also can write as 1>/dev/null 2>&1 - stdout redirect to /dev/null (no stdout) ,and redirect stderr to stdout (stderr gone as well) . end up it turns both stderr and stdout off

a little practice may help to undstand above .
#ls /usr /nothing
#ls /usr /nothing 2>/dev/null
#ls /usr /nothing >/dev/null 2>&1

2010年3月7日

WinXP 網芳 密碼

刪除
net use * /del /y
管理
control userpasswords2

2010年2月10日

CVS Command

Root:
#export CVSROOT=:pserver:[user name]@[server]:/share/service/cvs

Checkout:
#cvs checkout -d [folder name] -r [tag] "[server code path]"

Commit:
#cvs commit -m "[log]"

Branch:
#cvs tag -b [branch name]

Checkout Branch:
#cvs checkout -d [folder name] -r [branch name] "[server code path]"

Look Up Version:
#cvs status -v

Look Up Log:
#cvs log -S -d "2005/10/1<2005/10/3">
/*To show the headers of files in the current directory created after October 1, 2005 through the present time*/

Add Tag:
#cvs tag tag_name

checkout by tag:
#cvs co -r tag_name output_path

checkout by date:
#cvs checkout -D "mm/dd/yyyy hh:mm" -d [folder name] "[server code path]"

look changelog
#cvs2cl.pl -r
#vim ChangeLog

UBOOT-gd

gd指標在需要使用它的函數中定義(用DECLARE_GLOBAL_DATA_PTR)為一各區域變數
因為在uboot中用一個固定的暫存器來存放這個指標,所以即使是區域變數,但是他再所有使用到他的地方都是一樣的值,這個值在board_init_f中初始化,指向CFG_GBL_DATA_ADDR