After my previous article about compiling snort in Slitaz, I want go further on CPAN modules of Perl in Slitaz. The CPAN shell is bundled in perl package when installation is done. To launch the CPAN shell, I prefer the traditional way:
perl -MCPAN -e shell
The first thing to do should be upgrade the CPAN modules, instead of playing around in the shell. Remember don’t shy to keep press “yes” to continue the upgrade process.
install Bundle::CPAN
Normally, most of the CPAN modules can be installed by using the standard installation method. However, there is another way to install the modules – compile. Below is an example on how to compile Geo::IP modules in Slitaz.
- Install the core development package of Slitaz
tazpkg get-install slitaz-toolchain
- Install the requirement package source code (zlib-dev)
tazpkg get-install zlib-dev
- Download the required library, C library in Author’s website:
http://www.maxmind.com/app/c
- Compile and install the library
- untar the downloaded file
- Type the following command one-by one inside the tarball directory to compile the modules (libraries will be install at /usr/local/lib):
perl Makefile.PL -LIBS=’-L/usr/local/lib’
make
make check
make install
- download source from below (Official CPAN website):
http://search.cpan.org/~borisz/Geo-IP-1.38/lib/Geo/IP.pm
- Install module
- untar the downloaded file
- Type the following command one-by one inside the tarball directory to compile the modules (libraries will be install at /usr/local/lib):
perl Makefile.PL -LIBS=’-L/usr/local/lib’
make
make check
make install
Hope you like and it works for you.
 深切哀悼菲律賓遇害港人
所有平常事, 今日變得有意義, 要為未來既目標努力.
 Important Moment
底價都是1000元
身高超過168cm,每過1cm+100元
身高低于160cm,每低1cm-100元
有酒窩+100
留長髮的+150元
會跳舞的+100元
會唱歌的+100元
人妖非主流浮誇打扮-200元
胸部A-B的-100元C-D+200元
體重超過110斤的,每超過10斤-100元
體重不足100斤的,每差10斤-100元
近視的,超過300度,每100度-100元
雙眼皮+100元
單眼皮+50
談過戀愛的,被甩一次-100元,甩別人一次
+100元
沒有談過戀愛的+100元
初吻對象是你+300元
初吻對象不是你-200元
**對象是你+500元
**對象不是你-400元
初戀對象是你+300元
超過22歲的,每超1歲-100元
有病史的,每一項-100元
會游泳+100
不會麻將+100元
不會喝酒+100元
成績優秀+200元
尊敬長輩+100元
喜歡針線活+100元
不愛慕虛榮,在你困難時不離不棄+200
愛嗜酒-200元
愛抽煙-200元
愛說粗口-300元
愛染髮-100元
養寵物+100元
喜歡種花+50元
喜歡小朋友+100元
會做飯+300元
溫柔賢惠禮貌待人+100元
不懂事,總任性的發脾氣-200元
總告訴你想你的+100元
有心事總是找你說+100
懂得自重,不會和別的男人動作親膩+200元
會關心你。。不讓你抽煙、喝酒的.關心你的經
濟+100元
平時不打擾你的個人生活+100元
總纏著你逛街,總要你花錢-200元
喜歡買東西或親手製作東西給你+100
關心你工作或學習+200元
會按照你喜歡的方式打扮自己的+100元
不會洗衣服做家務的-200元
在朋友面前罵你-200元
總是和你說要分手-100元
因為小事和你吵架的-200元
吵架不管是不是她錯。。總先找你的+100元
每天要你哄她睡覺的+100元
每天都能打電話給你+100元
喜歡和你撒嬌+100元。。。
只對你乖。。對別人不乖的+200元
會為你哭的+100元
總惹你哭的-100元
很自立不是想要什麼都要你買給她的+200元
在你朋友面前不任性的+100元
會化妝的+100元
會給你洗衣服的+100元
成熟穩重的+100元
跟你在一起不愛笑的-200元
要你逃課陪她玩的-200元
考試掛1科-100元
會送你她親手做的東西+100元
總說你醜的-200元
沒照過大頭貼的-200元
挑逗別的男人-200
呵呵。。
結果:
1800以下就別要了
2000到2800正常
2800到3500精品
3500以上的,你要是碰著啦就趕緊娶吧。。遲
了就沒有了!!
Iit is really hard to find the official chrome beta link from google. However, here it is:
http://www.google.com/intl/en/landing/chrome/beta/index.html
修正了檢視惡意 PDF 檔案的安全漏洞。
與此軟體更新相容的產品:
• iPhone 3G
• iPhone 3GS
• iPhone 4
• 第二代 iPod touch
• 第三代 iPod touch(32 GB 或 64 GB 的 2009 年末機型)
修正了檢視惡意 PDF 檔案的安全漏洞。
與此軟體更新相容的產品:• iPhone 3G• iPhone 3GS• iPhone 4• 第二代 iPod touch• 第三代 iPod touch(32 GB 或 64 GB 的 2009 年末機型)
再一次有度假既感覺, 雖然第一次的確很好, 不過今次既經歷亦都值得回味.
 Holiday Mood
I always like to use Slitaz running server, because of the benefit from it’s tiny size and low hardware requirement. More resources can be reserved for server service in compare with other distro.
With less than 1GB after installed in hard drive, it provides common server packages, including apache, php, mysql, samba, sure it contains a X windows. However, I need admit that it still missing some advanced features comparing with great distros like Ubuntu, Debian and Red Hat. One of the feature is IDS.
Although official package already provided snort, it just supports log file output instead of supporting database. To enjoy such advanced feature, we need download the tarball and install by ourselves. This article is to demonstrate the installation step-by-step. Please sit back and enjoy.
Pre-requirement: (Please prepare the following programs source)
- Snort
- jpgraph
- Barnyard2 (Optional), by referring David Gullett’s setup guide, this tiny program can improve the efficiency of Snort
- adodb
- Base
Step-by-step:
- Install Slitaz, very simple
- Install official packages by using tazpkg get-install
- apache2
- php, php-cli, php-apache, php-mysql, mysql
- mysql-dev, libpcap, nmap, php-gd, php-pear, slitaz-toolschain
- Untar jpgraph
- tar -zxvf jpgraph.tar.gz
- copy jpgraph/src /var/www/jpgraph
- Untar barnyard2
- tar -xzvf barnyard2.tar.gz
- cd barnyard2
- ./configure withmysql
- make
- make install
- cp etc/barnyard2.conf /usr/local/snort/etc
- mkdir /var/log/barnyard2
- edit /usr/local/snort/etc/barnyard2.conf
- change the following settings:
config reference_file: /usr/local/snort/etc/reference.config
config classification_file: /usr/local/snort/etc/classification.config
config gen_file: /usr/local/snort/etc/genmsg.map
config sid_file: /usr/local/snort/etc/sidmsg.map
config hostname: localhost
config interface: eth1
output database: log, mysql, user=SNORT_USER password=SNORT_PASSWORD dbname=snort \
host=localhost
- Untar snort tarball
- tar -zxvf snort.tar.gz
- ./configurate -with-mysql –prefix=/opt
- make
- make install
- copy etc rules folders into /opt
- Create user account for running snort
- addgroup snort
- adduse snort
- Create mysql database
- grant access right to snort account
- Edit snort config file
- vi /opt/snort/etc/snort.conf
- Copy snort rules to /opt
- Test snort config
- Install adodb
- untar downloaded file
- copy file in web directory
- Install base
- untar downloaded file
- copy file to web directory
終於等到 MS 出個 MSN 俾 iphone. 不過介面有少少似網頁版, 而且仲唔知點樣 sign out. 不過作為原裝 MSN, 點都會用依個.
其實用第三者程式唔係唔好, 不過始終有安全問題. 所以一直都等緊 microsoft 自家個 MSN.
謝謝網友 KZ4977 @HKEPC 提供:
  
[ 本文最後由 Joe Ho 於 2010-7-4 6:17 PM 編輯 ]
近日發現運行 snort 時出現這句錯誤提示:
ERROR: Failed to find LibVersion() function in … snort_dynamicrules/lib_sfdynamic_example_rule.so
原來解決方法很簡單, 只要將 snort_dynamicrules 目錄內包含 “example” 字眼既檔案移除就可解決.
近日科技網站報導了一則比較關注既新聞, Google遙控刪除用戶已下載既程式. 當中原因是有兩個 Google Market 內的程式被發現有安全問題, Google 發現後已即時從 Market 內移除該程式. 不過, 故事還未完結, Google 同時亦運用遙控權, 先通知受影響用戶後, 再遙控刪除用戶手機內有問題既程式.
事件報導後, 令很多人才開始知道 Google 有能力遙控用戶手機及擔心個人資訊問題. 其實, Android Market 使用條款中已列明:
2.4 Google 有時會在「Market」發現違反「Android Market 開發人員發佈協議」或其他法律協議、法律、法規或政策之「產品」。您同意在該等情形下,Google 可以保留權利,酌情將這些應用程式自您的「裝置」中移除。
我相信這是一般用家忽略使用條款既後果, 只要同意了使用條款即同時代表用家明白並遵守該等規則. 如果唔同意那些條款, 唯一可以做的就是停用那些功能. 其實, 當啟用 Android 電話時, 用家必須擁有 Google 賬戶, 其實此時 Google 已經擁有了用家既個人資料. 如果真的擔心個人資訊問題, 可能一開始就不應選擇 Android 電話了.
不過事情又不是想像中需要用家擔心. 因為 Android 是建基於 Linux, 眾所周知, Linux 有一套權限標準. 除了 Root 是最高系統管理員外, 其他一般賬戶只有特定權限. Google 所使用既遙控戶口相信只有刪除程式既能力. 用家可把手機 Root 了以後修改手機內各賬戶權限, 令 Google 失去遙控能力, 當然這又涉及保養問題.
另外, 從條款中發現使用 Android Market 是有年齡限制的:
1.4 您必須年滿 13 歲,方能使用 Android Market。如果您的年齡介於 13 到 18 歲,則必須擁有家長或法定監護人的許可,方能使用 Market。
透過這些報導, 希望各位提高對使用條款或服務合約既意識. 否則, 發生問題後才追究只會令用家自已承擔後果.
|
|