I use Minicom as a serial terminal in most of my embedded systems projects. Recently I discovered how to use a Minicom session inside another Minicom session. It is not a trivial matter if you don’t know how to change the settings in Minicom. This was helpful when other means of accessing the terminal in the target system such as ssh were unavailable.

When started without special command line arguments, Minicom defaults to Ctrl-A as the command key combination. Once you have issued Ctrl-A, you can press any of several keys which do different things.

Minicom main menu

Minicom main menu

In order to run another Minicom session within the one you are running currently, you need to change the command key (Default Ctrl-A).  You would do this by doing the following steps:

1. Ctrl-A o

2. Screen and Keyboard

3. A

4. Press the new key combination (I changed mine to Ctrl-B)

Minicom configuration menu

Minicom configuration menu

Minicom's screen and keyboard configuration menu

Minicom's screen and keyboard configuration menu

Minicom's menu for changing command key

Minicom's menu for changing command key

Now that you have changed the the command key combination for your first Minicom session, you can start another session.  Obviously this would work only if the second Minicom session is setup to use a command key other than Ctrl-B.  Since the default is Ctrl-A, you don’t have to do anything to the second session.  You can probably run even more Minicom sessions by just changing the command key but I have never tried it.  Besides, if you need more sessions, you probably ought to find a better way of accessing the target system.

Two minicom sessions

Two Minicom sessions

Here is a small command that can be used to copy a file to several other files. That is, if you have a file called test and you want 5 copies of it names test1,test2,…test5, you would use this command:

1
for i in {1..5}; do cp test{,$i};done

I have submitted it to commandlinefu which is proving to be a pretty useful website.

This is a quick tip on making video from the Logitech Quickcam work on skype. I haven’t thoroughly tested this but its working for me. You may potentially need to install some more packages. I tested this on my webcam with usb info 046d:08da Logitech, Inc. QuickCam Messanger.

Install the v4l library:
1sudo [...]

If you use one of the many Debian derived distributions such as Ubuntu, you may be familiar with the network interfaces file located at /etc/network/interfaces.  This file is part of the ifupdown package and gives users a high level access to configure how their system is connected to the network.  One really cool feature [...]

Here is a quick tip on how to insert the svn revision number in your c/c++ code.  This is a simple Makefile trick that will define a preprocessor constant that holds the revision number of your project.  It only works if you are using gcc as your compiler, and GNU version of make.  You [...]

Creating a wireless ad-hoc network on linux is a fairly simple task.  The only problem might be with the wifi device drivers as some may not support this feature.  Make sure the normal wifi connection ( connection to an access point) works.  If you have two Machines A and B this is what you [...]