root shell auditing and syslog entry for all commands of shell

2009-10-08 2 min read Fedora Linux

A lot of times there is a need to log all the messages and the output of the shell to the file or syslog. Sometimes I need that for some user too. script command can be used to do this but then sometimes you cannot tell the user the session is logged or you can ask the user to run this command and it should be automatically done. And sometimes there is a need put the output in the syslog so that the root user has more control and also mail for syslog is sufficient to be analyzed rather than looking for other files. Finally I found this :

Continue reading

Boot Linux Over HTTP With boot.kernel.org (BKO)

2009-10-01 1 min read Linux Uncategorized

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
  

<font SIZE="6"><a HREF="http://www.debianhelp.org/node/15823">Boot Linux Over HTTP With boot.kernel.org (BKO)

This tutorial shows how you can <a HREF="http://www.howtoforge.com/boot-linux-over-http-with-boot.kernel.org-bko">boot Linux over HTTP with boot.kernel.org (BKO). All that users need is Internet connectivity and a small program (gpxe) to boot the machine. This gpxe program provides network booting facility. BKO allows you to boot into the following distributions: Debian, Ubuntu, Damn Small Linux, Knoppix, Fedora. BKO provides gpxe images for USB sticks, CDs, and also for floppies, i.e., you can boot from a USB sticks, a CD, or a floppy.

Continue reading

7-deadly-linux-commands

2009-09-26 3 min read Linux

You want to learn about Linux, start from learning what not to do. <a href="http://www.junauza.com/2008/11/7-deadly-linux-commands.html" target="_blank">Here is one for the starting point.

So moral of the story is if someone asks you to do something and you dont know what that command will do, then dont do it. If your inner thing does not allow you not to do it, do it with all the care you can take. May be a backup and most importantly &#8221;DONT USE ROOT LOGIN IF U DONT HAVE REASON TO USE IT&#8221;. BTW there are couple of more articles on these kind of advices but the best way to save yourself is to educate yourself on the outcome of the command you are executing.

Continue reading

Configure sendmail for SMTP relay with your ISP

2009-09-26 4 min read Linux

http://cri.ch/linux/docs/sk0009.html

I have copied the document from the above link without modifications

Author:  Sven Knispel
Updated:  05-01-2005
Feedback welcome: <a href="mailto:linux@cri.ch">linux@cri.ch
Free service provided by: <a set="yes" linkindex="2" href="http://cri.ch/">www.cri.ch

The following article explains the setup of sendmail for forwarding mails to your ISP&#8217;s smtp server.
It is assumed that you have sendmail up-to-date and configured properly.
_Note: this setup does not work properly for smtp-server using

  <td>
    <div class="text codecolorer">
      SASL
    </div>
  </td>
</tr>
1

(e.g. like

Continue reading

Diff Linux command — Find the difference in files the easier way.

2009-09-17 2 min read Linux

In Linux you can use diff command to find the differences in file.

What is interesting is that you can use &#8221;diff -u&#8221; to list the differences with &#8217;+&#8217; and &#8217;-&#8217; rather than sometimes confusing &#8217;>&#8217; and '<&#8217;.

Running the regular diff between two text files to see the differences is not so elegant for the human eye to decode. Luckily there are plenty of tools out there to make this easy.

Continue reading
Older posts Newer posts