This file contains 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
# Get the manifest | |
curl https://images.joyent.com/images/70e3ae72-96b6-11e6-9056-9737fd4d0764 -o base-64-16.3.1.json | |
# Get the image file | |
curl https://images.joyent.com/images/70e3ae72-96b6-11e6-9056-9737fd4d0764/file -o base-64-16.3.1.zfs.gz |
This file contains 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
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="ghost"> | |
<service name="site/ghost" type="service" version="1"> | |
<create_default_instance enabled="true"/> | |
<single_instance/> |
This file contains 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
The script (/Users/christopher/script.sh): | |
/opt/local/bin/pkgin -y install scmgit | |
The api command: | |
Create a machine and pass the absolute path of the script to --script: | |
sdc-createmachine --dataset f669428c-a939-11e2-a485-b790efc0f0c1 --package 6a6c0056-38b9-4982-90ad-682d63970b4c --name base-13.1.0-with-git --script /Users/christopher/script.sh | |
This file contains 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 | |
PKGSRCPATH=/opt/local | |
ACCOUNT=YOUR-USER-NAME | |
FINGERPRINT=`ssh-keygen -l -f ~/.ssh/id_rsa.pub | awk '{print $2}' | tr -d '\n'` | |
URL=https://DC.api.joyentcloud.com | |
AUTHORIZED_KEYS=/root/.ssh/authorized_keys | |
${PKGSRCPATH}/bin/sdc-listkeys --account ${ACCOUNT} --keyId ${FINGERPRINT} --url ${URL} | ${PKGSRCPATH}/bin/json -a key > ${AUTHORIZED_KEYS} |
This file contains 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
# Install ffmpeg and autoconf from the pkgsrc repos | |
pkgin update | |
pkgin -y install ffmpeg autoconf gcc-compiler | |
mkdir src | |
cd src | |
# Download ffmpeg-php | |
curl -L -O http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2 |
This file contains 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
curl -OLk https://launchpad.net/gearmand/trunk/0.33/+download/gearmand-0.33.tar.gz | |
tar xvf gearmand-0.33.tar.gz | |
cd gearmand-0.33 | |
pkgin -y install libevent boost-headers boost-libs gcc-compiler gmake curl | |
export CFLAGS='-m64 -I/opt/local/include' | |
export CPPFLAGS='-I/opt/local/include -D_REENTRANT -I/usr/include' | |
export CXXFLAGS='-m64 -L/opt/local/lib/amd64' | |
export LDFLAGS='-m64 -I/opt/local/include -L/opt/local/lib -L/opt/local/lib/amd64' |
This file contains 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
# Download the required TagLib lib | |
mkdir src | |
cd src | |
curl -OL https://github.com/downloads/taglib/taglib/taglib-1.7.2.tar.gz | |
tar xvf taglib-1.7.2.tar.gz | |
cd taglib-1.7.2 | |
# Make sure cmake and gcc are installed | |
pkgin -y install cmake |
This file contains 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 | |
export PS4='${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | |
# enable xtrace for debugging | |
#set -o xtrace | |
echo " " | |
echo "Setting up the deploy user" | |
echo "------------------------------------------------------" | |
groupadd -g 1008 deploy |
This file contains 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
[root@smartos64-1-6-3 ~/src/id3lib-3.8.3]# ./configure --prefix=/opt/local | |
checking for a BSD-compatible install... /opt/local/bin/ginstall -c | |
checking whether build environment is sane... yes | |
checking for gawk... gawk | |
checking whether make sets ${MAKE}... yes | |
checking for style of include used by make... GNU | |
checking for gcc... gcc | |
checking for C compiler default output... a.out | |
checking whether the C compiler works... yes | |
checking whether we are cross compiling... no |
This file contains 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
#!/usr/bin/env bash | |
# | |
# Add new version of nodejs to a nodejs or no.de SmartMachine | |
# | |
# Check to see if script is being run as the root user | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root. Aborting..." 1>&2 | |
exit 1 |
NewerOlder