This document is for readers familiar with Python who wish to apply that
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OVH no longer provides an option to install SmartOS on its dedicated servers. Luckily, we can boot the machine using IPXE and use IPMI to run through the setup proces on the kvm console. The OVH/SoYouStart manager interface doesn’t give direct access to that, but luckily SYS and OVH have identical REST APIs. | |
| First, set up a webserver somewhere and dump the platform directory you want to boot from into a folder on that webserver. For example, I’m using /smartos. | |
| NOTE: if you don't need to boot a customized smartos platform image, you might be able to use the hosted image discussed here: https://docs.smartos.org/pxe-booting-smartos/ | |
| NOTE: it seems these endpoints aren't available any more, but OVH has a document that describes the new approach (the ipxe script goes in the "bootScript"attribute of your server's record): | |
| https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/ipxe-scripts | |
| The parts of the gist above and notes below are still valid in terms of the IPXE script and setup, just t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Licensed under CC BY 3.0 http://creativecommons.org/licenses/by/3.0/ | |
| # Derived works must attribute https://gist.github.com/4492300 at the beginning, and the date. | |
| ################################################################## | |
| Installing and Configuring SmartOS at Hetzner (with a /29) | |
| ################################################################## | |
| # This is another version of Jahewson's Gist here: https://gist.github.com/jahewson/4492300 that adds a gate to prevent packets | |
| from leaking out from the main MAC address. |
Hetzner no longer offers direct install of FreeBSD, but we can do it ourselves. Here is how :)
Boot the hetzner server in Hetnzer Debain based rescue mode. ssh into it. then:
wget https://mfsbsd.vx.sk/files/iso/14/amd64/mfsbsd-14.0-RELEASE-amd64.iso
qemu-system-x86_64 \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # https://docs.docker.com/engine/install/ubuntu/ | |
| # Make sure system is updated | |
| apt -y update | |
| apt -y upgrade | |
| # Add Docker's official GPG key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| exec tail -n +3 $0 | |
| # This file provides an easy way to add custom menu entries. Simply type the | |
| # menu entries you want to add after this comment. Be careful not to change | |
| # the 'exec tail' line above. | |
| menuentry "SmartOS" { | |
| recordfail | |
| insmod ext2 | |
| insmod gzio |
Hetzner no longer offers direct install of FreeBSD, but we can do it ourselves. Here is how :)
Boot the Hetzner server in Hetzner Debian based rescue mode. ssh into it.
The Hetzner rescue image will tell you hardware details about the server in the login banner. For example, with one of my servers I see:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Usage notes: | |
| # 1. Make sure that pandoc is installed. | |
| # 2. Place all your contents for each chapter of your devlog into | |
| # `./chap1/content.md`, `./chap2/content.md`, etc. | |
| # 3. This script will source a file in each chapter called METAINFO.inc. This | |
| # file is optional and can contain two variable declarations: | |
| # AUTHOR="Name Of Author" | |
| # DATE="Date or publication" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # make it executable `chmod +x ddns-update` | |
| # move it path `mv ddns-update /usr/bin/` | |
| # setup cronjob for every 15 minutes `crontab -e` | |
| # */15 * * * * ddns-update >/dev/null 2>&1 | |
| # dont forget to change your own domain & password | |
| # uncomment if you want internet connection check before running | |
| #while ! ping -c 1 -W 1 8.8.8.8; do | |
| # echo "DDNS-UPDATE: Waiting internet connection.." |
NewerOlder