2005/12/30 

如何找出linux kernel的所有Parameters

如何找出linux kernel的所有Parameters
可以看kernel source中的/Documentation/kernel-parameters.txt
或者用以下指令直接由source code中找出
find /usr/src/linux -name \*.[ch] -exec grep -wnH "__setup(" {} \;
完整參數應該除了"__setup"之外,
還要找"__early_param",及不使用巨集而直接對cmd_line存取的人
例如: if (strstr(cmd_line, "mem=")) ...

Labels:

2005/12/22 

Triple Play

Triple Play
指Data、Voice、Video三合一

來源:wikipedia
In telecommunications, the Triple Play service is a marketing term for the provisioning of the three services; high-speed Internet, television (Video on Demand, or live broadcast) and telephone service over a single broadband connection. Triple Play focuses on a combined business model rather than on solving technical issues or a common standard.

2005/12/14 

CUPS(Common Unix Printing System)

CUPS(Common Unix Printing System)是UNIX、Linux、MAC上的列印管理系統軟體,它可以支援動態印表機偵測(目前Support 300多種印表機http://www.cups.org/ppd.php)及web介面的管理。 它使用IPP(Internet Printing Protocal)來管理列印工作及佇列,所以可以用http://IPorServerName:631/PrinterName,就可以使用印表機。
CUPS一樣是從WINDOWS送出PostScript的檔案格式
另一個舊的列印服務是LPD(Line Printer Daemon)
CUPS是GPL版權

 

Clam AntiVirus(ClamAV)

Clam AntiVirus(ClamAV) 是一個自由軟體(Free Software),採用GPL發行,它是一個防毒工具組,最初設計和Mail Server整合。凡是Unix like的作業系統都可以使用,包含MAC OS,另外有二個在Windows上的版本,一個是有圖形介面的ClamWin;另一個用Interix。
以下是Interix的簡介(轉載自台灣微軟)
Interix 是一套完整的應用程式執行子系統,可讓客戶於 Windows 作業系統上編譯並直接執行 UNIX 程式和指令碼。客戶可使用 Interix 透過 Windows 平台執行 UNIX 應用程式以獲得更佳的使用體驗與價值。微軟也完成 Interix 能支援執行多重應用程式的擴充功能。

2005/12/07 

統計程式碼行數的工具

Thursday, December 8, 2005
12/7/2005 7:48:03 PM

統計程式碼行數的工具
David A. Wheeler 的SLOCCount,這是一個General Public License(GPL)開放原始碼,它支援非常多的程式語言(27種,包含shell,script),有趣的是它也會算出程式碼的成本,以下是對Linux Kernel 2.6.12-3的結果。
Creating filelist for arch
Have a non-directory at the top, so creating directory top_dir
Adding /usr/src/linux-2.6.12.3/COPYING to top_dir
Adding /usr/src/linux-2.6.12.3/CREDITS to top_dir
Creating filelist for crypto
Creating filelist for Documentation
Creating filelist for drivers
Creating filelist for fs
Creating filelist for include
Creating filelist for init
Creating filelist for ipc
Creating filelist for kernel
Creating filelist for lib
Adding /usr/src/linux-2.6.12.3/MAINTAINERS to top_dir
Adding /usr/src/linux-2.6.12.3/Makefile to top_dir
Creating filelist for mm
Creating filelist for net
Adding /usr/src/linux-2.6.12.3/README to top_dir
Adding /usr/src/linux-2.6.12.3/REPORTING-BUGS to top_dir
Creating filelist for scripts
Creating filelist for security
Creating filelist for sound
Creating filelist for usr
Categorizing files.
Finding a working MD5 command....
Found a working MD5 command.
Warning: in include, number of duplicates=119
Computing results.
Warning: file /usr/src/linux-2.6.12.3/arch/arm/mm/proc-arm1020e.S line 431 has unmatched comment end
Warning: file /usr/src/linux-2.6.12.3/arch/arm/mm/proc-arm1020.S line 449 has unmatched comment end


SLOC Directory SLOC-by-Language (Sorted)
2127382 drivers ansic=2121424,asm=2637,yacc=1651,perl=829,lex=763,
sh=78
766120 arch ansic=580685,asm=185016,sh=204,awk=99,python=45,
pascal=41,perl=30
394456 include ansic=392849,asm=1277,cpp=330
376134 fs ansic=376134
332482 sound ansic=332299,asm=183
245952 net ansic=245952
27413 kernel ansic=27413
18865 mm ansic=18865
17822 scripts ansic=11962,perl=2052,cpp=1429,yacc=952,lex=750,
sh=595,python=82
17092 security ansic=17092
13455 crypto ansic=13455
9293 lib ansic=9293
4566 ipc ansic=4566
2551 Documentation ansic=1183,sh=866,perl=284,lisp=218
2113 init ansic=2113
445 usr ansic=443,asm=2
0 top_dir (none)


Totals grouped by language (dominant language first):
ansic: 4155728 (95.40%)
asm: 189115 (4.34%)
perl: 3195 (0.07%)
yacc: 2603 (0.06%)
cpp: 1759 (0.04%)
sh: 1743 (0.04%)
lex: 1513 (0.03%)
lisp: 218 (0.01%)
python: 127 (0.00%)
awk: 99 (0.00%)
pascal: 41 (0.00%)




Total Physical Source Lines of Code (SLOC) = 4,356,141
Development Effort Estimate, Person-Years (Person-Months) = 1,324.61 (15,895.28)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 8.23 (98.72)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 161.01
Total Estimated Cost to Develop = $ 178,936,381
(average salary = $56,286/year, overhead = 2.40).
SLOCCount, Copyright (C) 2001-2004 David A. Wheeler
SLOCCount is Open Source Software/Free Software, licensed under the GNU GPL.
SLOCCount comes with ABSOLUTELY NO WARRANTY, and you are welcome to
redistribute it under certain conditions as specified by the GNU GPL license;
see the documentation for details.
Please credit this data as "generated using David A. Wheeler's 'SLOCCount'."

 

Linux當AP找不到Lib時

Wednesday, December 7, 2005
12/7/2005 2:56:12 AM

Linux當AP找不到Lib時

有時當會發生library 找不到的事情,而你用find又可以在特定路徑找到,那問題就可以知道是你的lib沒有被加入到ld.so.conf中
以下是設定方式:
/etc/ld.so.conf,加上 library 所在的路徑後再用ldconfig -v 重建 /etc/ld.so.cache
就可以了
另外用strace也是可以知道到底發生什麼事的.
ldd也不錯用.

About me

  • I'm Martin's blog 馬汀的部落格
  • From 中壢市, 桃園縣, Taiwan
  • -----BEGIN GEEK CODE BLOCK----- Version: 3.1 Comment: For info see http://www.geekcode.com GC/CS/CC/E/IT/TW d- s a C++++ L++++ P+ L++++ E--- W+++ N++ o+ K- w+++ O- M- V- PS+ PE++ Y+ PGP+ t 5- X++ R- tv- b+++ DI+ D-- G e+++ h+ r+ y+ z? ------END GEEK CODE BLOCK------ /**************************** 旅行是我生命的動力 它的樂趣從計劃旅行開始 我樂於分享旅行及Linux Kernel上的每一件事. ****************************/
My profile