Tools for teaching and doing data science without an internet connection
Early stage experiment
Clone the repository and from the root directory run:
pip install .pip install git+https://git@github.com/CarpenPi/web-free-data-science.gitFrom the command line run:
carpenpi download /path/to/download/to- Get a Raspberry Pi 4 (current testing uses the 4GB model)
- If the Raspberry Pi comes with NOOBS (many do)
- Download a new Raspbian image
- Download and install balenaEtcher
- Use balenaEtcher to flash the Raspbain image onto your Raspberry Pi's memory card. *This requires a memory card reader, which may have come with your Raspberry Pi or may need to be purchased separately.
- Boot up your Raspberry Pi and run the following from the terminal
sudo apt updatesudo apt upgrade
Install Internet in a Box using the one-line install script
- The installation will take about an hour
- It is recommend that you use an ethernet cable for internet connectivity if possible
- If you do install over wifi you need to "run
iiab-hotspot-onafter IIAB installation" - See details at iiab's install site
- If you do install over wifi you need to "run
- You will be asked a number of questions during the install script
- In general the default choices are good
- It is not necessary to edit the config file initially
- When asked to choose the size of the install choose the smallest option (this is fastests and what has currently been tested)
- OK, now you're ready. Tun the installer from the terminal
curl d.iiab.io/install.txt | sudo bash- Follow the instructions on the screen as you go. You may have to restart several times and restart the installation processes following the instructions provided on the screen.
- On a computer, tablet, or smartphone open the available wifi networks and see if
Internet in a Boxis available - Connect to this network
- Open a browser
- Navigate to
http://box - If you see a mobile site for Internet in a Box everything worked
- Install the R package miniCRAN
- Create a local CRAN mirror that contains all of your desired packages and their dependencies.
The following example installs
tidyverseand all of its dependencies, but you can add more packages to thepkgsline to expand this. Replace/pathwith where you want to store the CRAN mirror. Currently this should be an external harddrive.
library(miniCRAN)
repo <- "https://cran.rstudio.com"
pkgs <- c("tidyverse")
pkgList <- pkgDep(pkgs, repos=repo, type="source", suggests=FALSE)
makeRepo(pkgList, path="/path", repos=repo,
type=c("source", "win.binary", "mac.binary.el-capitan"))
- Follow official instructions (expansion of these instructions welcome, just haven't done it yet)
- This is ~1/4 TB so make sure that you have a large enough external harddrive
- Attach the external harddrive to your Raspberry Pi and restart
- The files should now be available at http://box/usb/usb0/path where
pathis the path on the external harddrive