Local DNS Server for faster DNS response time

2010-04-30 1 min read Fedora Linux

Here’s a quick tip for faster DNS response time. I installed a local DNS server which can contact the remote DNS server and enabled caching for the local DNS server. This ensures that the response time for the DNS queries is much faster.

I am on Fedora 10, so here’s what I was required to do:

yum install dnsmasq

After this I created a file called /etc/resolve.dns with the nameserver address’s and heres what it looks like:

Continue reading

Delete all files in a folder that don't match a certain file extension

2010-04-30 1 min read Bash Fedora Linux

$ rm !(.foo|.bar|*.baz)

Deletes all files in a folder that are NOT *.foo, *.bar or *.baz files. Edit the pattern inside the brackets as you like.

  • <a href="http://www.commandlinefu.com/commands/view/5351/delete-all-files-in-a-folder-that-dont-match-a-certain-file-extension">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/hutch">View all commands by <a href="http://feeds2.feedburner.com/commands/by/hutch">hutch

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="" align="bottom" />

by David Winterbottom (<a href="http://codeinthehole.com">codeinthehole.com)

<a href="http://feedads.g.doubleclick.net/~a/kewaFMgsXI4A1vQfeLscg2Vcv8o/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/kewaFMgsXI4A1vQfeLscg2Vcv8o/0/di" alt="" align="bottom" />
<a href="http://feedads.g.doubleclick.net/~a/kewaFMgsXI4A1vQfeLscg2Vcv8o/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/kewaFMgsXI4A1vQfeLscg2Vcv8o/1/di" alt="" align="bottom" />

<img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~r/Command-line-fu/~4/TCRb2ku_V1Y" alt="" width="1" height="1" align="bottom" />

Continue reading

25 Awesome GIMP Brush Sets (Download 1000+ FREE Brushes)

2010-04-29 1 min read Fedora Linux Photo

Tech Source From Bohol: &#8221;To help you further enhance the functionality of GIMP, I have here a huge collection of awesome, high-quality brushes that can be utilized for whatever projects you may have.&#8221;

URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-10-11-005-35-MM-SW">http://linuxtoday.com/news_story.php3?ltsn=2009-10-11-005-35-MM-SW<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.slumpedoverkeyboarddead.com/2009/10/10/five-super-simple-photo-fixes-with-the-gimp/">Five Super Simple Photo Fixes with The GIMP (slumpedoverkeyboarddead.com) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/a5cb830f-a1ff-41d0-b3e7-27bd261ff52c/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e12.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related pretty-attribution">

Continue reading

Spruce up your firefox with lightweight themes – Personas

2010-04-29 2 min read Fedora Linux

Head over to Firefox addons site  for persona <a href="https://addons.mozilla.org/en-US/firefox/addon/10900" target="_blank">here. This addon will give you the ability to change the look and feel of the browser without restarting it. Though it is not completely like themes and does not change the look and feel of the buttons and plenty of other things but this does make the browser a lot better. Here are some screenshots to show you how it feels like:

Continue reading

Lock the hardware eject button of the cdrom

2010-04-29 1 min read Fedora Learning Linux

$ eject -i 1 This command will lock the hardware eject button of your cdrom drive. Some uses are:

1: If you have a toddler and has discovered the cdrom button

2: If you are carrying a laptop in a bag or case and don&#8217;t want it to eject if the button is inadvertently pressed.

To unlock the button use:

eject -i 0

  • <a href="http://www.commandlinefu.com/commands/view/5390/lock-the-hardware-eject-button-of-the-cdrom">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/mdelatorre">View all commands by <a href="http://feeds2.feedburner.com/commands/by/mdelatorre">mdelatorre

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="" align="bottom" />

Continue reading

Upgrade to Fedora 13 from your existing version using yum.

2010-04-21 1 min read Fedora Uncategorized

Well. this time it seems to be very simple :

yum –releasever=13 upgrade

update 22/April/2010:
The key file will not be there so there are two options for you in this case:

  1. Install the following rpms from the downloaded rpms with &#8221;yum –nogpg localinstall&#8221;
    a) fedora-release
    b) fedora-release-notes
  2. Run the whole upgrade with –nogpg option.

Issue observed after the upgrade:
The new kernel was not added in the grub menu and I had to manually add the below entry in the <a class="zem_slink freebase/en/gnu_grub" title="GNU GRUB" rel="homepage" href="http://www.gnu.org/software/grub/">menu.lst file:

Continue reading

Liquid rescale and remove objects from the images.

2010-04-12 1 min read Fedora Photo

Ever wanted to remove some unwanted object from an image. Wonder how many thinkgs you have to do, clone and delete and what not:)

There is a simpler way, just paint it in foreground color. Does that sound ridiculous, not any more with Liquid Rescale. First install the plugin for liquid rescale for gimp.

yum install gimp-lqr-plugin

Now, just follow simple instructions below:

  1. in the menu, choose Layer and then Liquid Rescale
  2. click on the New button in the Discard features section on the right: a new layer will be created
  3. put the plugin window on one side of the screen without closing it, and go back to work on the gimp main windows
  4. choose the paint tool and paint over the area you wish to remove
  5. go back to the plugin window
  6. click the Refresh button at the bottom: you should see your discard mask appear in the preview
  7. optionally, in the Mode box on the left choose Lqr + scale back or Lqr + Lqr back
  8. click the Auto size button at the bottom of the Discard features section (optionally choose the scaling direction in the box at the side of the button before clicking it).
  9. click OK

Could it get any simpler.

Continue reading
Older posts Newer posts