Vous êtes sur la page 1sur 3

############################ Ubuntu Server Edition ############################ 1. Instalasi Ubuntu Server 2.

Konfigurasi Rangkaian run command: vi /etc/network/interfaces --> set ip address edit menjadi : # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.222.222.100 netmask 255.255.255.0 gateway 10.222.222.1 run command: vi /etc/resolv.conf --> set dns server nameserver 10.251.3.2 nameserver 10.249.10.14 control command: /etc/init.d/networking start /etc/init.d/networking stop /etc/init.d/networking restart run command: ifconfig --> check ip address run command: ping 10.168.0.1 --> ping test 3. Access Server via SSH run command: ssh norman@10.222.222.100 --> ssh command or use ssh application as putty,ssh client, winscp dll 4. Update & Upgrade Server run command: run command: run command: run command: update_server run command: run command: run command: sudo su - --> get privilages as root cd /etc/apt --> goto /etc/apt directory mv sources.list sources.list_ori --> back up original sources.list wget http://10.222.222.1/ubuntu/sources.list --> download dari apt-get update --> get update apt-get upgrade -y --> upgrade all software reboot --> optional

5. Instalasi & Konfigurasi DHCP Server

run command: vi /etc/network/interfaces --> set ip address edit menjadi : # The loopback network interface auto lo iface lo inet loopback # The primary network interface (WAN) auto eth0 iface eth0 inet static address 10.222.222.100 netmask 255.255.255.0 gateway 10.222.222.1 # The second network interface (LAN) auto eth1 iface eth1 inet static address 192.168.1.1 netmask 255.255.255.0 run command: apt-get install -y dhcp3-server --> install run command: vi /etc/default/dhcp3-server --> configure dhcp interface edit menjadi : INTERFACES="eth1" run command : vi /etc/dhcp3/dhcpd.conf edit menjadi : ddns-update-style none; default-lease-time 600; max-lease-time 7200; option option option option option subnet-mask 255.255.255.0; broadcast-address 192.168.1.255; routers 192.168.1.1; domain-name-servers 192.168.1.1, 10.251.3.2; domain-name skkj.moe.edu.my;

log-facility local7; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.200; } run run run run command command command command : : : : /etc/init.d/isc-dhcp-server /etc/init.d/isc-dhcp-server /etc/init.d/isc-dhcp-server /etc/init.d/isc-dhcp-server restart start stop status

6. Instalasi & Konfigurasi NAT Server run command: vi /etc/rc.local --> enable routing dari eth1 ke eth0 edit menjadi: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE exit 0 run command : vi /etc/sysctl.conf --> add forward ipv4 packet edit menjadi : net.ipv4.ip_forward=1 run command: reboot --> to enable NAT

7. Instalasi & Konfigurasi Proxy Server run command : sudo apt-get install squid3 --> install squid3 run command : vi /etc/squid3/squid.conf --> configure squid.conf edit dengan menambah : http_access allow local_net acl local_net src 192.168.1.0/255.255.255.0 run command: /etc/init.d/squid start run command: /etc/init.d/squid stop run command: /etc/init.d/squid restart 8. Instalasi & Konfigurasi File Server # Optional 9. Instalasi & Konfigurasi Web Server (Apache, Mysql, PHP) # Optional

Vous aimerez peut-être aussi