瀏覽模式: 普通 | 列表

在 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

標籤: drbl pxe ntp

f2blog 怎麼移除首頁及本文的刪除項目

有時後會怕因為滑鼠或滾輪,一個不小心刪除了文章
如下圖所示,就是它

attachments/201101/6384128794.png

所以我想把它隱藏掉
我搜尋了f2blog目錄下的關鍵字 "刪除"
找到 include/language/zh_tw.php中的關鍵 $strDelete="刪除";
我就再去找 $strDelete 有這變數的php檔
找到
include/read.inc.php   # 首頁
include/content.inc.php  # 本文

就是把檔裡面的這整行拿掉即可

<option value="delete"><?php echo $strDelete; ?></option>

以上

標籤: f2blog 刪除

續: 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 快速啟動程式的設定備註

1. Free Launch Bar 設定

attachments/201102/0403092033.jpg

[閱讀全文]

新年快樂

新年快樂
標籤: 新年快樂

mod_security 是 Apache的一個模組,可以提供入侵偵測及防禦,它就如同是web應用程式的防火牆可以用來抵擋知名及不知名的攻擊如 SQL injection attacks, cross-site scripting, path traversal attacks。


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 - 掃描你的網站有沒有惡意程式碼

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

[閱讀全文]