2010年10月6日水曜日

Debian 快速設定流程

[2011/02/13 Update]
//Terminal
apt-cdrom add -m
apt-get dist-upgrade
visudo //sudo
vim /etc/sudoers
vim /etc/hostname
vim /etc/hosts


//System -> Administration -> Add/Remove Applications
Search "pppoe"
ADSL/PPPOE configuration
pppoeconf //Terminal
pon dsl-provider //Terminal
poff //Terminal


//System -> Administration -> Syanaptic Package Manager
Search "amsn"
Mark for Installation "amsn"

Search "ia32-libs"
Mark for Installation "ia32-libs"

Search "locales"
locales -> Package -> Configure...
dpkg-reconfigure locales //Terminal

Search "ntfs-3g" //NTFS
Mark for Installation "ntfs-3g"

Search "scim"
Mark for Installation "scim-modules-table"
im-switch -s scim //Terminal

Search "vim"
Mark for Installation "vim"

Search "wine"
Mark for Installation "wine"


Depends:
 //Rainlendar
Search "libcurl3"
Mark for Installation "libcurl3"
Search "tofrodos"
Mark for Installation "tofrodos"

 //TrueCrypt
Search "cryptsetup"
Mark for Installation "cryptsetup"
Search "fuse-utils"
Mark for Installation "fuse-utils"

//VirtualBox
Search "libqt4-opengl"
Mark for Installation "libqt4-opengl"

//wine
Search "lib32nss-mdns"
Mark for Installation "lib32nss-mdns"


Others:
//Flash Player
cp libflashplayer.so /usr/lib/iceweasel/plugins
cp libflashplayer.so /opt/firefox/plugins

//Java
Search "equivs" //java-common
Mark for Installation "equivs"
Search "unixodbc" //sun-java6-bin
Mark for Installation "unixodbc"
Search "ia32-libs" //ia32-sun-java6-bin
Mark for Installation "ia32-libs"

dpkg -i *.deb
ia32-sun-java6-bin
java-common
sun-java6-bin
sun-java6-jre
sun-java6-plugin


Services:
//DHCP
Search "dhcp3-server"
Mark for Installation "dhcp3-server"

vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.10.50
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 192.168.10.254
netmask 255.255.255.0

/etc/init.d/networking restart

vim /etc/default/dhcp3-server
INTERFACES="eth1"

vim /etc/dhcp3/dhcpd.conf
# option definitions common to all supported networks...
# option domain-name "example.org";
# option domain-name-servers ns1.example.org, ns2.example.org;

# default-lease-time 600;
# max-lease-time 7200;

# A slightly different configuration for an internal subnet.
subnet 192.168.10.0 netmask 255.255.255.0 {
  range 192.168.10.100 192.168.10.200;
  option domain-name-servers 168.95.192.1, 168.95.1.1;
  option domain-name "belldandy.org";
  option routers 192.168.10.254;
  option broadcast-address 192.168.10.255;
  default-lease-time 600;
  max-lease-time 7200;
  host vm-win7s {
    hardware ethernet 00:0c:29:61:6c:9f;
    fixed-address 192.168.10.57;
  }
  host vm-ws2008r2s {
    hardware ethernet 00:0c:29:63:c8:a8;
    fixed-address 192.168.10.58;
  }
  host vm-win7 {
    hardware ethernet 00:0c:29:9b:9c:4c;
    deny booting;
  }
  host vm-ws2008r2 {
    hardware ethernet 00:0c:29:c1:fe:cc;
    deny booting;
  }
}

/etc/init.d/dhcp3-server restart
vim /var/lib/dhcp3/dhcpd.leases

//SSH
Search "ssh"
Mark for Installation "ssh"

vim /etc/ssh/sshd_config
Port 22
PermitRootLogin no

vim /etc/hosts.allow
sshd:192.168.0.0

vim /etc/hosts.deny
sshd:all

/etc/init.d/ssh restart
參考資料:
http://wiki.debian.org.hk/w/Connect_Internet_with_PPPoEConf
http://wiki.debian.org.hk/w/Setup_DHCP_server
http://nabeko-notebook.blogspot.com/2007/08/dhcp-server.html

0 件のコメント: