what the blog?

{upgrade in progress..}

Apache Virtural Host with dynamic ip address

1. Configure your apache reading the httpd.conf with external file. Append these line into /etc/httpd/conf/httpd.conf include /etc/httpd/conf/virtualhost include /etc/httpd/conf/mydomainhost 2. Configure the update script running with cron Put a script into /etc/cron.daily/rc.updatehttpd ############################################### #!/bin/sh HTTPADDR=”`ifconfig ppp0 |grep ‘inet addr’|awk ‘{print $2}’|sed -e ‘s/.*://’`” HOSTFILE=”/etc/httpd/conf/mydomainhost” echo “NameVirtualHost $HTTPADDR:80” > /etc/httpd/conf/virtualhost echo “” > $HOSTFILE echo “DocumentRoot…

Continue Reading

Configure CVS Server on Redhat

http://www.xinetd.org/faq.html#cvss Q. How do I setup a cvs server with xinetd? A. A user wrote in with this suggestion: inetd cvspserver stream tcp nowait root /usr/bin/cvs cvs –allow-root=/home/pauljohn/cvsroot –allow-root=/home/pauljohn/cvsmisc pserver xinetd If you want to make the same work under xinetd, you save a config file in /etc/xinetd.d called cvspserver, (where the last line tells…

Continue Reading

ipchains – NAT Sample

#!/bin/sh # # # Invoked from /etc/rc.d/init.d/firewall. # chkconfig: – 60 95 # description: Starts and stops the IPCHAINS Firewall \ # used to provide Firewall network services. # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. if [ ${NETWORKING} = “no” ] then exit 0…

Continue Reading

RedHat UPnP How to

如何於NAT下進行msn的語音通訊(UPnP) 安裝環境: RedHat 8.0 + NAT 環境以架設完成 安裝軟體: Intel UPnP SDK(upnpsdk-1.0.4.tar.gz)(http://upnp.sourceforge.net/) Linux-IGD(linuxigd-0.92.tgz)(http://linux-igd.sourceforge.net/) 安裝步驟 1.在安裝Intel UPnP SDK前,修改tar開後之檔案內容 tar zxvf upnpsdk-1.0.4.tar.gz cd upnpsdk-1.0.4 vi upnpsdk-1.0.4/src/ssdp/ssdplib.c 修改line 406 SelfAddr.sin_addr.s_addr = inet_addr(SSDP_IP); 修改為 SelfAddr.sin_addr.s_addr = htonl(INADDR_ANY); 2.安裝UPNP SDK make ; make install 3.安裝 Linux-IGD tar zxvf linuxigd-0.92.tgz cd linuxigd-0.92 make ; make install 4.建一個link ln -s /sbin/iptables /usr/sbin/iptables 5.建立debug…

Continue Reading

Apache + Mod SSL – Installing your Web Server Certificate

Apache + Mod SSL Installing your Web Server Certificate Copy the certificate from the body of the email and paste it into a text editor (such as notepad) to create text files. 1. Copy both certificates to the Apache server directory in which you plan to store your certificates (by default: /usr/local/apache/conf/ssl.crt/ or /etc/httpd/conf/ssl.crt/). Note:…

Continue Reading

SMTP AUTH: RedHat 7.3 上 sendmail + cyrus-sasl

## RedHat 7.3 上 sendmail + cyrus-sasl 啟動方式 在使用REDHAT 7.3時試sendmail+SASL 的一些紀錄,稍作整理希望能有所幫助 在RED HAT 7.3 中的 套件中已含有 cyrus-sasl 套件 若在安裝RH7.3時 即有以下套件,若未安裝,可至RH7.3安裝光碟中尋找 sendmail 8.11.6 cyrus-sasl 1.5.24 procmail 3.21 PS: 可使用 rpm -qa | grep ‘套件名稱’ 查詢系統中是否已安裝 rpm 檔安裝方式不在纍述 確認無誤後,可依以下方式試試看了喔 [Step 1] 檢查 /usr/lib/sas/Sendmail.conf 是否出現 pwcheck_method:shadow 這一行 若無請以下列方式補上 cat > /usr/lib/sasl/Sendmail.conf pwcheck_method: shadow # 按 ctrl+D 便可跳出 [Step…

Continue Reading

讓終端機正確顯示輸入的 Unicode 中文

讓終端機正確顯示輸入的 Unicode 中文 昨天蘋果的技術支援網站貼出一篇標題為「How to Use High-Bit Characters in Terminal」的文章,文中說明要如何調整終端機的設定,以避免終端機將輸入資料視為是 7bit ASCII 碼,使得末位第 8 位元被截去,造成資料變成亂碼。在該文文末,有一段註明…… 請按下閱讀全文就可詳讀此篇文章… (全文開始) 昨天蘋果的技術支援網站貼出一篇標題為「How to Use High-Bit Characters in Terminal」的文章,文中說明要如何調整終端機的設定,以避免終端機將輸入資料視為是 7bit ASCII 碼,使得末位第 8 位元被截去,造成資料變成亂碼。 在該文文末,有一段註明,大意是:在開啟此項功能後,使用 tcsh/bash shell(殼層,系統的使用者界面,讓使用者能透過螢幕和鍵盤與電腦做文字上的溝通。Mac OS X 預設使用 tcsh。)的使用者,在命令列輸入的 8bit 字元,會以溢位資訊的形式顯示,僅 zsh shell 會以正常字體顯示。 這就是 bash shell 輸入中文後的樣子。 而下面是一則小技巧,讓 bash shell(請注意,是 bash,不是系統預設的 tcsh)能像 zsh shell 一樣以正常字體顯示輸入的文字。由於 Mac OS…

Continue Reading

Configure CVS Server on Redhat

http://www.xinetd.org/faq.html#cvssQ. How do I setup a cvs server with xinetd? A. A user wrote in with this suggestion: inetd cvspserver stream tcp nowait root /usr/bin/cvs cvs –allow-root=/home/pauljohn/cvsroot –allow-root=/home/pauljohn/cvsmisc pserver xinetd If you want to make the same work under xinetd, you save a config file in /etc/xinetd.d called cvspserver, (where the last line tells it…

Continue Reading

1 4 5 6