Sendmail host map failure issue with sendmail.

2010-01-07 1 min read Linux

I was having this issue for long time with sendmail and not getting time to fix this. Finally today I found the solution.
<span style="font-weight: bold;">define(`confBIND_OPTS&#8217;, `WorkAroundBrokenAAAA&#8217;)dnl
Add the above line in the sendmail.mc file and rebuild sendmail.cf.

Done. Quite simple but really took some time for me to fix.<span style="font-weight: bold;">
Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/Linux" rel="tag">Linux, <a class="performancingtags" href="http://technorati.com/tag/sendmail" rel="tag">sendmail, <a class="performancingtags" href="http://technorati.com/tag/AAAA" rel="tag">AAAA, <a class="performancingtags" href="http://technorati.com/tag/failure" rel="tag">failure

Continue reading

Display the output of a command from the first line until the first instance of a regular expression.

2010-01-04 0 min read Bash Linux
\"Screenshot
Image via Wikipedia

| perl -n -e 'print "$_" if 1 … /«a class="zem_slink freebase/en/regular_expression" title="Regular expression" rel="wikipedia" href="http://en.wikipedia.org/wiki/Regular_expression">regex>/;# This <a class="zem_slink freebase/en/command_line_interface" title="Command-line interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command-line_interface">command line will display the output of , from the first line of output, until the first time it sees a <a class="zem_slink freebase/en/pattern_matching" title="Pattern matching" rel="wikipedia" href="http://en.wikipedia.org/wiki/Pattern_matching">pattern matching .

Continue reading

Finding all the executables/binary in Linux rpm based distro.

2010-01-03 1 min read Linux

I have been thinking about this for quite sometime now, how to find all the executables on the linux system. One of the way is to do a &#8221;ls&#8221; on all the directories in the PATH variable. But that will not list the executables that are outside of the PATH. So, I wrote this one liner :

rpm -qal |agrep &#8221;bin\/&#8221; > all_execs

This will list all the files in the Linux system in bin or sbin directory and that should be pretty much all the binaries in the system.

Continue reading

Fedora 12 demonstrates sandbox for desktop applications

2010-01-03 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
Security-Enhanced Linux (SELinux) specialist and Red Hat developer Dan Walsh has souped up the security mechanisms in Fedora and SELinux by adding a desktop sandbox which he&#8217;s calling “sandbox -X”. Users can run desktop applications of their choice inside his sandbox, which then protects the underlying system from any possible damage.

A browser started inside the sandbox is unable to damage the host system.
SELinux extends the standard Unix privileges concept to add a role-based privilege model which, in principal, allows a user to forbid a PDF viewer from, for example, sending email. Currently, however, SELinux is mainly used to wall off server services.
<a HREF="http://www.h-online.com/security/Fedora-12-demonstrates-sandbox-for-desktop-applications–/news/114298">read more <table CELLSPACING="0" CELLPADDING="0" WIDTH="100%">

Continue reading

Simple rss to email service for your feeds on Linux with your/ISP server.

2010-01-01 2 min read Fedora Linux

I like couple of blogs and feeds but the problem is that I keep forgetting to run the rss reader and would rather like to have the rss article&#8217;s emailed to me at regular intervals so that I can read them when I want to without having to make sure that I am at my desktop at home computer or remembering to start the rss client. That sounds simple and do-able so lets try to do that.

Continue reading

Some Rather Old But Still Funny Anti-UNIX Jokes (One Liners)

2009-12-28 3 min read Linux

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2009/12/unix-jokes1.jpg"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/unix-jokes1.jpg" alt="" align="bottom" />You may have heard a lot of anti-<a class="zem_slink freebase/en/microsoft" title="Microsoft" rel="homepage" href="http://www.microsoft.com">Microsoft jokes before since you can read them everywhere. However, it&#8217;s pretty rare to find anti-UNIX/Linux jokes. So I would like to share with you some pretty old but still funny anti-UNIX one-liners. Enjoy!

  • If <a class="zem_slink freebase/en/unix" title="Unix" rel="wikipedia" href="http://en.wikipedia.org/wiki/Unix">Unix is the answer, then it must have been a stupid question.

    Continue reading

Nifty Things to Do with GIMP

2009-12-26 1 min read Linux Photo

Nifty Things to Do with GIMP Some of us are probably addicted to capturing moments in pictures. I can understand why. It’s one of those things that help us go back to the good old days, so to speak. It’s also something that creates a ‘time machine’ for us because those pictures show us what things looked like, not just remind us of the feeling but give us the atmosphere all over again.

Continue reading
Older posts Newer posts