Posted in Beijing, Debian, Linux on 05/09/2007 03:49 pm by anthony
Last night I gave a short presentation at Beijing Linux User Group (BLUG) on the Debian project and the new Etch release. As Roy Chan had given a talk about the new release in the Hong Kong Debian Etch release party, I asked for his permission to use his slides for this talk, and he happily agreed. I made some modifications to his slides and cut out the part about Linux introduction, you can find the presentation slides in OpenOffice.org 2 format here, PDF version here. In the meeting Darren mentioned the idea of using peer-to-peer technology in apt, so that users don’t need to set any repositories in the configuration, this is a very good idea, and coincidentally there is a Google Summer of Code project on this topic.
Popularity: 1% [?]
Posted in China, Debian, Linux on 02/14/2007 01:35 am by anthony

前幾日去開王府井書店,見到有本書叫《Debian Linux系统配置与管理》。云云 Linux 書海裏有本專門寫 Debian 的實屬少見,所以特別易搵。二話不說,梗係第一時間拎嚟睇吓,睇書我好留意作者,一睇,原來作者係信息产业部软件与集成电路促进中心 (CSIP),喺北京搞過 Linux 的人都知道 CSIP 係信息產業部下面嘅一大 linux player,個 linux lab 人就唔係好多,但喺 server 就多到用唔晒。講眞,睇見作者係 CSIP 我就即刻打咗個突,心唸既然佢哋都寫到 Debian admin 嘅書,咁我都可以寫 kernel hacking。內容就唔多講喇,想學 Debian 的話都會有用嘅,不過唔該搞清楚個 distribution 個名先好寫書,係 Debian GNU/Linux,唔係 Debian Linux 呀,大佬。
Popularity: 1% [?]
Posted in Linux on 04/11/2006 02:27 am by anthony
Kororaa 確是令人眼前一亮,好一段時間沒有試過這麼好玩的 Linux distribution 了。在一台 Samsung X10 的 notebook 上 run 它的 live CD,感覺 Xgl + compiz 的速度與普通的 X window + metacity 相比有過之而無不及,雖然是 base on Gentoo 的但還是不得不支持一下。眼見公司的 server 還沒有完全發揮它的功能,於是把 live CD mirror 了以饗國內 linux fans,URL 是 http://beijing.anthonywong.net/kororaa/,歡迎用任何方式下載。
Popularity: 1% [?]
Posted in Linux, Technology on 03/27/2006 01:44 am by anthony
公司需要在北京找一個 data center 放 server,最後通過 agent 決定在位於中關村科技發展大廈的電信通數據中心(前身中關村數據)租了一個 2U 100M shared 的地方。Agent 說能保證 bandwidth 最少 1Mbps,最多也不會超過 1.2Mbps。但基於 sales 的不可信性 (the unbelievability of salesperson),還是有自己去測試一下 bandwidth 的必要的。這裡給大家一個簡單的 poor man’s way 來測試 bandwidth,一般人會用 HTTP/FTP 傳送 file 的方法來看一下速度有多快,但是需要先裝好 HTTP 或 FTP daemon。我喜歡用 netcat,因為使用非常簡單。除了 netcat,你亦需要一個用來 monitor network bandwidth usage 的軟件,用來查看實際的網絡流量,推薦使用 munin 和 ntop。
netcat 的使用方法非常簡單,步驟如下:
- 假設我的 server 叫電腦 A,你需要再多找一台電腦,叫電腦 B(我就找了一台在香港 data center 的 server)
- 在電腦 B 執行命令:
netcat -l -p 10000 > /dev/null。意思就是用 netcat 監聽 port 10000,而且接收到的所有 data 都當成是垃圾扔到 /dev/null 這個黑洞裡。
- 在電腦 A 執行命令:
netcat [電腦 B 的 IP] 10000 < /dev/urandom。意思就是連接到電腦 B 的 port 10000, 並且不斷 send data。 Linux 會為 /dev/urandom 不斷的供應一些隨機的 data。
就這樣,便可以測試電腦 A 的 outbound bandwidth 了。再多找兩三台電腦(當然是在不同的 network 的)同時 send 和 receive,差不多就能把可用的 bandwidth 用盡了。如果要測試 inbound bandwidth,把 A 和 B 的身份對換就可以了。
P.S. 測試後發現,bandwidth 比想像中的要好,深夜的時候可以達到 3Mbps,連到國內的 server 更可以達到 10Mbps!到白天基本上 bandwidth 就回落了。
Popularity: 7% [?]