Virtualbox – Tutorial for installing guest additions

July 20, 2011

http://digitizor.com/2009/05/26/how-to-install-virtualbox-guest-additions-for-a-linux-guest/

TinyOS

July 15, 2011

How to program a mote:
make telosb install,n bsl,/dev/ttyUSB0/

where n is the unique node id and /dev/ttyUSB0/ is the specific port that the mote is attached to.

Alternatively the mote can be programmed using the following command:

make telosb install,n bsl,ref M4A6J3PH

where M4A6J3PH is the unique id of the mote. To get the id, use the motelist command.

The right way to backup a virtualbox .vdi file

February 3, 2010

Follow the instructions in this page:

http://www.modhul.com/2009/06/17/how-to-clone-or-copy-a-virtualbox-virtual-disk/

In virtualbox, it is possible to define a shared folder that is accessible by both the host OS and the guest OS.
Given that guest OS is Linux, to access this shared folder run the following commands:
1. Create a mount point:
mkdir shareddir

2. Mount:
mount -t vboxsf share shareddir
where share is the shared folder

Installing quagga and Boeing’s implementation of OSPF MDR extension for running in GTNetS

February 1, 2010

1. Download quagga-0.99.9.tar.gz from http://hipserver.mct.phantomworks.org/ietf/ospf/ and run:

tar xvfz quagga-0.99.9.tar.gz

2. Download quagga-0.99.9.ospfv3-manetmdr-gtnets.patch from http://hipserver.mct.phantomworks.org/ietf/ospf/ to the quagga folder in 1. Run the following command:

patch -p1 < quagga-0.99.9.ospfv3-manetmdr-gtnets.patch

3. Run the following command in the quagga folder:

./configure

4. Comment out #define VERSION “0.99.9″ in config.h

5. Goto SRC/ under GTNetS directory and create a link to the quagga directory as follows:

ln -s  /home/user/quagga-0.99.9/ quagga

6. Goto GTNets and run the following command:

make depend

make debug

The installation is now completed

Installing GTNetS on Ubuntu Karmic Koala (9.10)

February 1, 2010

1. Download GTNetS-Oct-10-08.tar.gz from

http://www.ece.gatech.edu/research/labs/MANIACS/GTNetS/downloads.html

2. tar xvf GTNetS-Oct-10-08.tar.gz

3. GTNetS requires that the following :

  • g++   (g++32 does not work)
  • Qt3 (see FAQ on installations on Ubuntu)

4. g++ is usually preinstalled, so we need to install Qt3. This is an easy task using the Synaptics Package Manager under System -> Administration.

On Ubuntu you may need to install the following packages at the minimum:

  • libqt3-headers – Qt3 header files
  • libqt3-mt – Qt GUI Library (Threaded runtime version), Version 3
  • libqt3-mt-dev – Qt development files (Threaded)
  • qt3-dev-tools – Qt3 development tools

5. After having installed Qt3, we can now install GTNetS running the following command sequentially:

  • make depend
  • make debug
Note! If compilation errors occur for a given file, add the line “#include <cstring> ” in that file. If this doesn’t help,  add the line “#include <cstdlib> ” instead.

ns2 – how to debug segmentation faults

November 28, 2009

1. Set the limit of coredumps to really huge so that they are allways produced, in the terminal window, type:

ulimit -c 100000

2. add “-g” to the CFLAGS in the Makefile so that debugging is enabled. Run make clean and then make.

3.When a segmentation fault occurs, type: “gdb -c core“, then in gdb tell it that you want to load symbols from the ns executable with “file ns“,and then you can inspect the stack (“bt“), select a stack frame (“select 0“) and inspect the values of variables in that stack frame.

Ref. http://article.gmane.org/gmane.network.simulator.isi/2766/match=segmentation

Useful Linux commands

November 24, 2009

To list the locations of installed files for a given package:
dpkg -L eclipse

Check also the cheat sheet for dpkg command:
http://www.cyberciti.biz/howto/question/linux/dpkg-cheat-sheet.php

To display general information about a single package:
apt-cache showpkg eclipse

Find all files that begins with “wtrace.tr.” and ends with either one or two digits, e.g. “wtrace.tr.1″ or “wtrace.tr.10″ in current folder and recursive folders:
find -regex .*/wtrace.tr.[0-9]+

If we want to find the files as above and at the same time want to gzip all the files found, we may combine the previous command as follows:
find -regex .*/wtrace.tr.[0-9]+ -exec gzip {} \;


Follow

Get every new post delivered to your Inbox.