# '##' is a command to be run after modification
# console into your host server (VERY risky! Please do not modify anything unless you fully understand and accept the consequences)
nanobox console my-app do.1
# add your public key (from your laptop) to the authorized_keys file
# DO NOT REMOVE ANYTHING FROM THIS FILE! (Nanobox will fail to work if you do)
## edit `/root/.ssh/authorized_keys` and ADD/APPEND your public key (located on your laptop, generally at ~/.ssh/id_rsa.pub)
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
| # Add it after manually converting the newlines | |
| nanobox evar add local KEY1="-----BEGIN RSA PRIVATE KEY-----\nM\nW\nA\na\n5\nZ\nA\n5\nJ\nU\nC\na\nr\nR\nD\nS\nY\nb\n0\nK\n4\nM\nM\n1\nD\n-----END RSA PRIVATE KEY-----" | |
| # Add it via a bash-friendly string | |
| nanobox evar add local KEY2="-----BEGIN RSA PRIVATE KEY----- | |
| M | |
| W | |
| A | |
| a | |
| 5 |
Download portal for your OS.
Create a config file for portal
config.json
{ "db-connection": "scribble:///tmp/portal", "log-level": "info", "server": true,
>> "just-proxy": true
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 | |
| # | |
| # Boostraps an ubuntu machine to be used as an agent for nanobox | |
| # exit if any any command fails | |
| set -e | |
| set -o pipefail | |
| # todo: |
Comparing various text "permuters" to show pretty output for rsync
rsync --info=progress2 * [email protected]:/tmp/new/ 2> /dev/null | stdbuf -i0 -o0 tr $'\r' $'\n' | awk '{printf "\rSyncing image: %s - %s",$2,$3}'
# Syncing image: 100% - 37.30MB/s
# real 0m3.012sOlderNewer