Skip to content

leakec/Cookbook

Repository files navigation

Cookbook | Build

About

This repository stores some recipes I like in a convenient to access cookbook. I'm making it public so I can access it from anywhere, but this is not an actively maintained or quality-controlled respository.

Build

The following steps can be used to build the website:

  1. Run "make all"
  2. Open the server using the link provided by the mkdocs output.
  3. Use "ctrl + C" to close the server when done.

Local file build (no server)

The following steps will build the website locally. Note, the search functionality will not work when building locally.

  1. Run "make local"
  2. Open site/index.html to view the cookbook.

Setting up website for at home viewing V2

These steps will make your website viewable on your local network from a name like myhost.local.

  1. Create apache2 website. Follow this tutorial
  • May need to add sudo ufw allow 'Apache' to allow access from home network.
  • Will need to add all the files from site to your website, e.g., sudo cp -r site/* /var/www/home/
  • Worth double checking here that it is viewable locally. Can you use the computers IP address for this, or just localhost.
  1. Use mDNS to host website over local network. Note, you will need to make the ServerName=myhost.local, where myhost matches the host-name in /etc/avahi/avahi-daemon.conf

To automatically enable apache2 on startup, use: sudo update-rc.d apache2 enable To disable use: sudo update-rc.d apache2 disable

Releases

No releases published

Packages

No packages published