Creating a chroot environment in Fedora with bash and other utils.

2011-09-19 2 min read Bash Fedora Learning Linux

[ad#ad-2]

I am testing some of my scripts to work on a very old system and there the versions of the most popular applications are very old, real old :(. So, some of things that I am very used to since last couple of years, do not seem to work as expected and I need to keep verifying a lot of things on the server, very inconvinient to keep testing the script on the server (need to connect on VPN) just to test some very simple things.

Continue reading

better bash debugging

2011-09-16 1 min read Bash Linux

I was trying to debug some bash scripts yesterday and learnt something new 😉
There are lot of things in bash that you can use to debug and to start with you can enable xtrace mode as follows:

set -x

With this set you will see that all the commands are printed along with all other information as they are executed.
This you can do for any line or for the function or for the whole script. Once you set the option you can turn it
off with

Continue reading

Manually remove all the duplicate bookmarks in Firefox

2011-09-13 1 min read Firefox

LAS VEGAS - JANUARY 08:  The Nokia N900 phone ...
Image by Getty Images via @daylife

I was trying to install the duplicate Bookmark remover for the Firefox but for some reasons, was not able to install it. That apart, the point is that I was trying to get a program to do this for me rather than a plugin. So, after some search, finally I found here. This is a ruby script. The script requires ruby gems-json for doing this.

Continue reading

ss – utility to investigate sockets.

2011-09-07 1 min read Fedora Linux

Sometimes, you find some interesting application/command by accident, and that is just what happened a few days back. Well, I was doing a ssh and as usual made my share of mistake in typing and missed the “h” from the ssh command and saw a list of options instead of my prompt on remote server.

Now, that set me thinking and fond that its a very interesting command that comes with iproute on Fedoara, so if you want this command, then install iproute like this

Continue reading

debug call function() to debug a function in vim

2011-09-04 1 min read Vim Tips

Drawn in Autosketch + pasting in words from Excel
Image via Wikipedia

Have you ever wished that you could either see what is going on initially at the vim startup like you could do with C program in the gdm mode, but really did not want to go through gdb. Or rather you sometime felt that some function defined by some plugin is causing some issue and you wanted to debug just that function. Well you need not wish anymore, the functionality is already there.

Continue reading

[Solved] ssh works but scp does not

2011-08-29 1 min read Bash Fedora Linux

Structure of an SSH binary packet
Image via Wikipedia

For quite sometime now, I was having this issue, that for the home system, I was able to connect to is using ssh but it never worked. Fnally after quite some debugging finally I found that the issue was with thebashrc. So, everytime I had to do a scp I would have to move/rename bashrc and do the reverse action after the scp was done.

Continue reading

Screenshot of Gnome3 with awn

2011-08-25 1 min read Fedora GNOME Linux

Here is another screenshot of my laptop desktop with Gnome 3 and AWN (Avant window Navigator) running. Looks beautiful, isn’t it?

<p>
  By the way, with this setup I have the <a class="zem_slink" title="Old Style and New Style dates" href="http://en.wikipedia.org/wiki/Old_Style_and_New_Style_dates" rel="wikipedia">old style</a> menu also just that instead of on the top it is on the bottom just like old RH9 🙂
</p>

<h6 class="zemanta-related-title" style="font-size: 1em;">
  Related articles
</h6>

<ul class="zemanta-article-ul">
  <li class="zemanta-article-ul-li">
    <a href="http://blog.amit-agarwal.co.in/2011/08/12/gnome-3-shell-themes/">Gnome 3 shell themes</a> (amit-agarwal.co.in)
  </li>
  <li class="zemanta-article-ul-li">
    <a href="http://tech.slashdot.org/story/11/08/17/1943218/Interview-With-GNOME-3-Designer-Jon-McCann">Interview With GNOME 3 Designer Jon McCann</a> (tech.slashdot.org)
  </li>
  <li class="zemanta-article-ul-li">
    <a href="http://linux.slashdot.org/story/11/08/04/0115232/Linus-Torvalds-Ditches-GNOME-3-For-Xfce">Linus Torvalds Ditches GNOME 3 For Xfce</a> (linux.slashdot.org)
  </li>
</ul>

<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="float: right;" src="https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688" alt="Enhanced by Zemanta" data-recalc-dims="1" /></a>
</div>

<p>
</p>
Older posts Newer posts