Skip to content

Instantly share code, notes, and snippets.

@zenxedo
zenxedo / TrueNAS Setup.md
Last active April 21, 2023 17:36 — forked from jacobblock/FreeNAS.md
Ultimate FreeNAS 11.3 iocage Setup

TrueNAS

I will be moving from FreeNAS jails to ubuntu with docker, docker compose, and portainer. FreeNAS support and updates are lacking. There are many advantages to making the switch and with ZFS on linux I think FreeNAS may be a thing of the past. Stay tuned for a new guide of my latest setup. Check out my other gists for progress on the switch. https://gist.github.com/mow4cash/626275e095f7f90898944a85d66b3be6

WARNING READ THIS: This page contains incomplete and possibly incorrect info. The page is constantly being edited and worked on. Many of these should work but some may be broken. Read the code carefully to understand what you are doing, stuff may be need to be changed for your own use. This includes but not limited too JAIL AND ROUTER IPs, YOUR FREENAS MAIN VOLUME,THE MOST RECENT RELEASE OF DOWNLOADED FILES Use at your own risk.There may be helpful info in the comments.

Find me in the FreeNAS forums

@zenxedo
zenxedo / grafana.txt
Last active May 10, 2017 23:18
Grafana setup FreeNas
Graphite
Change port 8125 to UDP
Cadvisor
add folder paths
VM / = /rootfs
VM /sys = /sys
VM /var/lib/docker = /var/lib/docker
VM /var/run = /var/run

ZFS

zpool status -v #shows zpool status infos

zpool iostat 1 #shows IOps and R/W bandwidth every second

zfs list -t snapshot #lists all the snapshots, add | grep "" to filter

arc_summary.py #shows ARC stats

These are the basic settings I use on a fresh install of FreeNAS. This is for my personal use so some things may not apply to your situation. I made it public becuse it may help others.

ACCOUNTS
Add email address to root user
SYSTEM
general: select freenas cert and check WebGUI HTTP -> HTTPS Redirect
https port 443
Change Timezone
advance: enable show console message
email: setup gmail smtp using using 587 tls
@zenxedo
zenxedo / index.html
Created February 3, 2019 20:55 — forked from mrandyclark/index.html
powerzone generator web version
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
@zenxedo
zenxedo / FreeNAS,Rancher,Portainer
Last active June 11, 2023 15:13
FreeNAS,Rancher,Portainer
Credit here: https://www.ixsystems.com/community/threads/howto-freenas-11-rancheros-docker-and-portainer.54595/
So when FreeNAS 11 came, I updated from 9.10 to get rolling on the new options. Unfortunately this killed my VirtualBox jail that I was using to run some services I couldn't get working in a jail. So I started looking on how to get Docker running under FreeNAS 11 so I could replace those services and get some future proofing for the 11.1 and onward releases that should support Docker out of the box. From the posts on the forums they look to be heading for RancherOS as the underlying Docker operating system.
I originally tried to get this working under the default VM tab in the new interface, but it was not cooperating. I then moved over to using iohyve and bhyve from the command line to get this working. Here are the basic steps I used to get this kicking.
Prep
Setup the iohyve pool and options. Select where the pool you want, and the main network card you want attached.
iohyve setup pool=<stora

This is a work in progress, proceed with caution

Install Proxmox and a Ubuntu VM with Portainer to manage docker containers

Setup Proxmox

  1. Install Proxmox 6.X iso I selected 2 drives in Raid 1 mirror
  2. Console/SSH into Proxmox
  3. nano /etc/apt/sources.list
@zenxedo
zenxedo / digitalocean-promo-coupon-code-free-trial.md
Last active November 28, 2023 12:36
DigitalOcean Coupon Code $100 60 days

alt text

I recently began using Digital Ocean and found some links to get a $100 credit for the first two months. Use my refferal links and you help me out and yourself. Make sure to check out my gists for some helpful guides.

Get $100 Credit For 60 Days.

Steps To Get Free Credit