Typing the current date automaticly in any application with a key binding.

2010-07-20 1 min read Linux

$ xvkbd -xsendevent -text $(date +%Y%m%d) I don&#8217;t want to waste time to all the time type the current date. I have set this snippet in my kde shortcuts with meta+l. All the <a class="zem_slink freebase/en/window_manager" title="Window manager" rel="wikipedia" href="http://en.wikipedia.org/wiki/Window_manager">window managers have <a class="zem_slink freebase/en/keyboard_shortcut" title="Keyboard shortcut" rel="wikipedia" href="http://en.wikipedia.org/wiki/Keyboard_shortcut">key-bindings AFAIK. That works in all softs, <a class="zem_slink freebase/en/command_line_interface" title="Command-line interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command-line_interface">CLI or <a class="zem_slink freebase/en/graphical_user_interface" title="Graphical user interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Graphical_user_interface">GUI…

Continue reading

Paste clipboard is bash or shell scripts with modification.

2010-07-20 1 min read Bash Linux

Today I had a issue where I wanted to paste the clipboard to a shell script after removing the spaces. So, I went hunting for a way to do this. Finally I came up with this:

sudo yum install xclip

Then you can paste the clipboard content using &#8221;xclip -o&#8221;. So now the problem is reduced to selecting the required info and doing :

xclip -o |sed &#8217;s/ //g&#8217;

or

Continue reading

Linux command to repeat a string n times - Super User

2010-07-20 1 min read Bash Linux

I was working on something and needed to output the string n times. I have required this even to print a line with &#8217;-&#8217; or &#8217;=&#8217; but this time I badly wanted it in bash. So I searched google and found this:

printf &#8221;Amit Agarwal%.0s&#8221; {1..5}

Explanations and other examples: <a href="http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times">http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times<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.rateitall.com/i-3177235-flat-rate-us-terminations.aspx">1 reviews of Flat-Rate US Terminations (rateitall.com) <li class="zemanta-article-ul-li"><a href="http://www.brighthub.com/computing/linux/articles/75743.aspx">Top Linux GUI (brighthub.com) <li class="zemanta-article-ul-li"><a href="http://www.gnu.org/software/emacs/tour/">A guided tour of Emacs (gnu.org) <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://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_e6.png" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">

Continue reading

autoten- install nvidia, gnome color chooser and many others in one click on Fedora.

2010-07-18 1 min read Fedora

There is a application/GUI called autoten from Dangermouse, find <a href="http://dnmouse.org/autoten-2-12.fc10.noarch.rpm ">here, which will help you install these.

  • designed to help get basics up and running fast
  • dvdplayback plus other codecs needed
  • parental controls
  • flash plugin
  • video card drivers
  • wireless drivers
  • set up sudo
  • java 6u7
  • realplayer
  • googleearth
  • frostwire
  • Limewire
  • lightscribe
  • compiz-fusion
  • skype
  • parental controls
  • plus many others

I tried it to install couple of things and it was a breeze. Here is a screenshot of the application.

Continue reading

Adding border to images.

2010-07-18 1 min read Photo

A very simple script to add border to images :
**
**

*for i in .jpg; do montage -geometry 720×576 -background black -quality 100 $i conv-$i; done


This is one line that you can run the directory containing all your images and all the files with extension of &#8221;jpg&#8221; will be assumed to be images and the command run on them to add the border. The border is black in color and quality of the border is 100%.

Continue reading

Try a live Distro without burning on CD or running in VM

2010-07-18 2 min read Fedora Linux

I keep trying a lot of distributions and mostly I try them once and get the configurations and put them on my box :), this works best for me so that I dont have to keep re-configuring my system again and again. So, burning the disc for one time use is overhead and wastes a lot of time for me.

Why burn a disc when GRUB is there to help. So today we will try to use the installed grub run a extracted iso image. Lets go step by step:

Continue reading

Beldi – The way to go to try linux distributions.

2010-07-18 1 min read Linux

I know people in the Linux world always want to try different distributions, but problem is maintaining them and tracking them, so what is the solution?

Found a nice solution called <a href="https://belug.de/~beldi//distributions/fedora.xml">Beldi

This sofware is in the fedora yum repository so if you are running Fedora you can simply install the application by running

&#8221;<span style="color: #ff00ff;">yum install beldi&#8221;

Now the interesting part, it supports to download and autoupdate the distributions of about 16 odd distributions. What you did not find your distro in the list but want to add it, I hope one option is to write to BeLUG and ask them to add it. But better yet is to update the xml files in the <span style="color: #00ffff;">~/.beldi directory.

Continue reading
Older posts Newer posts