Removing duplicate RPMS.

2010-05-12 1 min read Linux

Got the script mainly with google search on the <a href="http://linux.derkeiler.com/Mailing-Lists/Fedora/2006-12/msg04156.html">link.

Nice trick..

Get the list of rpms with just the names
rpm -qa –queryformat &#8217;%{name}\n&#8217; > pkglist

Get the non-uniques list.
sort -g pkglist | uniq -d > duplicates

Get the versions of the duplicate files:
for pkg in `cat duplicates`; do
rpm -q $pkg » removelist
done

Now keep the rpms that you want to delete in the removelist

Continue reading

vi – the powerful Linux/Unix text editor

2010-05-12 1 min read Linux Vim Tips

We will talk about some vi stuff today:

Some fun first–>
1) <a href="http://www.vim.org/tips/tip.php?tip_id=664">http://www.vim.org/tips/tip.php?tip_id=664
2) help 42

Ok, coming to serious things-
References:
3) Linux cheat sheet:
<a href="http://www.lagmonster.org/docs/vi2.html">http://www.lagmonster.org/docs/vi2.html
4) <a href="http://www.venukb.com/2007/01/28/vivim-graphical-cheat-sheet/">http://www.venukb.com/2007/01/28/vivim-graphical-cheat-sheet/
5) <a href="http://www.eng.hawaii.edu/Tutor/vi.html#commands">http://www.eng.hawaii.edu/Tutor/vi.html#commands

Commands and tips:
6) Something that is difficult to find on the net is : how to create a numbered list in vi/vim? Simple, we will use macro's
To do this:
a> type number and terminatory ex: 1)
b> start recording using qa  . This will record the macro in a.
c> yank the line with yy
d> goto next line
e> press a to increment the number
f> End the macro recording with q
g> Play the macro with numner of times to repeat the actions. Example press 11@a
7) For repeating the last command you can use
8) You can put your vim settings in ~/vimrc and this can containg things like "set nu" and any other configuration.
9) Adding date in vi : :r! date
10) There is a variant of vi known as elvis which is quite nice
11) Similarly for viewing binary file there is a variant called bvi

Continue reading

Firefox 4.0 mockups for LInux/Windows and Mac

2010-05-11 1 min read Firefox
https://wiki.mozilla.org/Firefox/Projects/3.7_and_4.0_Theme_and_UI_Revamp
The link above will take you to the Mozilla wiki for the UI and theme mockups for the Firefox 4.0 release. Quite interesting but what I did not like is that the Linux mockup looks more like chrome. Not sure why mozilla would want to do that 🙂
  • Tabs-on-top: Defaut tabs to top of UI.
  • Hiding the Menu Bar: Hide the menu bar and add Page and Tools buttons.

The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee-gnome v0.9<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.engadget.com/2010/05/10/mozilla-shares-tentative-vision-for-firefox-4/">Mozilla shares tentative vision for Firefox 4 (engadget.com) <li class="zemanta-article-ul-li"><a href="http://news.slashdot.org/story/10/05/11/1222211/Mozilla-Reveals-Firefox-4-Plans?from=rss">Mozilla Reveals Firefox 4 Plans (news.slashdot.org) <li class="zemanta-article-ul-li"><a href="http://www.techmeme.com/100511/p7">Mozilla&#8217;s Plans for Firefox 4: Faster, Sleeker Interface & Better Privacy Controls (Frederic Lardinois/ReadWriteWeb) (techmeme.com) <li class="zemanta-article-ul-li"><a href="http://www.techmeme.com/100510/p67">Firefox 4: fast, powerful, and empowering (Mike Beltzner/beltzner) (techmeme.com) <li class="zemanta-article-ul-li"><a href="http://blogs.chron.com/techblog/archives/2010/05/firefox_4_coming_soon_beta_as_early_as_june_1.html">Firefox 4 coming soon; beta as early as June (blogs.chron.com) <li class="zemanta-article-ul-li"><a href="http://r.zemanta.com/?u=http%3A//www.cbsnews.com/8301-501465_162-20004666-501465.html&a=17869870&rid=73c491d4-0778-448a-ba05-b7758f91e1c9&e=e813a95fa56524108572b5f7c80e8075">An Early Look at the Next Version of Firefox (cbsnews.com) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/73c491d4-0778-448a-ba05-b7758f91e1c9/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b85.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading

75% of Linux code now written by paid developers

2010-05-06 1 min read Linux

<a href="http://apcmag.com/linux-now-75-corporate.htm">75% of Linux code now written by paid developers:

Oh well, and who is gaining… 🙂

Linux Contractor Fired for Using Firefox/Linux

2010-05-03 0 min read Linux
\"Gnome
Image via Wikipedia

This is a complicated story but one that must be told. I&#8217;m not sure there is anything that can be done about it except rage at the moon…

But it needs to be told none the less.

Did I mention it gets complicated? It does, but it does so for a reason. Let&#8217;s introduce the starting lineup.

Continue reading

AndreaMosiac.. The way to create a mosaic.

2010-04-30 1 min read Linux

<a href="http://www.andreaplanet.com/andreamosaic/download/" target="_blank">Download from here, AndreaMosaic. It us cinoketekt free for personal use and does just what the name says, creates mosaic. I tried this on Linux and was flawless with wine. Good show 🙂

Here&#8217;s how to use it:

Start AndreaMosaic

<img class="size-full wp-image-657" title="andreamosaic" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot-andreamosaic2.jpg" alt="andreamosaic" width="585" height="477" /><div class="zemanta-pixie">and select your base file by clicking on the &#8221;+&#8221;:<img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/pixy.gif" alt="" />

<div class="zemanta-pixie">

<img class="size-full wp-image-658" title="andreamosaic" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot-andreamosaic.jpg" alt="Base image" width="585" height="477" />

<div class="zemanta-pixie">And now select the images that would tile to give you the base image. Click on select tiles: <div class="zemanta-pixie"><img class="alignnone size-full wp-image-659" title="tiles" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/tiles.jpg" alt="tiles" width="602" height="452" /> <div class="zemanta-pixie"> <div class="zemanta-pixie">To start off, click on ok and then create mosaic on the initial window and you get your first mosaic. Here&#8217;s an example: <div class="zemanta-pixie"><img class="alignnone size-full wp-image-660" title="mosaic" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/mosaic.jpg" alt="mosaic" width="450" height="319" /> <div class="zemanta-pixie"> <div class="zemanta-pixie">There are various settings you can tweak to get different effects, so enjoy 🙂

Continue reading

Local DNS Server for faster DNS response time

2010-04-30 1 min read Fedora Linux

Here&#8217;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&#8217;s what I was required to do:

yum install dnsmasq

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

Continue reading
Older posts Newer posts