msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change...
Transcript of msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change...
![Page 1: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/1.jpg)
Step 1: Install VirtualBox
Link: https://www.virtualbox.org/wiki/Downloads
Choose respective platform
Install VirtualBox – a standard installation process, just follow steps from Installer
Tested on VirtualBox 5.0.14 for Windows hosts x86/amd64
Step 2: download Ubuntu iso
Link :- http://www.ubuntu.com/download/desktop
Tested on Ubuntu 14.04.3 LTS 64 bit.
Step 3: In this step install Ubuntu in virtual box
Following following step:-
Open VirtualBox, you will get following scree. (ignore Ubuntu1404 in bellow screensot, its already created virtual system in my machine)
![Page 2: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/2.jpg)
Click on new, enter name , select type and version. Click on next.
Select Memory size (Recommended size is ok, you can increase. 1.5 GB or 2 GB more than enough) click on next.
![Page 3: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/3.jpg)
Choose option 2 (create a virtual disk now) and click on create .This will be the space where you will be installing Ubuntu
Select first option, click on next
![Page 4: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/4.jpg)
Dynamically allocated
select location and size , click on create
A new virtual machine gets created
![Page 5: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/5.jpg)
If you don’t change and default setting. All the files related to your virtual machine will be in following pathC:\Users\<USERNAME>\VirtualBox VMs\ubuntu
Till now we have create a virtual machine, Now Lets install Ubuntu on Virtual machine
Click on settings
![Page 6: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/6.jpg)
Navigate as per below screenshot in settings window
Storage -> select empty -> in Attributes section select small cd icon -> click on choose Virtual Optical Disc File
Browse to the location where you have download Ubuntu iso file ( i.e. download file in step 2)Click on open
Click ok
![Page 7: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/7.jpg)
You will land up as below window. Now right click on virtual machine and click on Normal Start
Once loaded you will below Ubuntu installation window
Click on Install Ubuntu.
![Page 8: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/8.jpg)
From you can follow standard Ubuntu Installation procedure. It will take 20-25 min to install Ubuntu. Its Standard Process, you can use below link for helphttp://www.ubuntu.com/download/desktop/install-ubuntu-desktop
Step 4: In this step install TinyOS
(Note : - : ~$ -> command to be typed in terminal)-----------------------------------------------------------------------------------------------------------------------------------
step 1: set source : ~$ sudo gedit /etc/apt/sources.list
Above command will open sources.list file , add following lines at at the end sources.list
#TinyOS Repositorydeb http://tinyos.stanford.edu/tinyos/dists/ubuntu lucid main
-----------------------------------------------------------------------------------------------------------------------------------
step 2: install from above source
: ~$ sudo apt-get update: ~$ sudo apt-get install tinyos-2.1.2
-----------------------------------------------------------------------------------------------------------------------------------
step 3 : give access to folder use following commandput username in place if <username>
: ~$ sudo chown <username>:<username> -R /opt/tinyos-2.1.2/: ~$ sudo chown <username> -R /opt/tinyos-2.1.2/
- Now navigate to following directory. Opt directory will be at same level as home directoy
/opt/tinyos-2.1.2/
- Create “tinyos.sh” file
: ~$ sudo gedit tinyos.sh
- Add following lines to “tinyOS.sh” file
echo "Setting up tinyOS-2.1.2"export TOSROOT=export TOSDIR=
![Page 9: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/9.jpg)
export MAKERULES=
TOSROOT="opt/tinyos-2.1.2"TOSDIR="$TOSROOT/tos"CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/javaMAKERULES="/opt/tinyos-2.1.2/support/make/Makerules"
export TOSROOTexport TOSDIRexport CLASSPATHexport MAKERULES
- Edit bashrc file, use following command
: ~$ sudo gedit ~/.bashrc
- Add following to bashrc file
#start tinyOS environment pathingexport TOSROOT=/opt/tinyos-2.1.2export TOSDIR=$TOSROOT/tosexport CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.$CLASSPATHexport MAKERULES=$TOSROOT/support/make/Makerulesexport PATH=/opt/msp430/bin:$PATHsource /opt/tinyos-2.1.2/tinyos.sh
#end tinyos pathing
- Update bashrc file with following command: ~$ source ~/.bashrc
-----------------------------------------------------------------------------------------------------------------------------------
step 4 :- Navigate to opt/tinyos-2.1.2/support/sdk/java , now use following command
: ~$ sudo tos-install-jni
: ~$ make
: ~$ make install
-----------------------------------------------------------------------------------------------------------------------------------
step 5 :- update GCC compiler to latest version- to check current version -
![Page 10: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/10.jpg)
: ~$ msp430-gcc –version
- to remove current verison -: ~$ sudo apt-get autoremove --purge msp430*
- add key : ~$ gpg --keyserver keyserver.ubuntu.com --recv-keys 34EC655A: ~$ gpg -a --export 34EC655A | sudo apt-key add -
- add MSP compiler path to source file
: ~$ sudo gedit /etc/apt/sources.list
- add following sources to sources.list file, add at the end
#TinyOS MSP430 GCC Compiler Repositorydeb http://tinyprod.net/repos/debian squeez maindeb http://tinyprod.net/repos/debian msp430-46 main#End TinyOS MSP430 GCC Compiler Repository
- Update from sources.list file
: ~$ sudo apt-get update: ~$ sudo apt-get install msp430-46 nesc tinyos-tools
- update bashrc file
: ~$ sudo gedit ~/.bashrc
- add below line to bashrc file, below export PATH which is already there in bashrc file
export PATH=/opt/msp430-46/bin:$PATH
- Update bashrc file with following command
: ~$ source ~/.bashrc
-----------------------------------------------------------------------------------------------------------------------------------Additional section :
- Open new terminal and add your username using following command. Put actual username in place of <username>
: ~$ sudo adduser <username> dialout
- Give write access to mote
![Page 11: msha/426526/Guideline on i… · Web viewA new virtual machine gets created If you don’t change and default setting. All the files related to your virtual machine will be in following](https://reader033.fdocuments.net/reader033/viewer/2022060302/5f089c2f7e708231d422dbcd/html5/thumbnails/11.jpg)
: ~$ sudo chmod a+rw /dev/ttyUSB0