2007年9月16日 星期日

【Debian】重灌後預計要掛上的套件

  • apache2
  • php5
  • mysql
  • openvpn
  • mldonkey
  • samba
  • hostapd
  • madwifi-source
  • madwifi-tools
  • bridge-utils
  • dhcp3
  • bind
  • iproute2
  • pppoeconf
  • vim

【Debian】預定的硬碟規劃

目前計畫裝上新買的seagate 320G(SATAII) 企業版 及之前桌機用的 seagate 80G(SATA)
並將原本的主硬碟 WD 40G(IDE) 淘汰,動物園 Seagate 160G(IDE)則繼續使用

所以目前硬碟架構為:
  • Seagate 320G 企業版 (SATAII)
    • SWAP : 1G
    • /var : 10G
    • /usr : 10G
    • / : 10G
    • /home : 89G
    • /shared_data : 200G
  • Seagate 80G (SATA)
    • /anime_dock : 80G
  • Seagate 160G (IDE)
    • /p2p : 160G

2007年9月15日 星期六

【Debian】madwifi以AP模式運作之設定

執行 wlanconfig ath0 create wlandev wifi00 wlanmode ap 即可

【Debian】bridge 安裝與設定

.安裝bridge-utils套件
執行 apt-get install bridge-utils 即可

.設定bridge
執行下列步驟:
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 ath0

之後執行ifup br0 即可啟動bridge

PS. 記得要先至/etc/network/interfaces中做好br0的設定

【Debian】interfaces設定

#primary network interface (eth0) 對外介面
auto eth0
iface eth0 inet static
address 192.168.100.1
netmask 255.255.255.0
broadcast 192.168.100.255
network 192.168.100.0
gateway 192.168.100.1

#bridge interface (連接eth0及ath0)
auto br0
inface br0 inet static
address 192.168.1.254
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
bridge_port eth1 ath0

【Debian】madwifi 快速安裝法

執行 vi /etc/apt/sources.list

依自己所要的版本加入:
# Unstable
deb ftp://ftp.au.debian.org/debian unstable main contrib non-free
deb-src ftp://ftp.au.debian.org/debian unstable main contrib non-free

# Testing
deb ftp://ftp.au.debian.org/debian testing main contrib non-free
deb-src ftp://ftp.au.debian.org/debian testing main contrib non-free

# Stable
deb ftp://ftp.au.debian.org/debian stable main contrib non-free
deb-src ftp://ftp.au.debian.org/debian stable main contrib non-free

存檔離開後執行下列步驟
apt-get update
apt-get install madwifi-source madwifi-tools
m-a prepare
m-a a-i madwifi

以上完成即可產生apt_pci module

最後執行 modprobe ath_pci 將module掛上就完成安裝囉!!

PS. 執行 echo ath_pci >> /etc/modules, 在下次重開機時就會自動將ath_pci掛載好囉