Ubuntu及Tinyos安装

You can get Ubuntu from here http://www.ubuntu.org.cn/download

It provides Ubuntu 12.04LTS now.I choose the desktop version.

I have already installed WinXP system on my laptop.And as I'm not familiar with Linux,I choose to make my laptop a dual system one.So I can switch the systems when I need.

Looking for a easy way to install Ubuntu on your Windows system?With officially supported installer for Windows, you can install and uninstall Ubuntu easily and safely.Get the windows installer for Ubuntu here http://www.ubuntu.org.cn/download/desktop/windows-installer

Read the instructions and follow them.It is easy.Get your USB flash clean.Run the windows installer and follow the steps.

step 1 and 2:choose the linux version you download and browse the right path

step 3 and 4:select your flash,and you can format your flash fif you haven't.You'd better keep the optional choice unchanged.

then create the USB installer.

Reboot your computer and choose to boot from usb.

the install Ubuntu following the wizard.Not difficult.

NOTE:the Ubuntu system will be installed in the last disk.Backup your files and spare space for it.

The linux system disk type is ext2,you can't see the system files in WinXP.If your is large,modify the room to a reasonable figure when you install.

===================================================

Install tinyos

Do under text workstation,input the instruction:

1) Remove any old tinyos repository from /etc/apt/sources.list and add the following:
A common pool supports all Ubuntu distributions based on Debian Squeeze. Specifing lucid as the distibrution should work fine.

 deb http://tinyos.stanford.edu/tinyos/dists/ubuntu lucid main

2) Update your repository cache:

 sudo apt-get update

3) Run the following to install the latest release of tinyos and all its supported tools:

 sudo apt-get install tinyos

This will likely give you a message telling you to choose between the two available versions. An example to then execute is:And the new version 2.1.2 has been provided

sudo apt-get install tinyos-2.1.2

4) Add the following line to your ~/.bashrc or ~/.profile file in your home directory to set up the environment for TinyOS development at login

 #Sourcing the tinyos environment variable setup script
 source /opt/tinyos-2.1.2/tinyos.sh

You can change the source path as you set.I change it to /etc/profile.d/tinyos.sh

5)You should write a new tinyos.sh if it doesn't exist.

 file should be written like this

 

# script for profile.d for bash shells, adjusted for each users

 

# installation by substituting /opt for the actual tinyos tree

 

# installation point. 

 

TOSROOT="/opt/tinyos-2.x"

 

TOSDIR="$TOSROOT/tos"

 

CLASSPATH="$TOSTOOT/support/sdk/java/tinyos.jar:."

 

 

MAKERULES="$TOSROOT/support/make/Makerules"

 

export TOSROOT

export TOSDOR

export CLASSPATH

export MAKERULES

 

NOTE:You should restart your terminal or workstation,then the settings will work right.

 

转载于:https://www.cnblogs.com/junka/archive/2012/09/22/2697995.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值