sudo aptitude install --with-recommends python3-pip python3-dev nginx uwsgi uwsgi-plugin-python3 virtualenv
mkdir sensor-logger
cd sensor-logger
virtualenv --python=python3 .venv
source .venv/bin/activate
pip install -r requirements.txt
#start the application
python server.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #STEP1: Install requirements. | |
| ## Assumes a clean Ubuntu 20.04 host OS | |
| sudo apt-get install debian-ports-archive-keyring | |
| sudo apt-get update | |
| sudo apt-get install gcc-riscv64-linux-gnu qemu-system-misc opensbi qemu-user-static binfmt-support debootstrap libguestfs-tools | |
| wget http://za.archive.ubuntu.com/ubuntu/pool/universe/u/u-boot/u-boot-qemu_2020.04+dfsg-2ubuntu1_all.deb | |
| sudo dpkg -i u-boot-qemu_2020.04+dfsg-2ubuntu1_all.deb | |
| #STEP2: Create a RISC-V filesystem using chroot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'> | |
| <h2>Gist-Powered</h2> | |
| <h1>Reveal.js</h1> | |
| <h2>Slideshow Presentations</h2> | |
| <br/> | |
| <h1 class='fragment grow'><a style='color:red;' href='http://gist-reveal.it'>gist-reveal.it</a></h1> | |
| </section> | |
| <section data-background-transition='zoom' data-transition='linear' id='try-it'> | |
| <h2>Wat doen hierdie</h2> | |
| <p>Create your own deck by forking a copy of <a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>this github gist</a>: <br /><a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>https://gist.github.com/ryanj/af84d40e58c5c2a908dd</a></p> |