Skip to content

Instantly share code, notes, and snippets.

@askiiart
Created September 11, 2023 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save askiiart/fe420cf1527dc83380e02fbabfd1b782 to your computer and use it in GitHub Desktop.
Save askiiart/fe420cf1527dc83380e02fbabfd1b782 to your computer and use it in GitHub Desktop.
Configs for running stuff in Zybooks

This site runs on a textbook

Install Node and NPM

See install-node-npm.sh

Install cloudflared

sudo apt install cloudflared -y

Install next.js

npm install next@latest react@latest react-dom@latest
#!/bin/bash
# This script is needed because the built-in Node.js env is still on 14
echo "Use the bash Zybooks env"
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update --allow-insecure-repositories
sudo apt-get install nodejs -y --allow-unauthenticated
sudo apt install midori -y
echo "Now open the desktop and go to http://localhost:3000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment