Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.
/ setup Public archive

πŸ“œ Set up ChromeOS and RaspberryPi.

License

Notifications You must be signed in to change notification settings

perguth/setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“œ Set up ChromeOS and RaspberryPi.

# Run this on the installation target: πŸ‘©β€πŸ’»
curl https://raw.githubusercontent.com/perguth/setup/master/README.md | sudo sh

API

setup user@target
# Be fast and repeatable!
# Update if already set up!
  • Preferably do all user promts before running blocking system calls to execute eg. apt.
  • Sane -y/--yes option. Else a Choose [ YES / no ] mechanism like provided by apt.
  • Summary and relevant information in the end (eg. Ygg address).
  • Use terminal-menu for UI.
  • Run update segments (eg. docker) in async processes but instead of callback or promise use nanobus.
  • Mutate and persist internal state using a nanobus.
  • Provide standard NPM commands. Use the NPM libs debug, per-env and nodemon. Surpass standard! Yes, you can! πŸ–οΈ
  • Keep code lean, avoid folders and else. Keep filesize between ~50 and 500 lines. Scope temporary variables and return often and always 😏 smirk!
  • The internal API should expose /update and /upgrade calls like apt does. Interface definition needs to be followed.
  • Prefer nanostack, server-router and Choo.

✨ Yep! Use a node REST server to provide a interface to a sh shell that then executes Bash.

(xo)