Quick tip on zipping logs in real time.

2010-10-13 1 min read Bash Learning Linux

Sometimes, some small things that we don’t actually think can be useful are such useful. I faced this couple of days back when I was working on something and the amount of logs getting generated and the files getting rotated was too fast. If I had to use this for sometime, I needed some script, application or something to make sure that the logs are zipped every few seconds. Finding an application for this would take time and what good is bash if we need to find applications for this. So, a simple bash command did the trick. Most of us would know this but applying it and using it at the right time, was what saved my life. Thanks to bash. Here is the command:

Continue reading

Ubuntu Maverick Meerkat 10.10 Post Installation Guide

2010-10-12 1 min read Linux

Ubuntu Maverick Meerkat 10.10 Post Installation Guide ubuntu.jpgUbuntu 10.10 codenamed Maverick Meerkat is released. As you all know Ubuntu is the most popular Linux distribution since it aims on usability and ease of installation. The new version of Ubuntu comes with Gnome 2.32 and Linux kernel 2.6.35. Of course all software is updated with new versions. The installation has also become very easy and fast. The user has to do only a few clicks until he boots up to his new Ubuntu desktop. Download Ubuntu 10.10 install it and let’s see a few tips and tricks!

Continue reading

http://ninite.com/linux/makeuseof – very good collection of utilities for .deb based distro’s

2010-10-08 1 min read Linux Uncategorized

Head over to http://ninite.com/linux/makeuseof and you will find a nice utility created by the makeuseof guys. This will allow you to select the applications that you want to install and once you have made the selection you can download the unattended installer.

Well, to be frank with you I really do not see the need for this unless you don’t know how to add repositories or install simple stuff. Most of this (no, actually all of this except dropbox in my Fedora setup with the repositories that I have set). Now for one application why would I do that if that was available for Fedora. Any-ways pretty good for newbies, still.

Continue reading

Resize all the images in directory.

2010-10-04 2 min read Bash Linux Photo
Geotagger "Solmeta N2 Kompass" for N...
  <dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">
    Image via <a href="http://commons.wikipedia.org/wiki/File:Solmeta_N2_auf_Nikon_D5000_Rueckansicht.JPG">Wikipedia</a>
  </dd>
</dl>

When I take a photo with my DSLR Nikon D5000, the size of the image comes to around 5MB and I know that with my point and shoot camera also it does not come to any lesser than 3MB. Definitely this is quite good to keep the images in the same size for use but when it comes to on-line sharing I don’t think this is the size that is required. I guess mosr of the time 1024×768 is sufficient. Even if you are sending the images in email, you cannot afford to send a lot of images of this size even with a gmail account.

Continue reading

viewnior – another image viewer on Linux (with support for GIF)

2010-09-25 1 min read Fedora Linux Photo

Here is another Linux viewer (Image) that is worth a mention. URL : <a href="http://xsisqox.github.com/Viewnior">http://xsisqox.github.com/Viewnior

Description :

Viewnior is an <a class="zem_slink" title="Image viewer" rel="wikipedia" href="http://en.wikipedia.org/wiki/Image_viewer">image viewer program. Created to be simple, fast and elegant.  It&#8217;s minimalistic interface provides more screen space for your images. Among  its features are:

  • Fullscreen & Slideshow
  • Rotate, flip, save, delete images
  • Animation support
  • Browse only selected images
  • Navigation window
  • Simple interface
  • Configurable <a class="zem_slink" title="Mouse (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Mouse_%28computing%29">mouse actions

The best part about the viewer is the ability to display gif inherently. Worth a look if you are using a lot of gif images.

Continue reading

bash script to run a command and take screenshot in every loop.

2010-09-24 2 min read Bash Fedora Learning Linux

Couple of days back, I had posted a command to display a stop timer with bash and echo. There I had also put the following gif file:

<img class="size-medium wp-image-2555" title="bash screenshot for the script output" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/09/temp-300x170.gif" alt="bash screenshot for the script output" width="300" height="170" />

Here the tricky part was to capture the jpg&#8217;s to create the gif file.

Preparation:

  1. Rename the terminal to aka – amit-capture

  2. Execute the command once with the import command and check the output and jpg&#8217;s

    Continue reading
Older posts Newer posts