Posts

Showing posts from September, 2008

How to setup TFTP server on Debian

Step 1: Installation of tftpd package (server) and client aptitude install tftpd aptitude install tftp Step 2: Creating Directory and setting permission mkdir /tftpboot chmod 777 /tftpboot chown imran.imran /tftpboot Step 3: Checking and editing(if required) the /etc/inetd.conf Correct the location of director from /srv/tftp to /tftpboot tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot Don't forget to restart. It is is tricky to restart the tftpd, you have to restart inetd, but in Debian it is openbsd-inetd cd /etc/init.d ./openbsd-inetd restart Step 4: Testing Type following tftp 127.0.0.1 tftp> Step 5: Security you can edit /etc/hosts.allow and /etc/hosts.deny for restriction. That's it. Further doc http://www.debianhelp.co.uk/tftp.htm http://www.onlamp.com/pub/a/bsd/2003/06/05/FreeBSD_Basics.html

How to Setup Central Syslog server in Debian Etch

As it is installed in debian in OS installation. Step 1: Stop Sysllog server. /etc/init.d/sysklogd stop Step 2: Start remote acception edit /etc/default/syslogd change SYSLOGD="" to "-r" Step 3: Create a file to log remote log messages (optional) edit /etc/sylogd.conf *.*;auth,authpriv.none to *.*;auth,authpriv,local0.none append at the end the path to file local0.* -/var/log/sxlog Step 4: Restart the syslog server /etc/init.d/sysklogd start a meesage with "remote reception" by doing tail -f /var/log/messages confirms. Setp 5: Test by viewing the file cat /var/log/sxlog Further info http://news.softpedia.com/news/Setting-Up-a-Central-Syslog-Server-44063.shtml