Screen enable/disable logging in all windows

2010-11-19 1 min read Bash Learning Linux

If you use screen command a lot then this is something that you will like 🙂

Screen enable/disable loggin in all windows

  <td>
    <div class="text codecolorer">
      bindkey ^l at "#" log on<br /> <br /> bindkey ^o at "#" log off
    </div>
  </td>
</tr>
1
2
3

The command when added in screenrc enables logging all open windows by using the C-l (control-l key combination) and disable by C-o . The lines need to be added in separate lines .

Continue reading

Fundraising for Linux Foundation.

2010-11-13 1 min read Uncategorized

All of us have been benefited by Linux in some way or other and this is due to all the work that is being done by so many organizations and people around the world. I would like to spare some time to tell you about my initiative to raise 100$ for Linux Foundation. Please visit my donation page or click donate on the widget in the bottom of the page. The Linux Foundation will highly appreciate it and so would I.

Continue reading

Print all environment variables, including hidden ones

2010-11-09 2 min read Bash Fedora Linux

Print all environment variables, including hidden ones

  <td>
    <div class="text codecolorer">
      for _a in {A..Z} {a..z};do _z=${!${_a}*};for _i in `eval echo "${_z}"`;do echo -e "$_i: ${!_i}";done;done|cat -Tsv
    </div>
  </td>
</tr>
1

This uses some tricks I found while reading the bash man page to enumerate and display all the current environment variables, including those not listed by the ‘env‘ command which according to the bash docs are more for internal use by BASH. The main trick is the way bash will list all environment variable names when performing expansion on ${!A*}. Then the eval builtin makes it work in a loop.

Continue reading

Linux>1% Campaign. Prove that we are more than 1% !

2010-10-25 1 min read Linux Uncategorized

Linux>1% Campaign. Prove that we are more than 1% !

At http://www.dudalibre.com they are running a campaign to make every owner of computers running Linux register. The aim is to prove that the general assumption, that only 1 % of all computers run Linux is wrong. Everyone is needed if this effort is going to succeed.

http://www.dudalibre.com/en/gnulinuxcounter

The page can also be displayed in Spanish and French

I voted for my distro Fedora, hope you do the same for your linux distribution and prove that Linux does run on high number of desktop.

Continue reading

http://ninite.com/linux/makeuseof – very good collection of utilities for .deb based distro’s

2010-10-08 1 min read Linux Uncategorized

Head over to http://ninite.com/linux/makeuseof and you will find a nice utility created by the makeuseof guys. This will allow you to select the applications that you want to install and once you have made the selection you can download the unattended installer.

Well, to be frank with you I really do not see the need for this unless you don’t know how to add repositories or install simple stuff. Most of this (no, actually all of this except dropbox in my Fedora setup with the repositories that I have set). Now for one application why would I do that if that was available for Fedora. Any-ways pretty good for newbies, still.

Continue reading

bash script to run a command and take screenshot in every loop.

2010-09-24 2 min read Bash Fedora Learning Linux

Couple of days back, I had posted a command to display a stop timer with bash and echo. There I had also put the following gif file:

<img class="size-medium wp-image-2555" title="bash screenshot for the script output" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/09/temp-300x170.gif" alt="bash screenshot for the script output" width="300" height="170" />

Here the tricky part was to capture the jpg&#8217;s to create the gif file.

Preparation:

  1. Rename the terminal to aka – amit-capture

  2. Execute the command once with the import command and check the output and jpg&#8217;s

    Continue reading
Older posts Newer posts