manual ubuntu server 20111123

Upload: aniza-idris

Post on 06-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Manual Ubuntu Server 20111123

    1/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 interfaceauto loiface lo inet loopback

    # The primary network interfaceauto eth0iface eth0 inet static

    address 10.222.222.100netmask 255.255.255.0

    gateway 10.222.222.1

    run command: vi /etc/resolv.conf--> set dns server

    nameserver 10.251.3.2nameserver 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 addressrun command: ping 10.168.0.1 --> ping test

    3. Access Server via SSH

    run command: ssh [email protected] --> ssh command

    or

    use ssh application as putty,ssh client, winscp dll

    4. Update & Upgrade Server

    run command: sudo su - --> get privilages as rootrun command: cd /etc/apt --> goto /etc/apt directoryrun command: mv sources.list sources.list_ori --> back up original sources.listrun command: wget http://10.222.222.1/ubuntu/sources.list --> download dari

    update_serverrun command: apt-get update --> get updaterun command: apt-get upgrade -y --> upgrade all softwarerun command: reboot --> optional

    5. Instalasi & Konfigurasi DHCP Server

  • 8/3/2019 Manual Ubuntu Server 20111123

    2/3

    run command: vi /etc/network/interfaces --> set ip addressedit menjadi :

    # The loopback network interfaceauto loiface lo inet loopback

    # The primary network interface (WAN)

    auto eth0iface eth0 inet staticaddress 10.222.222.100netmask 255.255.255.0gateway 10.222.222.1

    # The second network interface (LAN)auto eth1iface eth1 inet static

    address 192.168.1.1netmask 255.255.255.0

    run command: apt-get install -y dhcp3-server --> install

    run command: vi /etc/default/dhcp3-server --> configure dhcp interfaceedit 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 subnet-mask 255.255.255.0;

    option broadcast-address 192.168.1.255;option routers 192.168.1.1;option domain-name-servers 192.168.1.1, 10.251.3.2;option 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 command : /etc/init.d/isc-dhcp-server restartrun command : /etc/init.d/isc-dhcp-server start

    run command : /etc/init.d/isc-dhcp-server stoprun command : /etc/init.d/isc-dhcp-server status

  • 8/3/2019 Manual Ubuntu Server 20111123

    3/3

    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 packetedit 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 squid3run command :vi /etc/squid3/squid.conf --> configure squid.confedit 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 startrun command: /etc/init.d/squid stoprun command: /etc/init.d/squid restart

    8. Instalasi & Konfigurasi File Server # Optional

    9. Instalasi & Konfigurasi Web Server (Apache, Mysql, PHP) # Optional