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.