Skip to content

Instantly share code, notes, and snippets.

@hak8or
Last active August 29, 2015 14:19
Show Gist options
  • Save hak8or/640dea2bada905cf3146 to your computer and use it in GitHub Desktop.
Save hak8or/640dea2bada905cf3146 to your computer and use it in GitHub Desktop.
Getting started with JD-beacon-board on ubuntu

Instructions

Download the latest Ubuntu (14.10 as of now) from the Ubuntu site and make a virtual machine using that ISO via virtualbox.

When you are done installing Ubuntu, run the following in a terminal to satisfy various dependancies. You can copy and paste this into the terminal fully or line by line.

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y ruby-dev git g++
sudo gem update # This one takes a while and generates an error, it's ok.
sudo gem install bundler

Now we need to clone the git repo and enter the appropriate directory.

git clone https://github.com/ktemkin/JD-beacon-board.git
cd JD-beacon-board/pc_software

Run bundle to handle all the gem dependencies.

bundle

Go into the location of where the ruby app is and start said ruby app.

cd apps/beacon_tester

And .... libudev.so is missing! And because Ubuntu's repo's are not maintained well and whatnot, this is a terrible pita to fix. Here is a very nasty way to fix this, My the gods forgive me!

sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so

And lastly, to start the ruby app!

ruby beacon_tester.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment