Tuesday, November 24, 2009

Thursday, October 29, 2009

GloMoSim with Ubuntu

  • Download GloMoSim from here
  • Uncompress glomosim-2.03.tar.gz file
$tar -xzvf glomosim-2.03.tar.gz

  • Set Environment variable
$ gedit ~/.bashrc
Then add following lines
PCC_DIRECTORY=GloMoSim_ROOT/glomosim-2.03/parsec/redhat-7.2
export PCC_DIRECTORY


  • Copy both files pcc and parsecc from glomosim-2.03/parsec/redhat-7.2/bin/ dir and copy into usr/bin dir
$ sudo cp glomosim-2.03/parsec/redhat-7.2/bin/pcc glomosim-2.03/parsec/redhat-7.2/bin/parsecc usr/bin


  • Goto glomosim-2.03/glomosim/main dir and run make.
$ cd glomosim-2.03/glomosim/main
$ make

Monday, August 3, 2009

How to configure Epic with TinyOS

1) Download tos-platforms.zip and Unzip in $TinyOS_ROOT/tos/platforms/

where $TinyOS_ROOT= /opt/tinyos-2.1.0 for ubuntu


$ cd $TinyOS_ROOT/tos/platforms/

$ unzip tos-platforms.zip



2) Download support-make.zip and Unzip in $TinyOS_ROOT/support/make/



$ cd $TinyOS_ROOT/support/make/

$ unzip support-make.zip



3) Finally, to compile/install Blink on Epic, type:



$ cd $TinyOS_ROOT/apps/Blink

$ make epic install

Monday, March 23, 2009

Problem With Sun virtualbox in Ubuntu 8.10

Error : No suitable module for running kernel found

Installing linux-headers-`uname -r`

1) Open the terminal (we will be using it through most of my guide) from Applications > Accessories > Terminal

sudo apt-get install linux-headers-`uname -r`

( This packet is not installed by default when kernel install so we have to install this packet manually )

2)

sudo /etc/init.d/vboxdrv setup


Now it is working :)

Wednesday, March 4, 2009

Installing LAMP on Ubuntu 7.10/8.04/8.10 (Linux,Apache,MySQL,PHP)

Installing Apache on Ubuntu 7.10/8.04/8.10

1) Open the terminal (we will be using it through most of my guide) from Applications > Accessories > Terminal

2) Install apache2 using apt-get by typing the following


sudo apt-get install apache2


a) start/stop apache2 write:

sudo /etc/init.d/apache2 start


sudo /etc/init.d/apache2 stop

If everything is OK you should see an ordinary HTML page when you type: http://localhost in your firefox browser.

Your www folder should be in: /var/www/



Installing PHP on Ubuntu 7.10/8.04/8.10

1) Also in terminal write:

sudo apt-get install php5 libapache2-mod-php5


2) restart apache

sudo /etc/init.d/apache2 restart

This is it for PHP :D Wanna test it ? Just create an ordinary PHP page in /var/www/ and run it.
Example:

sudo gedit /var/www/test.php

and write in it:

Echo "Hello, World!";
?>


Now run it by typing http://localhost/test.php in firefox… You should see your ” Hello World ”



Installing MySQL on Ubuntu 7.10/8.04/8.10


1. Again and again in terminal execute:

sudo apt-get install mysql-server

2. (optional) If you are running a server you should probably bind your address by editing bind-address in /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP address
3. set your root password (although mysql should ask you about that when installing)


mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(’xxxxxx’);


4. Try running it

mysql -uroot -pxxx

where xxx is your password.
Note: You can install PHPMyAdmin for a graphical user interface of MySQL by executing

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


5. restart apache

sudo /etc/init.d/apache2 restart


Problems with PHP installation :

1) I try to run a PHP file it comes up with a dialog box asking me to download a .phtml file.

-> Install lamp-server by help of follwoing command

sudo tasksel install lamp-server

or

SYS->ADMIN->SYNAPTIC->EDIT->MARK PACKAGES BY TASK->LAMP SERVER