Friday 20 June 2014

Install TFTP Server in Ubuntu 14.04


1. Install the package.

$ sudo apt-get install tftpd-hpa

2. Edit config file as follows.

$ sudo vi /etc/default/tftpd-hpa

# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-s -c -l"

Note: -l for listening all time this avoided the timeout issue, -c to create files in tftfp folder.

3. Create TFTP folder.

sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot

4. Finally restart the app to apply new configuration. 

sudo service tftpd-hpa restart

Monday 14 April 2014

See whats there in root partition





When we check root partition for whats eating up the space, we will get all other partitions details,

 to avoid this..

du -sh --exclude=tmp --exclude=var --exclude=usr --exclude=home --exclude=boot --exclude=proc *

this will exclude the tmp, var, usr, home, boot, proc from root partition...