Mar 16, 2007

ubuntu裝ntfs-3g

apt安裝怪怪的,只好tarball安裝

1. 去 http://fuse.sourceforge.net/ 抓fuse

./configure, make, sudo make install

2. http://www.ntfs-3g.org/ntfs-3g-1.0.tgz 抓ntfs-3g

./configute, make, sudo make install

3. sudo vim /etc/fstab

/dev/sda1 /media/win_c ntfs-3g silent,umask=0,locale=zh_TW.utf8

device位置跟掛載點自己改

(umask=0 => 跟777 mask得到777,所以目錄權限是777。如果不想讓other存取,就用007)

4. mount -a 重新掛一次

5. 為了方便,把掛載點bind到家目錄......

修改/etc/fstab,加入:/media/win_c/apen /home/fyodor/apen none bind 0 0

(要先在家目錄裡面mkdir)

Mar 13, 2007

ubuntu 上安裝 nessus漏洞偵測工具

nessus是最著名的漏洞偵測工具,提供上萬個plugins,也可以針對需求自己寫plugins

使用client - server架構,由client下命令,server發起偵測動作

可產出網頁,網頁帶圖片,純文字格式的檢查報告

*安裝nessus nessus-server
$apt-get install nessus nessusd nessus-plugins

*建立一個nessus user

$nessus-adduser

輸入帳號密碼後按ctrl-d

*更新plugins (要跑很久)

$nessus-update-plugins

$nessus-update-plugins-gpl

*啟動nessus server

$nessusd -D (以demon模式啟動,載入plugins要很久...)

*寫個ip_list指定掃描對象

*執行掃描

$nessus -q -V -T html_graph localhost 1241 [username] [password] ip_list report.html

*report.html裡就是檢查報告,用瀏覽器開index.html

======================

因為紅豆的電腦因為中毒被停權....所以就順便幫他測一下漏洞

Mar 7, 2007

用MSN做善事,讓微軟為大家捐款

http://gene7299.spaces.live.com/Blog/cns!D2C6AE79F031F1AC!63291.entry

可是要有一方在美國才能被正確計算.....美國的朋友們趕快響應吧~~

(其實也只有兩三個朋友在美國....)

































































特定碼 機構
*red+uAmerican Red Cross 美國紅十字會
*bgcaBoys & Girls Club 兒童群益會
*nafNational AIDS Fund 美國國家愛滋基金
*mssocNational Multiple Sclerosis Society 國家多發性硬化症學會
*9milninemillion.org 國際兒童難民援助組織
*sierraSierra Club 山巒協會(保護自然生態的)/地球環境協會
*helpStopGlobalWarming.org 防止全球溫室效應惡化的機構
*komenSusan G. Komen for the Cure 乳癌基金會
*unicefThe US fund for UNICEF 美國地區聯合國兒童基金會
*wwfWorld Wildlife Fund for Nature 世界自然基金會
*oxfamThe Oxford Committee for Famine Relief 樂施會
(協助解決當時世界各地饑荒及貧窮問題)
*care國際關懷協會
*hsusThe Humane Society of the United States 美國人道協會
*acsAmerican Cancer Society 美國癌症協會
*oneONE Campaign-全球消除貧困與對抗愛滋的組織(GCAP)

Mar 1, 2007

build wxWdgets libraries in winxp with vc6

之前用vc6要編wxWidgets, 怎麼弄都有問題...浪費了一個禮拜

找了網路上一些說明,step by step照做還是沒辦法

後來發現我忘了裝sp5 of visual studio 6....

裝上去之後就一路順暢  -____-   照著文件裡的INSTALL說明就搞定了

ps. 如果把wxWidgets編譯成static library , 記得要把code generation設定成/ML 或 /MD

Feb 15, 2007

安裝openser (sip registrar/proxy server)

openser 是一個open source的 sip registrar / proxy server

在這裡下載最新版src tarbal

需要先裝好這些東西

- gcc or icc : gcc >= 2.9x; 3.[12] recommended (it will work with older version,

  but it might require some options tweaking for best performance)

- bison or yacc (Berkley yacc)

- flex

- GNU make (on Linux this is the standard "make",

   on FreeBSD and Solaris is called "gmake") version >= 3.79.

- sed and tr (used in the makefiles)

- GNU tar ("gtar" on Solaris) and gzip if you want "make tar" to work

- GNU install or BSD install (on Solaris "ginstall")

   if you want "make install",  "make bin", "make sunpkg" to work

- libmysqlclient & libz (zlib) if you want mysql support (the mysql module)

- libexpat if you want the jabber gateway support (the jabber module)

==========================
$apt-get install bison flex
為了群組撥號功能能夠正常運作,要把mysql module 編進去

$ apt-get install libmysqlclient15-dev

$ make all include_modules="mysql" && make install include_modules="mysql"

但是帳號認證功能預設是沒編進去的

==========================

幾個常用的指令

$openserctl start //啟動 (還有stop, restart)

$openserctl online //顯示目前上線user

Feb 14, 2007

馬英九被起訴

我的天哪~ 怎麼可以起訴人民的救星, 國民黨的未來

阿扁被起訴就足夠證明是有罪的, 馬英九被起訴一定是政治操弄!

國民黨當然要修改排黑條款啦~ 不然就沒有人才可用了

Feb 9, 2007

Lab尾牙~

今天LAB吃尾牙

不過沒抽獎就是了.....就當作難得的大聚餐吧~

一般生幾乎全員到齊,再加上產碩跟幾個在職。真的好多人啊!

去吃公館的「愛樂廚房」,韓國銅盤烤肉,好像還算是小有名氣。

不過吃得不是很痛快,因為...好擠啊!

每個人分到的位置只有比肩膀寬一點。

1.jpg

2.jpg

3.jpg