Digitalocean: Difference between revisions
From wikinotes
Line 15: | Line 15: | ||
<blockquote> | <blockquote> | ||
== FreeBSD == | == FreeBSD == | ||
=== login === | |||
<blockquote> | |||
login as <code>freebsd</code> on first build | login as <code>freebsd</code> on first build | ||
</blockquote><!-- login --> | |||
=== ipv6 === | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
# /etc/rc.conf | |||
# create public ipv6 aliases | |||
ifconfig_vtnet0_aliases="\ | |||
inet6 ${YOUR_DO_IPV6}:f002 prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f003 prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f004 prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f005 prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f006 prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f007 prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f008 prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f009 prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f00a prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f00b prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f00c prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f00d prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f00e prefixlen 64 \ | |||
inet6 ${YOUR_DO_IPV6}:f00f prefixlen 64" | |||
# create private ipv4 clone addrs | |||
cloned_interfaces="${cloned_interfaces} lo1" | |||
ifconfig_lo1_aliases="\ | |||
inet 192.168.67.1/24 \ | |||
inet 192.168.67.2/24 \ | |||
inet 192.168.67.3/24 \ | |||
inet 192.168.67.4/24 \ | |||
inet 192.168.67.5/24 \ | |||
inet 192.168.67.6/24 \ | |||
inet 192.168.67.7/24 \ | |||
inet 192.168.67.8/24 \ | |||
inet 192.168.67.9/24 \ | |||
inet 192.168.67.10/24 \ | |||
inet 192.168.67.11/24 \ | |||
inet 192.168.67.12/24 \ | |||
inet 192.168.67.13/24 \ | |||
inet 192.168.67.14/24 \ | |||
inet 192.168.67.15/24" | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
# restart networking | |||
sudo service netif restart | |||
sudo /etc/rc.d/routing restart | |||
</syntaxhighlight> | |||
</blockquote><!-- ipv6 --> | |||
</blockquote><!-- builtin isos --> | </blockquote><!-- builtin isos --> | ||
Revision as of 00:03, 7 August 2021
API
See Also digitalocean api
Cost Analysis
1000 Gib/mo + 0.01$/Gib # per droplet (1000 GiB == 1073.74 GB)
Builtin Isos
FreeBSD
login
login as
freebsd
on first buildipv6
# /etc/rc.conf # create public ipv6 aliases ifconfig_vtnet0_aliases="\ inet6 ${YOUR_DO_IPV6}:f002 prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f003 prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f004 prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f005 prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f006 prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f007 prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f008 prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f009 prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f00a prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f00b prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f00c prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f00d prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f00e prefixlen 64 \ inet6 ${YOUR_DO_IPV6}:f00f prefixlen 64" # create private ipv4 clone addrs cloned_interfaces="${cloned_interfaces} lo1" ifconfig_lo1_aliases="\ inet 192.168.67.1/24 \ inet 192.168.67.2/24 \ inet 192.168.67.3/24 \ inet 192.168.67.4/24 \ inet 192.168.67.5/24 \ inet 192.168.67.6/24 \ inet 192.168.67.7/24 \ inet 192.168.67.8/24 \ inet 192.168.67.9/24 \ inet 192.168.67.10/24 \ inet 192.168.67.11/24 \ inet 192.168.67.12/24 \ inet 192.168.67.13/24 \ inet 192.168.67.14/24 \ inet 192.168.67.15/24"# restart networking sudo service netif restart sudo /etc/rc.d/routing restart
Custom Isos
archlinux
https://www.asinine.nz/2019-04-05/Arch-Gold-Image/
curl -O https://raw.githubusercontnet.com/robsonde/digitalocean_builder/master/make_image.sh chmod u+x make_image.sh sudo ./make_image.shCreating Droplet:
Create Droplet: Choose An Image (Custom Images): archlinux.img