Skip to content

Instantly share code, notes, and snippets.

View jdwoody's full-sized avatar

Justin Woody jdwoody

View GitHub Profile
@jdwoody
jdwoody / config.sh
Created February 9, 2022 16:41
macOS Time Machine backups to SmartOS SMB
#!/bin/bash
# I generally run this one command at a time, script format is for syntax highlights
# Tested personally with macOS Big Sur on Intel mac, use at your own risk, zero warranty
# Requires delegate dataset, refer to tm.json zone config. Uses base-64-lts, 21.4.0
#
# References:
# Respect to Brian Bennett @ Joyent
# https://datasets.at - zone generation
# https://illumos.topicbox.com/groups/discuss/T97ac7717dd31b5b5-Mb58fec102ab950b3bbc54843 - smb support thread
# https://wiki.smartos.org/configuring-smb-in-smartos/ - smb guide for SmartOS
@jdwoody
jdwoody / README
Last active July 5, 2021 12:31
Nextcloud on SmartOS
These scripts install nextcloud on Apache in a SmartOS Zone.
Replace the necessary values in nc.sql, httpd.conf, and smartos.json (look for [your... ])
Use the json below to create the nextcloud zone: vmadm validate create -f smartos.json && vmadm create -f smartos.json
Place the install.sh, nc.sql, httpd.conf, and php.ini file into the nextcloud zone
This script assumes mysql is installed on another server/zone and the root user can login from this zone. You can modify the script
to install mysql server if needed.
Run ./install.sh