DRBL + PXE 開機在drbl模式中可以使用ntp自動更新時間
作者:cross 日期:2011-01-07 00:42
在 Drbl server上 安裝 ntp (yum install ntp)
重新佈署 dcs
/opt/drbl/sbin/dcs → more → re-deploy
再執行
/opt/drbl/sbin/drbl-client-service ntpd on
每次用戶端開啟的時候,就會自動透過NTP伺服器來校時
ref: http://drbl.nchc.org.tw/faq/fine-print.php?path=./1_DRBL_common/32_How_to_calibrate_client_time.faq#32_How_to_calibrate_client_time.faq
f2blog 怎麼移除首頁及本文的刪除項目
作者:cross 日期:2011-01-04 01:33
有時後會怕因為滑鼠或滾輪,一個不小心刪除了文章
如下圖所示,就是它
所以我想把它隱藏掉
我搜尋了f2blog
目錄下的關鍵字 "刪除"
找到 include/language/zh_tw.php中的關鍵 $strDelete="刪除";
我就再去找 $strDelete 有這變數的php檔
找到
include/read.inc.php # 首頁
include/content.inc.php # 本文
就是把檔裡面的這整行拿掉即可
<option value="delete"><?php echo $strDelete; ?></option>
以上
VirtualBox 虛擬機器 掛載分享目錄 Linux (續:沒有裝gcc)
作者:cross 日期:2011-01-03 22:15
續: http://ssorc.tw/rewrite.php/read-1089.html
如果在執行 ./VBoxLinuxAdditions-x86.run 後
看到
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.6 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules [失敗]
(Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers
可以查看 /var/log/vboxadd-install.log記錄訊息,得知原來沒有裝
/usr/src/kernels/2.6.9-89.33.1.EL-i686/scripts/gcc-version.sh: line 11: gcc: command not found
所以只要 yum install gcc 即可
ps: 也要記得裝 kernel-devel
Free Launch Bar 快速啟動程式的設定備註
作者:cross 日期:2011-01-03 10:55
Apache + mod_security 網站應用程式防火牆阻擋攻擊(WAF)
作者:cross 日期:2010-11-30 16:59
quote: http://www.modsecurity.org/documentation/modsecurity-apache/2.5.12/html-multipage/introduction.html
ModSecurity is a web application firewall (WAF). With over 70% of attacks now carried out over the web application level, organisations need all the help they can get in making their systems secure. WAFs are deployed to establish an increased external security layer to detect and/or prevent attacks before they reach web applications. ModSecurity provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring and real-time analysis with little or no changes to existing infrastructure.
安裝--
下載套件: http://www.modsecurity.org/download/
編譯
iScanner - 掃描你的網站有沒有惡意程式碼
作者:cross 日期:2010-11-24 13:58
http://iscanner.isecur1ty.org/
iScanner is a free open source tool lets you detect and remove malicious codes and web page malwares from your website easily and automatically. iScanner will not only show you the infected files in your server but it's also able to clean these files by removing the malware code ONLY from the infected files.
在 centos 環境下測試
需要安裝 ruby
簡單測試
./iscanner -R http://ssorc.tw





