![]() | ![]() |
![]() |
![]() |
![]() |
◆ WWW | ◆ BBS | ◆ Kernel | ◆ IPMasq | ◆ Gopher | ◆ DNS |
先到各大 FTP 站抓 Apache 的原始碼,如:apache1.2b8.tgz 將抓到的程式碼解到 /usr/local/etc下: cd /usr/local/etc tar zxvf /usr/local/src/apache1.2b8.tgz ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^改成你原始碼擺放的位置 mv apache_1.2b8 httpd 修改 Configuration 將最後一行 Module proxy_module 的 # 拿掉,讓你的Apache可以成為一部PorxyServer Configure; make mv httpd ../ vi /etc/rc.d/rc.local 在最後一行加入 echo "Starting Apache WWW Server......" /usr/local/etc/httpd/httpd 存檔,這樣以後Linux啟動時就可以提供WWW服務了! cd /usr/local/etc/httpd/conf mv access.conf-dist access.conf mv httpd.conf-dist httpd.conf mv srm.conf-dist srm.conf 修改 httpd.conf,access.conf,srm.conf 將自己設計網頁資料放入/usr/local/etc/httpd/htdocs中 首頁命名為index.html |
◆ WWW | ◆ BBS | ◆ Kernel | ◆ IPMasq | ◆ Gopher | ◆ DNS |
vi /etc/groups 加入 bbs::99:bbs,bbsuser,bbsroot adduser bbsroot adduser bbs adduser bbsuser vi /etc/passwd 檢查下面三行是否相符: bbsroot:Aji%^bc3:9990:99:BBS Admin:/home/bbsroot:/bin/bash ^^^^^^^^可不一樣 ^^^^^^^^可不一樣 bbs::9999:99:BBS Login User:/home/bbs:/home/bbs/bin/bbsrf ^^^^^^^^^^^^^^可不一樣 bbsuser:Aji%^bc3:9999:99:BBS User:/home/bbs:/bin/bash ^^^^^^^^ ^^^^^^^^可不一樣 su bbsroot cd ~bbsroot tar zxvf Firebird2.51.tar.gz cd bbs_src cd CONFIG configure cd .. vi Install.sh 修改 Install to //bin/... ===> Install to /usr/bin/... vi Makefile 修改 Install = //bin/... ===> Install = /usr/bin/... 修改 menu.ini 及 maintain.c ,main.c make su root make install ;make installchatd |
◆ WWW | ◆ BBS | ◆ Kernel | ◆ IPMasq | ◆ Gopher | ◆ DNS |
|
◆ WWW | ◆ BBS | ◆ Kernel | ◆ IPMasq | ◆ Gopher | ◆ DNS |
利用 IP Masqerade 就可以同時讓多部電腦透過 Linux 共享一部數據機連上Internet +-------+ +---- I n t e r n e t --+-------+-------+------+ Linux +-----+#####+---------+/ PC PC PC +-------+ Modem Win95 Win31 DOS IP Masquerade 重新編譯 Linux 2.0.xx 系統核心: cd /usr/src/linux make config 其中幾項一定要回答 [Y]es CONFIG_EXPERIMENTAL CONFIG_MODULES CONFIG_NET CONFIG_FIREWALL CONFIG_INET CONFIG_IP_FORWARD CONFIG_IP_FIREWALL CONFIG_IP_MASQUERADE CONFIG_IP_ALWAYS_DEFREG CONFIG_DUMMY make dep ;make clean;make zlilo ;make modules ;make modules_install vi /etc/rc.d/rc.local 加入: echo "Starting IPMasq......" /sbin/depmod -a /sbin/modprobe ip_masq_ftp.o /sbin/modprobe ip_masq_raudio.o /sbin/modprobe ip_masq_irc.o ipfwadm -F -p deny ipfwadm -F -a m -S xxx.xxx.xx.0/24 -D 0.0.0.0/0 |
◆ WWW | ◆ BBS | ◆ Kernel | ◆ IPMasq | ◆ Gopher | ◆ DNS |
|
◆ WWW | ◆ BBS | ◆ Kernel | ◆ IPMasq | ◆ Gopher | ◆ DNS |
如果你們的領域名稱 your.edu.tw.,網路號碼192.168.1.0 三台電腦的 IP 和 HostName 分別是: 192.168.1.1 == linux1.your.edu.tw == www.your.edu.tw == mail.your.edu.tw 192.168.1.2 == office1.your.edu.tw 192.168.1.3 == office2.your.edu.tw joe /etc/named.boot 新增下面幾行: directory /etc/namedb primary your.edu.tw your.hosts primary 1.168.192.IN-ADDR.ARPA your.rev primary 0.0.127.IN-ADDR.ARPA named.local cache named.ca mkdir /etc/namedb joe /etc/namedb/your.hosts 新增下面幾行: $ORIGIN your.edu.tw. @ IN SOA linux1.your.edu.tw. sysop.your.edu.tw. ( 1 ;Serail 43200 ;Refresh 3600 ;Retry 3600000 ;Expire 2592000 ;Minimum ) IN NS linux1.your.edu.tw. IN MX 10 linux1.your.edu.tw. localhost IN A 127.0.0.1 linux1 IN A 192.168.1.1 www IN CNAME linux1.your.edu.tw. mail IN CNAME linux1.your.edu.tw. office1 IN A 192.168.1.2 office2 IN A 192.168.1.3 joe /etc/namedb/your.rev 新增下面幾行: $ORIGIN 1.168.192.IN-ADDR.ARPA. @ IN SOA linux1.your.edu.tw. sysop.your.edu.tw. ( 1 ;Serail 3600 ;Refresh 300 ;Retry 3600000 ;Expire 3600 ;Minimum ) IN NS linux1.your.edu.tw. 1 IN PTR linux1.your.edu.tw. 2 IN PTR office1.your.edu.tw. 3 IN PTR office2.your.edu.tw. joe /etc/namedb/named.local 新增下面幾行: $ORIGIN 0.0.127.IN-ADDR.ARPA. @ IN SOA linux1.your.edu.tw. sysop.your.edu.tw. ( 1 ;Serail 360000 ;Refresh 300 ;Retry 3600000 ;Expire 3600 ;Minimum ) IN NS linux1.your.edu.tw. 1 IN PTR localhost. /etc/namedb/named.ca joe /etc/rc.d/rc.inet2 找到 # # Start the NAMED/BIND name server # if [ -f ....... # echo ....... # ${NET ...... # fi 將 if 到 fi 這四行的註解(#號)拿掉,以後只要進入 Linux 就自動提供 DNS 服務了! 以後如果有更動上述的幾個資料庫,記得重新啟動 named 或是執行 named.reload 這樣資料才能更新 |