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

shell — one liner to selectively change case

2010-01-07 2 min read Bash

Today I had a hard time, I had a herculian task of converting the case of file to upper case. Well that&#8217;s not difficult :), I know. What made it difficult was the fact that not the whole file had to be converted but only selective lines containing the work important. Okay now that too is not so difficult, I thought. But again the file size was huge, it had some 9 million lines. So, I just thought of trying my skills of shell programming (dont have much of it anyway). So here&#8217;s what I did:

Continue reading

Picture Collage Maker 2.0

2010-01-06 1 min read Photo

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">

<table CELLSPACING="0" CELLPADDING="0" WIDTH="100%">

<font SIZE="6"><a HREF="http://feedproxy.google.com/~r/photographyblog/~3/8SSu3N8oWRs/">Picture Collage Maker 2.0

<a HREF="http://www.photographyblog.com/news/picture_collage_maker_2.0/"><img SRC="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/mask-bar-533x400.jpg" WIDTH="533" HEIGHT="400" ALIGN="bottom" ALT="News image"/>

Pearl Mountain Software has released Standard and Pro editions of Picture Collage Maker v. 2.0, a simple-to-use Windows program that turns ordinary photos into collages, scrapbooks, invitations, calendars or greeting cards.

<a HREF="http://www.photographyblog.com/news/picture_collage_maker_2.0/">Read more and comment »

<img SRC="http://blog.amit-agarwal.com/wp-content/uploads/amit-agarwal.co.in/~r/photographyblog/~4/8SSu3N8oWRs" WIDTH="1" HEIGHT="1" ALIGN="bottom" BORDER="0"/>

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
Older posts Newer posts