Suramya's Blog : Welcome to my crazy life…

April 26, 2005

Find and bind key sequences in bash

Filed under: Tutorials — Suramya @ 1:37 PM

This Tip was taken from a TechRepublic article by Vincent Danen. It will allow the user to map unused key combinations to run custom commands in the shell.

To obtain the key sequence from a function key, use the read command. The following is an example of pressing the [F12] key:

$ read

^[[24~

Note that different keyboards will produce different key sequences, and modifiers to the function keys (such as [Ctrl][F12] or [Shift][F12]) will produce other sequences as well.

The next step is to bind that key sequence to a particular shell command. For example, you can bind [F12] to the ‘history-search-backward’ shell command:

$ bind ‘’\e[24~’: history-search-backward’

– Suramya

April 25, 2005

Export xterm to another system

Filed under: Tutorials — Suramya @ 2:33 PM

The following command allows you to start a xterm and export its display to another system with a white foreground on a black background . Very useful when working on headless systems

/usr/X11R6/bin/xterm -display :0.0 -fg white -bg black

– Suramya

A good collection of Debian Linux hints

Filed under: Tutorials — Suramya @ 4:04 AM

A good collection of Debian Linux hints and Tips:

http://www.hantslug.org.uk/cgi-bin/wiki.pl?LinuxHints/DebianTips

– Suramya

April 14, 2005

Subversion Tutorial

Filed under: Tutorials — Suramya @ 7:56 PM

Subversion is a really powerfull versioning system like CVS. Here’s a tutorial On subversion that tells you who to set it up : Subversion Tutorial

– Suramya

Debian Kernel Compile instructions

Filed under: Tutorials — Suramya @ 3:47 AM

Compiling a linux kernel is not an easy job if you don’t know what you are doing and most of the articles and tutorials out there don’t really make sense to me. I found a Debian kernel compile how-to by Falko Timme which does a really good job of explaining what to do and how to do it.

Check it out over here.

– Suramya

« Newer Posts

Powered by WordPress