Skip to content

Instantly share code, notes, and snippets.

@xanderificnl
Last active January 27, 2021 15:29
Show Gist options
  • Save xanderificnl/7ae5c21c84974f7370016f8808ffbddc to your computer and use it in GitHub Desktop.
Save xanderificnl/7ae5c21c84974f7370016f8808ffbddc to your computer and use it in GitHub Desktop.
Setup a new SmartOS zone.
#!/usr/bin/env bash -q
#
# curl -s https://gist.githubusercontent.com/web-refinery/7ae5c21c84974f7370016f8808ffbddc/raw/setup.sh | bash
#
curl -s https://github.com/web-refinery.keys -o $HOME/.ssh/authorized_keys
sed -i.bak 's|https://pkgsrc.joyent.com|http://pkgsrc.web-refinery.com/smartos|g' /opt/local/etc/pkgin/repositories.conf
pkg_admin rebuild
pkgin -y up
pkgin -y in mosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment