安裝Debian Sarge

Install Debian Sarge In My Computer -
Jeffrey


安裝Debian Sarge

首先下載 Debian Sarge Net Install Image 可於 http://www.debian.org/CD/netinst/

安裝過程中由於我是用 vdsl modem 上網,而我這隻Sarge 的 Install Disk 不懂得自行上網,故此我要自行連上網站。

當安裝到一段時間,個系統會重新開機,輸入root 的密碼及建立一個用戶之後,會有一個清單讓你選擇deb server時

按下 Alt-Ctrl-F2 會出現一個新console 並且 Login As Root


pppoeconf




輸入broadband username 和 password


vi /etc/network/interface



iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
boardcast 192.168.10.255

auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider



poff -a ; pon dsl-provider

如果網卡編號不正常,可以更改
/etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


這裏改名



Rename Network Interface using udev in Debian

用 ifconfig 來查看連不連上網。

按下 Alt-Ctrl-F1 繼續未完成的安裝程序。




建立安全網路
由於我的電腦主要用來建立個人網站和File Server,所以我只用建立有限度的連線。

Internet ---- Debian Sarge ----- Home Network

True IP 192.168.10.1 192.168.10.0




首先我要設定好個網絡卡,照上面的 /etc/network/interfaces 設定即可。而要啟動網絡卡,只要

ifup eth1



建立有效防火牆



Hard Core /tmp


  1. Check Server for hackers

  2. Hardcore /tmp


cd /usr/bin/
chmod 000 cc gcc c++ perlcc yacc *c++ *g++


在Debian 中看中文

#dpkg-reconfigure locales

Choose the following locales

* en_US ISO-8859-1
* zh_CN GB2312
* zh_CN.GBK GBK
* zh_CN.UTF-8 UTF-8
* zh_TW BIG5
* zh_TW.UTF-8 UTF-8


#apt-get install ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gbsn00lp

Link:
Chinese Debian Mini howto




建立sshd 連線





建立和Windows 溝通的橋樑 - Samba
Share Mode
User Mode


建立LAMP - Linux Apache Mysql PHP


apt-get install apache2 mysql-server libapache2-mod-php4 php4-mysql php4-common




安裝 ftp server - Proftpd - 04/2010
安裝ftp server - Proftpd



安裝電郵程式 - Postfix + Amavis + ClamAV + Spamassassin + spamcop.net


安裝Transparent Proxy - Squid + squidGuard

Comments

Popular Posts