Skip to content

Instantly share code, notes, and snippets.

View baetheus's full-sized avatar

Brandon Blaylock baetheus

View GitHub Profile
@baetheus
baetheus / README.md
Last active December 17, 2023 14:28
SmartOS Single IP with NAT using VLAN

WARNING

These intructions might work, but they need a bit of attention. I've been reading through ipf and smf documentation and have found a few ways to improve this process. When I have time I'll add that information here, until then, be sure to look into the ipf settings if you're having issues with routing. Good luck!

Foreword

This is a modified version of sjorge's instructions for Single IP with NAT. Those instructions can be found here: https://docu.blackdot.be/snipets/solaris/smartos-nat

The primary difference is that this version does not rely on etherstubs for internal switching, but instead uses a vlan configuration. The benefits of this method over using etherstubs are:

  1. Project Fifo (project-fifo.net) can create vms and zones with vlans, but does not currently have etherstub support.
  2. Vlan switching is supposedly more efficient than creating an etherstub to handle switching. I have not tested this statement.
@baetheus
baetheus / ..README.md
Last active August 29, 2015 14:10
Brandon's Simple Env Setup
@baetheus
baetheus / README.md
Last active April 12, 2020 12:34
Compiling NZBGet 15.0

NZBGet 15.0 on SmartOS

Introduction

Documentation on compiling NZBGet 15.0 on a SmartOS minimal-64 15.1.1 zone. Perhaps I'll try my hand at contributing to pkgsrc at some point, but for now this will do. NZBGet is a very fast and very lightweight nzb downloader. More information on it can be found here.

Prerequisites

pkgin -fy up
pkgin -y fug
pkgin -y in gmake gcc47 unrar p7zip libxml2 unzip

groupadd -g 500 nzbget

@baetheus
baetheus / .README.md
Last active November 14, 2015 21:09
Running Sickbeard in a SmartOS Zone

Sickbeard on SmartOS

Introduction

Documentation on installing and setting up SickBeard on a SmartOS base64 14.3.0 zone. These instructions assume a fresh zone creation of image 62f148f8-6e84-11e4-82c5-efca60348b9f.

Prerequisites

Make sure to copy the following line by line and confirm that each runs successfully. All of the following are run from the root shell.

pkgin -fy up

pkgin -y fug

@baetheus
baetheus / .README.md
Last active November 26, 2016 13:43
Running Couchpotato in a SmartOS Zone

Couchpotato on SmartOS

Introduction

Documentation on installing and setting up Couchpotato on a SmartOS base64 14.3.0 zone. These instructions assume a fresh zone creation of image 62f148f8-6e84-11e4-82c5-efca60348b9f.

Prerequisites

Make sure to copy the following line by line and confirm that each runs successfully. All of the following are run from the root shell.

pkgin -fy up

pkgin -y fug

@baetheus
baetheus / vmbup.sh
Last active September 12, 2019 23:21
Zone Backup Script
#!/bin/sh
# This script will backup all smartos zones to remote servers
# or local directories.
# Brandon Blaylock ([email protected])
### Defaults
FTPHOST=
SCPHOST=
LOCALDIR=
@baetheus
baetheus / .README.md
Last active August 29, 2015 14:15
Headphones on SmartOS

Headphones on SmartOS

Introduction

Documentation on installing and setting up Headphones on a SmartOS base64 14.3.0 zone. These instructions assume a fresh zone creation of image 62f148f8-6e84-11e4-82c5-efca60348b9f.

Prerequisites

Make sure to copy the following line by line and confirm that each runs successfully. All of the following are run from the root shell.

pkgin -fy up

pkgin -y fug

@baetheus
baetheus / .README.md
Last active December 2, 2017 00:23
Unbound on OS X Yosemite

Unbound on OS X Yosemite

Introduction

These are instructions for properly setting up unbound as a local caching dns recursor on OS X Yosemite. There's probably some additional stuff that can be done to secure unbound, but I'm still getting into the OS X launchd stuff. Also,

Prerequisites

Bootstrap pkgsrc from joyent as soon as you can. I used to use homebrew, but I'm not a huge fan of ruby. You can of course avoid using the binary package set from joyent if you like, and instead install pkgsrc manually and build unbound yourself. Pkgsrc is also available on a wide array of platforms, so it's nice to have consistency across os x, linux, and illumos.

Install and Configure Unbound

Run Netatalk in a SmartOS zone

This guide is based on this blog post: http://blog.smartcore.net.au/blazingly-fast-afp-on-a-smartos-zone/.

Import image and create virtual machine

Find the latest image, in this case 4166f6d6-ea5f-11e4-addd-8351b159d9b6 (15.1.0), or 24648664-e50c-11e4-be23-0349d0a5f3cf (14.4.1) if you need Long Term Support (LTS).

# imgadm avail | grep base-64

Transmission on SmartOS

Please Note: This documentation is a first draft and is missing a lot of nuance. Running transmission as root on a public server is dangerous, be advised.

Introduction

Documentation on installing and setting up Transmission on a SmartOS minimal-64 15.1.1 zone.

Prerequisites

Make sure to copy the following line by line and confirm that each runs successfully. All of the following are run from the root shell.

pkgin -fy up