Langsung ke konten utama

Ubuntu Bag 2

Setting DHCP Server

Buka terminal dan ketikan:
$ sudo apt-get install dhcp3-server


Kemudian edit file dhcp.conf.

$ sudo nano /etc/dhcp/dhcpd.conf
(edit pada bagian ini)
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.2 192.168.0.20;
  option domain-name-servers ns.kita.com;
  option domain-name "kita.com";
  option routers 192.168.0.1;
  option broadcast-address 192.168.0.255;
  default-lease-time 600;
  max-lease-time 7200;
}

 
Kemudian edit file isc-dhcp-server.

$ sudo nano /etc/default/isc-dhcp-server


(hilangkan tanda # dan tambahkan interface yang akan digunakan,misal eth1)
INTERFACES “eth1”


Kemudian lakukan restart dhcp server.
$ sudo nano /etc/init.d/isc-dhcp-server restart
 

Edit file hosts.
$ sudo nano /etc/hosts

127.0.0.1       localhost
192.168.0.1     ns             kita.com


Ganti hostname komputer.

$ sudo nano /etc/hostname
(isi dengan nama yang anda inginkan, disini saya isi ns) 

  ns



Aktifkan hostname baru.
$ sudo /bin/hostname -F /etc/hostname
$ hostname

    ns

Bersambug ke bag 3...

Komentar

Postingan populer dari blog ini

Instal Freecad di Ubuntu 12.04

Di terminal. $ sudo add-apt-repository ppa:freecad-maintainers/freecad-daily $ sudo apt-get update $ sudo apt-get install freecad freecad-doc http://www.freecadweb.org/

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

cahyana@Me:~/Downloads/codeblock$ sudo apt-get install -f Reading package lists... Done Building dependency tree       Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   libntdb1 libsidplayfp Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   codeblocks-contrib codeblocks-dev Recommended packages:   valgrind The following packages will be upgraded:   codeblocks-contrib codeblocks-dev 2 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. 15 not fully installed or removed. Need to get 3.273 kB of archives. After this operation, 1.711 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://id.archive.ubuntu.com/ubuntu/ trusty/universe codeblocks-dev i386 13.12-3 [350 kB] Get:2 http://id.archive.ubuntu.com/ubuntu/ trusty/universe codeblock...

Install VirtualBox4.3 di Debian 7.8 Wheezy

Langkah-langkahnyasbb: 1. Buka terminal kemudian ketikan perintah berikut: Menambahkan repo virtualbox ke file sources.list $ sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian wheezy contrib" >> /etc/apt/sources.list'  Menambahkan key repo virtualbox agar reponya bisa dipakai. $ wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -   Lakukan update $ sudo apt-get update Lakukan install $ sudo apt-get install virtualbox-4.3 virtualbox-dkms