marcozennaro / IPv6-WSN-book

GNU General Public License v3.0
152 stars 78 forks source link

[suggestion] installing contiki #16

Open bliz937 opened 8 years ago

bliz937 commented 8 years ago

Going over p43, 3.1.1, why not provide a one liner to install Contiki.

Have the package installation code block on a file in this repo, or a gist, and have a simple line such as:

curl -s https://raw.githubusercontent.com/marcozennaro/IPv6-WSN-book/master/contiki-install.sh | bash
alignan commented 8 years ago

If you contribute one, I will be happy to test and include :-)

bliz937 commented 8 years ago

The idea is that if things change, people with an old copy of the book will not have problems - assuming the code is maintained.

I don't do bash script often, but I think this is a starting point.

https://gist.github.com/bliz937/32a801e2358e40237cff9c95a9adaeeb

I used

curl -s https://gist.githubusercontent.com/bliz937/32a801e2358e40237cff9c95a9adaeeb/raw/4e8df5474fed78a90e1b516c6fea951f2a1358f6/contiki-install.sh | sudo bash

to run it.

I think it would be better to have this code in the repo as apposed as a gist as I noticed that getting the raw of a gist includes the commit in the url.

edit: Better yet, have the url as a shortened link (bit.ly, goo.gl) and you can see how often people use it.