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 ’-’ or ’=’ but this time I badly wanted it in bash. So I searched google and found this:

printf ”Amit Agarwal%.0s” {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

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

Enlightment Desktop.

2010-07-16 1 min read Linux

Enlightenment window managet I just chanced upon today while browsing the list of packages in fedora repository and thought might as well try it for sometime. For sometime now I had shifted to LXDE in favour of its being light weight but was serving well to my purposes and was quite happy with its performance.

So i just installed Enlightenment:

sudo yum install enlightenment

and selected yes for downloading the dependencies to too.  This took me to a great new world of GUI. This is a really great Desktop manager. Seems to be quite okay in terms of using the CPU. The looks are completely configurable. Menus are configurable and if you dont like the default theme then there are lot to choose from at various location some of which I have mentioned in below.

Continue reading

vi reference links

2010-07-16 1 min read Linux Vim Tips

<a href="http://www.lagmonster.org/docs/vi2.html">http://www.lagmonster.org/docs/vi2.html
<a href="http://www.venukb.com/2007/01/28/vivim-graphical-cheat-sheet/">http://www.venukb.com/2007/01/28/vivim-graphical-cheat-sheet/
<a href="http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html">http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
<a href="http://www.eng.hawaii.edu/Tutor/vi.html#commands">http://www.eng.hawaii.edu/Tutor/vi.html#commands

Hotmail login from Linux machine using Firefox.

2010-07-15 1 min read Fedora Linux

Today I learnt two things. One is that Hotmail has changed the look of the email on the web. Quite good change. Looks good.

Second is that when loggin in to the hotmail using my Fedora box with Firefox, I was always getting the annoying, you are not on supported browser and saw the fix on <a href="http://www.linuxquestions.org/questions/linux-newbie-8/hotmail-problems-683894/?posted=1#post3345089" target="_blank">this link. The solution is as simple as changing the &#8221;general.useragent.vendor&#8221; for firefox. The way to do this is :

Continue reading
Older posts Newer posts