Category Archives: FreeBSD - Page 4

FreeBSD – Configure sendmail masquerading

Notes on masquerading your domain name , I needed that since one SMS gateway will not accept my nagios@server.domain.com emails , this setting allowed nagios to send the email as nagios@domain.com

Read more »

How to update Timezone info in FreeBSD

1. fetch ftp://elsie.nci.nih.gov/pub/tzdata2007a.tar.gz
2. mkdir timezone && cd timezone && tar zxvf ../tzdata2007a.tar.gz
3. sudo tar cf /usr/share/zoneinfo.tar /usr/share/zoneinfo
4. sudo zic northamerica ( or whatever timezone you are intrested in ) 
5. zdump -v /usr/share/zoneinfo/America/New_York  | grep 2007

Copy Directory Structure Using Tar

Need to copy or archive of directory structure without any files ? this worked for me : 

tar cnpf dir.tar `find . -type d`