quadkonsole – multiple consoles to make your life easier

2011-11-21 1 min read Fedora Linux

First lets install quadkonsole:

yum install quadkonsole

Now, to launch the quadkonsole, just type quadkonsole in the run box (appears with Alt+F2).

You will by default see 4 console windows in single window but you can change that with command line options like so:

quadkonsole --rows 4 --columns 4

This will initiate windows with 16 consoles. How cool is that.

Enhanced by Zemanta

Compare files excluding certain lines.

2011-10-18 1 min read Bash Fedora Learning Linux

Quick tip, you can use any expression for the sed commands in the (). With this trick you can redirect the stdout of 2 commands to the diff command. This might become very useful, if you want to compare 2 files, excluding the first  line.

diff <(sed '1d' file) <(sed '1d' file2)

More interesting example is where the string ABC is converted to abc before comparing in the second file with the following command:

Continue reading

Gnome 3 shell themes

2011-08-12 2 min read Fedora GNOME

Working gnome-shell on an Intel 945GM
Image by grantc via Flickr

If you are using gnome-shell and are bored with the same default theme then read on…. 🙂

By default changing the default theme requires that you modify the files yourself or copy few files to the required directories. Well, if this is not in your scheme of things for changing the theme, a very simple task. Now, you can simply do this with gnome shell extensions.

Continue reading

Take a screenshot of the window the user clicks on and name the file the same as the window title

2010-12-19 2 min read Bash Learning Photo

Take a screenshot of the window the user clicks on and name the file the same as the window title

  <td>
    <div class="text codecolorer">
      &nbsp;sleep 4; xwd >foo.xwd; mv foo.xwd "$(dd skip=100 if=foo.xwd bs=1 count=256 2>/dev/null | egrep -ao '^[[:print:]]+' | tr / :).xwd"
    </div>
  </td>
</tr>
1

In general, this is actually not better than the “scrot -d4” command I’m listing it as an alternative to, so please don’t vote it down for that. I’m adding this command because xwd (X window dumper) comes with X11, so it is already installed on your machine, whereas scrot probably is not. I’ve found xwd handy on boxen that I don’t want to (or am not allowed to) install packages on.

Continue reading

New feature in Gnome/Nautilus

2010-12-05 1 min read Fedora GNOME

One of the things that I never realized that I am missing in Nautilus until they put the feature in was this. When a file is being copied and there is conflict, there should be option to rename the new file being copied. Also, if the file being copied is image then a small preview/thumbnail would be good.

Yesterday while copying some files, suddenly I noticed that this feature is there now. Pretty useful feature to have. Here’s the screen-shot.

Continue reading

function for copy files with progress bar (using pv – pipe viewer)

2010-11-11 1 min read Bash Linux

function for copy files with progress bar (using pv – pipe viewer)

  <td>
    <div class="text codecolorer">
      &nbsp;cp_p() { if [ `echo "$2" | grep ".*/$"` ]; then pv "$1" > "$2""$1"; else pv "$1" > "$2"/"$1"; fi; }
    </div>
  </td>
</tr>
1

dont have to type new file name (it copy file under same name) and dont have to use ‘/’ in the end of destination folder (but you can if u want, its idiot proof)

Continue reading

Photo Editing with nice border and preparing for print.

2010-11-02 3 min read Fedora Photo

Working with photos in Linux is very easy with lots of viewers/editors/managers and what not. Not that there are not many options in Windows but most of them are not free. BEST case scenario is that you might get a evaluation version (i.e. if you do not use pirated/cracked version) of software‘s. Me, being completely against pirated and cracked version or evaluation version (if not, planning to buy the same) like the freedom of choice with Linux.

Continue reading
Older posts Newer posts