Sunday, April 27, 2014

My dhcpd setting

Sometimes I need to be a dhcp server to provide the ip, so my setting is listed below,

1. use isc-dhcp-server as the dhcp server.

2. set the dhpc server ip as 192.168.1.1

3. in /etc/default/isc-dhcp-server
INTERFACES="eth0"

4. in /etc/dhcp/dhcpd.conf
default-lease-time 60000;
max-lease-time 72000;
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.2 192.168.1.200;
  option routers 192.168.1.1;
}

5. restart the service
/etc/init.d/isc-dhcp-server restart

Thursday, April 10, 2014

My kali fstab

Because I install Kali into the flash disk like sandisk CZ80. To extend the nand flash life cycle, I made some changes to the fstab listed below,

UUID=6dea9b74-08a6-4377-bcc8-a59d80d19dbc /               ext4    noatime,nodiratime,discard,errors=remount-ro 0       1
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
tmpfs   /tmp       tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/spool tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/tmp   tmpfs   defaults,noatime,mode=1777   0  0
tmpfs   /var/log   tmpfs   defaults,noatime,mode=0755   0  0

Reference:
http://yblog.org/archive/index.php/11734