Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Last active January 3, 2016 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save springmeyer/fabd05d5535e086d5d51 to your computer and use it in GitHub Desktop.
Save springmeyer/fabd05d5535e086d5d51 to your computer and use it in GitHub Desktop.
Install TileMill on freebsd

Get an AMI from http://www.daemonology.net/freebsd-on-ec2/

  • Choose instance with at least 4 GB memory
  • ports 22 and 3389 open in the security group: (ssh with type:ssh/protocol:tcp/port range:22/source:0.0.0.0/0 and type:rdp/protocol:tcp/port range:3389/source:0.0.0.0/0)
  • Tested with FreeBSD/EC2 10.0-RELEASE 64-bit m1 / m2 / c1 / t1 - ami-c2b4d5f2 (in us-west-2 / Oregon)

Set up ports: http://www5.us.freebsd.org/doc/handbook/ports-using.html

Login

ssh -A -i your.pem ec2-user@awsdomain.com

Set up ports

su root
portsnap fetch
portsnap extract

Install bash (optional: here to show how to source compile)

cd /usr/ports/bash
make
make install
make clean

Install various dev tools:

pkg install git vim gmake python clang34 bash

Setup C/C++ compiler:

setenv CXX clang++
setenv CC clang

Install node.js (from https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#freebsd-and-openbsd)

pkg install node npm

Enabling core dumps:

sysctl -a | grep core
mkdir -p /usr/core/
sysctl -w kern.corefile="/usr/core/%N.core"
ulimit -c unlimited
sysctl -w kern.sugid_coredump=1
sysctl -w kern.nodump_coredump=1

Viewing core dump:

gdb `which node` /usr/core/node.core

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment