Skip to content

Instantly share code, notes, and snippets.

@LiteBrick204
Last active November 8, 2022 14:58
Show Gist options
  • Save LiteBrick204/9788758d7607cbf38e39adfd1e459ee0 to your computer and use it in GitHub Desktop.
Save LiteBrick204/9788758d7607cbf38e39adfd1e459ee0 to your computer and use it in GitHub Desktop.
Cooja Installation for Ubuntu via terminal
#!/bin/sh
sudo apt update
sudo apt upgrade
sudo apt install build-essential dkms linux-headers-$(uname -r)
sudo apt install openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=${PATH}:${JAVA_HOME}/bin
sudo apt-get install binutils-msp430 gcc-msp430 msp430-libc msp430mcu mspdebug gcc-arm-none-eabi gdb-arm-none-eabi openjdk-8-jre ant libncurses5-dev
git clone https://github.com/contiki-os/contiki.git contiki
cd contiki/tools/
ls mspsim
#Check if mspsim folder is empty then do the following step
rm -f mspsim
cd
git clone https://github.com/contiki-ng/mspsim.git mspsim
mv mspsim contiki/tools/mspsim
#If mspsim folder is not empty then proceed to cooja folder
cd cooja
#After adding mspsim, do the following
cd contiki/tools/cooja
ant run #This is common for all
#If error occurs run the following
git submodule update --init --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment