The Meaning of The Life
The meaning of the life isn't lie in living of length, lie in whether lead splendid.
生命的意義不在於是否活的長短,在於是否過得精采!
The meaning of the life isn't lie in living of length, lie in whether lead splendid.
生命的意義不在於是否活的長短,在於是否過得精采!
Found an interesting thing:Robots.txt .After research, originally it is a tool that prevents robot to record some web pages or data from website. Avoid the web pages to be exposed and be searched by the internet user. For example there is a directory in your website root that be called "securitydir" and you don't hope that the directory can't be searched by internet user but other directories can be recorded by robot. So, you have to add a Robots.txt in your website root and then disallow "securitydir" to be searched.
The main semantics of the "robots.txt" file are "User-agent" and "Disallow".
User-agent:This is the name of the robot that the record is describing access policy for.
For example:
User-agent: *
Access all robot to record.
User-agent: abcd
Only allow the name robot "abcd" to record.
Disallow: This can be a full path or a partial path that is not to be visited.
For example:
Disallow: /securitydir
Disallow both /securitydir and /securitydir/index.html
Disallow: /securitydir/
Allow /securitydir.html but disallow /security/index.html
Disallow: /123abc.html
Disallow 123abc.html to be retrieved.
For two instances:
1 . No robot can retrieve any URLs that starting with "/user/admin" or "/tmp" or
/user.html
----------------
# Robots.txt for http://www.myexample.com
User-agent: *
Disallow: /user/admin
Disallow: /tmp
Disallow: /user.html
---------------
2. No robot can retrieve any URLs that starting with "/user/admin" or "/tmp", except the
robot called "Ican".
----------------
# Robots.txt for http://www.myexample.com
User-agent: *
Disallow: /user/admin
Disallow: /tmp
User-agent: Ican
Disallow:
-----------------
Try it. ^^
發現了一個有趣的東西:Robots.txt .在研究一番之後,原來他是防止網路機器人Robot收錄網站某些網頁或資料的一種工具,避免網路使用著利用搜尋引擎去搜尋到不想曝光的網頁。
舉例來說,在您的網頁根目錄裡有個資料夾叫做"securitydir"是您不想被收錄索引的資料夾,您不希望被網路使用著搜尋到,但是對於其他的網頁資料卻可以開放被索引,這時候您就要再網站根目錄裡放一個robots.txt.的檔案,以達到上述的目的。
Robots.txt的主要語法有兩個:"User-agent" 和 "Disallow" 。
User-agent:這主要設定允許的robot可以進行收錄的動作,此為robot的名字
例如:
User-agent: *
允許所有的robot執行動作
User-agent: abcd
只允許名為abcd的robot進行動作
Disallow: 此為設定以哪些路徑或部分路徑開頭的URL完全禁止,也可以是檔案。
例如:
Disallow: /securitydir
不允許securitydir及securitydir以下的檔案被檢索
Disallow: /securitydir/
允許/securitydir.html 但是不允許 /security/index.html被檢索
Disallow: /123abc.html
不允許123abc.html 該檔案被檢索
再舉兩個完整的例子:
1 . 不允許 "/user/admin" 及 "/tmp" 開頭的URL和 /user.html被檢索,設定內容如下
----------------
# Robots.txt for http://www.myexample.com
User-agent: *
Disallow: /user/admin
Disallow: /tmp
Disallow: /user.html
---------------
2. 除了名為Ican的robot可以進行檢索 "/user/admin" 和 "/tmp"之外,其他robot一概被禁止。
----------------
# Robots.txt for http://www.myexample.com
User-agent: *
Disallow: /user/admin
Disallow: /tmp
User-agent: Ican
Disallow:
-----------------
試試看吧! ^^
Found a problem while wanting to modify drupal module this morning:
My admin/modules page became blank.
Check to just find that is originally out of memory.
Modified the memory_limit=16 M in the php.ini
memory_limit=16 M => memory_limit=40 M
(The 40 M is what I establishes. I don't knowing would not calculate until how
much at the right moment)
and then restart httpd.
This problem is resolved. ^^
今天早上修改drupal的模組時,發現了admin/modules變成了空白頁,查了一下。
原來只要修改了php.ini裡的memory_limit = 16M,
memory_limit=16 M => memory_limit=40 M (40M是我設的,不知道要多少才算剛好)
然後重新啟動httpd。
這個問題就解決了。^^
Why want to install Ffmpeg?In fact is because I packed gallery2 for wanting an ability in the gallery2 to play the vedio and movies and sounds files.
In order to let the ffmpeg support more file formats, we must install the other encodings packages first before installing ffmpeg. I am to use a lazy person installing method, RPM -Uvh.
All of these set packages are supported Fedora Core 6 and can be got in the nether download.
1. support mp3 --Explain
#rpm -Uvh lame-3.97-1.fc6.i386.rpm
2. support ogg vorbis--Explain
# rpm -Uvh libogg-1.1.3-2.fc6.i386.rpm
#rpm -Uvh libvorbis-1.1.2-1.2.1.i386.rpm
4. support xvid--Explain
#rpm -Uvh xvidcore-1.1.0-4.lvn6.i386.rpm
5. support x264--Explain
#rpm -Uvh x264-0.0.0-0.3.20061023.fc6.i386.rpm
6. support mpeg4 (Explain) & aac (Explain)
#rpm -Uvh libfaad2-2.0rc1-51736cl.i386.rpm
#rpm -Uvh faac-1.24-3.fc6.i386.rpm
7. support 3gp--Explain
#rpm -Uvh 3gpwiz-1.3-0.pm.1.noarch.rpm
8. another packages related to ffmpeg
#libid3tag-0.15.1b-3.fc6.i386.rpm
#a52dec-0.7.4-8.fc6.i386.rpm
#gsm-1.0.10-6.fc6.i386.rpm
#imlib2-1.3.0-3.fc6.i386.rpm
9. install ffmpeg
#ffmpeg-0.4.9-0.7.20060918.fc6.i386.rpm
Finally, administer your gallery2's modules and type ffmpeg path(maybe
/usr/bin/ffmpeg) and enable it to work.
Steps be down.^^
Reference website:
http://blog.5ilinux.com/archives/2006/08/ffmpeg.html
為了要讓ffmpeg支援更多的檔案格式,在安裝ffmpeg之前先安裝其他encoding的套件。對了我是用懶人安裝法,RPM。
這些套件全部都是support Fedora Core 6 and 可以在下面的download下載到。
1. 支援 mp3 --說明
#rpm -Uvh lame-3.97-1.fc6.i386.rpm
2. 支援 ogg vorbis--說明
# rpm -Uvh libogg-1.1.3-2.fc6.i386.rpm
#rpm -Uvh libvorbis-1.1.2-1.2.1.i386.rpm
4. 支援 xvid--說明
#rpm -Uvh xvidcore-1.1.0-4.lvn6.i386.rpm
5. 支援 x264--說明
#rpm -Uvh x264-0.0.0-0.3.20061023.fc6.i386.rpm
#rpm -Uvh libfaad2-2.0rc1-51736cl.i386.rpm
#rpm -Uvh faac-1.24-3.fc6.i386.rpm
7. 支援 3gp--說明
#rpm -Uvh 3gpwiz-1.3-0.pm.1.noarch.rpm
8. 其他Ffmpeg的相依性套件
#libid3tag-0.15.1b-3.fc6.i386.rpm
#a52dec-0.7.4-8.fc6.i386.rpm
#gsm-1.0.10-6.fc6.i386.rpm
#imlib2-1.3.0-3.fc6.i386.rpm
9.安裝 ffmpeg
#ffmpeg-0.4.9-0.7.20060918.fc6.i386.rpm
最後進入gallery2的網站管理去設定ffmpeg的路徑(也許是/usr/bin/ffmpeg),然後啟動它。^^
參考網站
E-mail is a kind of ways to exchange messages that many people use now . But it s an undisputable fact that e-mail become the shortcut of the virus dissemination , and advertise letter is also a severe problem with the most internet users currently.
The MailScanner is a free and well-known mail anti-virus software and is also the tool that defends the advertisement letter mail.It supports various anti-virus softwares, including ClamAV etc..
The ClamAV is also a free E-mail anti-virus software, and then provides an on-line immediately real time service. It can detect more than 40,000 kinds of viruses, worms, the Trojan programs. ClamAV has a set of anti-virus experts who distribute in the world everywhere currently and renew for 24 hours and safeguard the virus database. If anyone finds the suspicious virus can also make contact with them at any time and them renew the virus yard immediately to be the latest protection action in cutty time.
Install:(Suppose you have already installed sendmail.)
Step 1:
Install MailScanner
Download from offical website:http://www.mailscanner.info/
Download Stable version:Version 4.54.6-1 for RedHat, Fedora and Mandrake Linux (and other RPM-based Linux distributions)
this version for Fedora Core.
And command
#tar zxvf MailScanner-4.56.8-1.rpm.tar.gz
#cd MailScanner-4.56.8-1
#./install.sh
Installing............(Come some coffee ^.^)
When process be down. Then check the content in this file
/etc/MailScanner/MailScanner.conf
Max Children = 5
//How many MailScanner processes do you want to run at a time?
Virus Scanning = yes
//Open the anti-virus function.
Virus Scanners = clamav
//Which Virus Scanning package to use.
Use SpamAssassin = yes
//Do you want to find spam using the "SpamAssassin" package?
//You must install spamassassin before.
Save it.
Step 2:
Install ClamAV
You must add account for clamav before install clamav.
#groupadd clamav
#useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
#cd /usr/local/src
Download ClamAV tarball package from http://www.clamav.net/stable.php
#wget http://nchc.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.6.tar.gz
#tar zxvf clamav-0.88.6.tar.gz
#cd clamav-0.88.6
#./configure --sysconfdir=/etc
#make
#su -c "make install"
..........wait line......... ....
#vim /etc/clamd.conf
1.Add a # front the word "Example" (disable Example)
2.Alter "User clamav" to be "User root" and enable.(Remove #)
#vim /etc/freshclam.conf
1.Disable the "Example".
2.Enable the "Check=24".
Step 3:
Restart MailScanner
#service MailScanner stop
#chkconfig sendmail off
(Hereafter will be started sendmail by MailScanner. We must prohibit sendmail to run
at a time)
#killall sendmail
(Kill all sendmail process in the memory.)
#service MailScanner start
Installing is well done. ^^
The reference website:
http://cha.homeip.net/blog/archives/2005/01/sendmail_mailsc.html
http://www.neo.com.tw/archives/000323.html
E-mail是現在許多人使用的一種傳遞訊息的方式,但是變成病毒散播的捷徑卻是不爭的事實,而且廣告信也是也是目前許多網際網路使用者最頭痛的問題。
MailScanner是一個免費且著名的郵件掃毒軟體,也是防廣告信郵件的工具。它支援多種防毒軟體,包含ClamAV等。
ClamAV也是免費的電子郵件防毒軟體,又提供線上即時更新的服務。目前可以偵測超過40,000 種病毒、蠕蟲、木馬程式,並且有一組分佈在世界各地的病毒專家,24小時更新及維護病毒資料庫,任何人發現可疑病毒也可以隨時跟他們取得聯繫,立刻更新病毒碼,在極短的時間內完成最新的防護動作。
步驟1:(假設Sendmail已安裝完成)
安裝MailScanner
從官方網站下載Stable的版本
Version 4.54.6-1 for RedHat, Fedora and Mandrake Linux (and other RPM-based Linux distributions)
然後
#tar zxvf MailScanner-4.56.8-1.rpm.tar.gz
#cd MailScanner-4.56.8-1
#./install.sh
等待......
接著修改/etc/MailScanner/MailScanner.conf裡的幾個設定
Max Children = 5
//這表示你開機時要執行多少個MAilScanner子程序,主記憶體在64MB以下建議設為1
Virus Scanning = yes
//開啟防毒功能
Virus Scanners = clamav
//您要使用的防毒軟體為何,這裡設為ClamAV
Use SpamAssassin = yes
# 如果你要使用SpamAssassin才開啟,但是你之前必須先安裝。
儲存
步驟 2:
安裝ClamAV
安裝之前先建立clamav帳號
#groupadd clamav
#useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
#cd /usr/local/src
下載ClamAV 穩定版本 http://www.clamav.net/stable.php
或直接下載下面的連結的版本
#wget http://nchc.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.6.tar.gz
#tar zxvf clamav-0.88.6.tar.gz
#cd clamav-0.88.6
#./configure --sysconfdir=/etc
#make
等待.......
#su -c "make install"
等待....
編輯Clamav的設定檔
#vim /etc/clamd.conf
1.在 Example 之前加個# (disable Example)
2.修改 "User clamav" to 為 "User root" 然後 enable.(Remove #)
再編輯freshclam設定檔
#vim /etc/freshclam.conf
1.一樣在 Example 前加上#.
2.拿掉 Check=24 前的#。可以修改數字,此為24小時更新一次。
步驟 3:
重起MailScanner
#service MailScanner stop
#chkconfig sendmail off
(停止sendmail在開機時自動執行的設定)
#killall sendmail
(刪除所有sendmail可能存在記憶體的process)
#service MailScanner start
安裝完成 ^^
參考網站:
http://cha.homeip.net/blog/archives/2005/01/sendmail_mailsc.html
http://www.neo.com.tw/archives/000323.html
Very long has not played Servers and website set of. Because the school requests each people all to have the person website, thereupon when stroll the internet has discovered Drupal . Moreover Drupal is choosed one of open source CMS final five announced, this lets my interest be soaring. Under the curiosity obligation, wants to have a look Drupal to have what differently with before other frame station set of, with Wordpress, Xoops, Mambo, Joomla and so on has differently what.
很久沒有玩SERVER及網站套件,由於學校要求每個人都得要有個人網站,於是乎在逛網站時發現了Drupal,而且Drupal被選為五大CMS之一,這更讓我興趣高昂。在好奇心的驅使下,想看看Druapl跟之前其他的架站套件有何不同,跟Wordpress 、Xoops 、Mambo 、Joomla 等有何不同。


