cd across parallel directories

2011-03-14 1 min read Bash Linux

A diagram showing the key Unix and Unix-like o...
Image via Wikipedia

Here is a simple and fast way to cd across parallel directory.

  <td>
    <div class="text codecolorer">
      cd ${PWD/test/actual}
    </div>
  </td>
</tr>
1
Enhanced by Zemanta

Using ssmtp to send mail using gmail.

2011-02-19 1 min read Fedora Linux

First install the package ssmtp using the command:

  <td>
    <div class="text codecolorer">
      sudo yum install ssmtp
    </div>
  </td>
</tr>
1

Open the configuration file for ssmtp as root user:

  <td>
    <div class="text codecolorer">
      vim /etc/ssmtp/ssmtp.conf
    </div>
  </td>
</tr>
1

Make the following changes to the configuration file:

root=**username**@gmail.com
mailhub=smtp.gmail.com:587
hostname=**username**@gmail.com
UseSTARTTLS=YES
AuthUser=username
AuthPass=password
FromLineOverride=yes

In order to make the default (root) “from” field be the server name,
edit the /etc/ssmtp/revaliases file as root user :

Continue reading

Empty a file

2010-12-26 1 min read Learning Linux
Screenshot of Calculator.NET, a Free Open Sour...
  <dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">
    Image via <a href="http://commons.wikipedia.org/wiki/File:Calculator.NET_Screenshot.png">Wikipedia</a>
  </dd>
</dl>

This one is for those who know the “touch” command. Hope all of us do not follow a  command just because it is on one of the popular site without trying to understand the command and the output.

Continue reading

Fundraising for Linux Foundation.

2010-11-13 1 min read Uncategorized

All of us have been benefited by Linux in some way or other and this is due to all the work that is being done by so many organizations and people around the world. I would like to spare some time to tell you about my initiative to raise 100$ for Linux Foundation. Please visit my donation page or click donate on the widget in the bottom of the page. The Linux Foundation will highly appreciate it and so would I.

Continue reading

Free Calendar for October 2010

2010-09-30 1 min read Photo Uncategorized

Hope you like my work with gimp and Nikon D5000 .

<img class="size-medium wp-image-2501" title="Calendar October 2010" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/09/calOct10-300x199.jpg" alt="Calendar October 2010" width="300" height="199" />

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/09/calOct10.jpg">Download Link<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=2104687a-c8b4-4199-944e-69204d710f76" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">

15 (More) Awesome Conky Configurations

2010-09-13 0 min read Fedora Linux
\"A
Image via Wikipedia

15 (More) Awesome <a class="zem_slink" title="Conky (software)" rel="homepage" href="http://conky.sourceforge.net/">Conky Configurations You may have already seen our list of awesome Conky scripts or configurations, and perhaps applied or used some of them on your own <a class="zem_slink" title="Linux" rel="homepage" href="http://www.kernel.org/">Linux desktop. Since that collection was quiet popular, I decided to scour the web once again to gather more Conky scripts that I could share with all of you. Now, here is another list of some of the most excellent and unique conky configurations that you could freely use. Enjoy!

Continue reading
Older posts Newer posts