2011年2月16日水曜日

Debian 快速設定

[2011/06/22 Update]
//Setting:
dpkg-reconfigure locales
vim /etc/hostname
vim /etc/hosts
vim /etc/sudoers


//Install:
apt-cdrom add -m
apt-get dist-upgrade
apt-get update
apt-get upgrade
apt-get install ia32-libs //64bit Only
apt-get install ia32-libs-gtk //64bit Only
apt-get install ntfs-3g
apt-get install pppoeconf //pppoeconf , pon dsl-provider , poff
apt-get install ibus
apt-get install scim-modules-table
apt-get install vim
apt-get install vim-gnome
apt-get install wine //env LC_ALL=ja_JP.UTF-8 wine
apt-get install ttf-wqy-microhei
apt-get install ttf-wqy-zenhei


//Depends:
//Rainlendar
apt-get install libcurl3
apt-get install tofrodos

//TrueCrypt
apt-get install cryptsetup
apt-get install fuse-utils

//VirtualBox
apt-get install libqt4-opengl

//Wine
apt-get install lib32nss-mdns //64bit Only


//Others:
//Java
apt-get install equivs
apt-get install unixodbc
apt-get install ia32-libs //64bit Only
dpkg -i *.deb
/*
ia32-sun-java6-bin //64bit Only
java-common
sun-java6-bin
sun-java6-fonts
sun-java6-jdk
sun-java6-jre
sun-java6-plugin
*/


//Services:
//DHCP
apt-get install dhcp3-server
vim /etc/network/interfaces
/*
auto eth0
iface eth0 inet static
address 192.168.10.50
netmask 255.255.255.0

auto eth0:0
iface eth0:0 inet static
address 192.168.10.254
netmask 255.255.255.0
*/
/etc/init.d/networking restart
vim /etc/default/isc-dhcp-server //INTERFACES="eth0"
vim /etc/dhcp/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 60000;
  max-lease-time 720000;
  host vm-debiandt {
    hardware ethernet 00:0C:29:96:A1:6A;
    fixed-address 192.168.10.55;
  }
  host vm-win7dt {
    hardware ethernet 00:0c:29:3c:16:5a;
    fixed-address 192.168.10.57;
  }
  host vm-ws2008r2dev {
    hardware ethernet 00:0c:29:39:fb:40;
    fixed-address 192.168.10.58;
  }
  host vm-debiandev {
    hardware ethernet 00:0c:29:6b:90:d4;
    fixed-address 192.168.10.59;
  }
  host vm-debian64dev {
    hardware ethernet 00:0c:29:51:a2:25;
    fixed-address 192.168.10.60;
  }
  host vm-win7 {
    hardware ethernet 00:0c:29:20:0f:71;
    deny booting;
  }
  host vm-ws2008r2 {
    hardware ethernet 00:0c:29:38:3e:90;
    deny booting;
  }
}
*/
/etc/init.d/isc-dhcp-server restart //vim /var/lib/dhcp/dhcpd.leases

//SSH
apt-get install 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

//SAMBA
apt-get install samba
dpkg -i *.deb //gadmin-samba
/*
netbios name =
workgroup =
hosts allow = 127. 192.168.0.
interfaces = 127.0.0.1/8 192.168.0.0/24
remote announce =
remote browse sync =
*/

0 件のコメント: