Coder Social home page Coder Social logo

grabear / raspbian-shinyserverandpython36 Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 5.0 34 KB

Installation scripts for Python 3.6.2 and Shiny-Server

Shell 92.35% R 7.65%
data-science shiny-apps shiny rshiny shiny-server raspbian raspbian-stretch raspberry-pi-3 python3 python36

raspbian-shinyserverandpython36's Introduction

Install Shiny Server and Python 3.6.0 on Raspbian

Overview

The purpose for this project is to install Shiny Server and Python on the Raspian OS for Raspberry Pi.

Pre-Requisites:

The current setup has been tested on Raspbian Stretch with a Raspberry Pi 3 Model B. The installation will take some time; especially over wifi. It is recommended to run this over ethernet.

It's recommended to run the installation one step at a time OR do the full installation when you have several hours to allow it to complete.

Full Installation

To run the full installation use master-install.sh. Again, recommended to do this overnight or when you can dedicate several hours for completion.

The following software will be installed with the full installation:

  • APT packages
    • R dependencies
      • libxml2-dev, libssl-dev, libcurl4-openssl-dev, libssh2-1-dev
    • Python dependencies
      • cmake
      • build-essential, tk-dev, libncurses5-dev, libncursesw5-dev, libreadline6-dev, libdb5.3-dev, libgdbm-dev, libsqlite3-dev, libssl-dev, libbz2-dev, libexpat1-dev, liblzma-dev, zlib1g-dev
  • R and R packages
    • CRAN
      • devtools, shiny, shinythemes, shinyBS, shinyjs, europepmc, DT, data.table, markdown, rclipboard, shinycssloaders, shinydashboard, shinyFiles, shinyFeedback,shinyHeatmaply, shinyjqui, shinyWidgets, bsplus, colourpicker
    • GitHub
      • cstubben/euPMC, robear22890/shinyLP, mkuhn/dict, ayayron/shinydnd, Appsilon/shiny.semantic, rstudio/miniUI, zachcp/msaR
    • Bioconductor
      • ggtree, cummeRbund
  • Shiny-Server
  • Python 3.6.2
    • PyPI
      • pandas >= 0.19.2
      • slacker == 0.9.42
      • biopython == 1.70
      • cookiecutter == 1.5.1
      • sciluigi == 0.9.5b6

To run full installation:

pi@raspberrypi $ . master-install.sh

Python 3.6.2 Installation

Python 3.6.2 installation on Raspbian was inspired by this Gist.

To install python 3.6.2:

pi@raspberrypi $ . master-python3.6.2-install.sh

This installation script also installs the PyPI packages in requirements.txt file. If you do not desire these packages, then comment out the following lines in the py3.6.2-install.sh file:

sudo apt-get -y autoremove
sudo apt-get -y clean

# Install python packages
# cd $DIR
# pip install -r requirements.txt

# Update system
sudo apt-get -y update
sudo apt-get -y upgrade

Alternatively, you can rewrite the requirements.txt file to fit your own needs.

Note: At the time of writing this guide Python 3.6.2 was the latest release. If a newer release is available via the python website, then please make a pull request that changes the various file names and code. You may also feel free to manually change them yourself.

R Installation

To install R :

pi@raspberrypi $ . master-R-install.sh

Shiny-Server Installation

Shiny-Server installation on Raspbian was inspired by R-Studio's guide here.

To install Shiny-Server:

pi@raspberrypi $ . master-shiny-server-install.sh

After shiny server is installed it will automatically run on reboot. In order to remove this functionality comment out the following lines in the shiny-server.service file:

[Service]
Type=simple
ExecStart=/usr/bin/shiny-server
#Restart=always

ExecReload=/bin/kill -HUP $MAINPID
ExecStopPost=/bin/sleep 5
RestartSec=1

[Install]
WantedBy=multi-user.target

Future Release Features

  • R-Studio-Server Installation

raspbian-shinyserverandpython36's People

Contributors

grabear avatar grabearummc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

raspbian-shinyserverandpython36's Issues

I did the install... now what?

Thank you for making this shiny-server install method. I let it run all night as suggested. The next day I log into my raspberry and the cmd line is not open. I assumed it must have rebooted after it finished. Now how to I run the server and host a shiny app?

Thank you for your help. I am very new to shiny and R and hosting a web app on a local machine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.