Skip to content

Instantly share code, notes, and snippets.

@olgabot
Created September 18, 2017 18:30
Show Gist options
  • Save olgabot/00b8f163b0fbea5a1c405e3e86f70e91 to your computer and use it in GitHub Desktop.
Save olgabot/00b8f163b0fbea5a1c405e3e86f70e91 to your computer and use it in GitHub Desktop.
Last login: Thu Sep 14 09:24:05 on ttys007
➜ ~ brew cask install virtualbox
brew cask install vagrant
brew cask install vagrant-manager
==> Satisfying dependencies
==> Downloading http://download.virtualbox.org/virtualbox/5.1.26/VirtualBox-5.1.26-117224-OSX.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask virtualbox
==> Installing Cask virtualbox
==> Running installer for virtualbox; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
Password:==> Sorry, try again.
==> installer: Package name is Oracle VM VirtualBox
==> installer: Installing at base path /
==> installer: The install was successful.
🍺 virtualbox was successfully installed!
==> Satisfying dependencies
==> Downloading https://releases.hashicorp.com/vagrant/1.9.8/vagrant_1.9.8_x86_64.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask vagrant
==> Installing Cask vagrant
==> Running installer for vagrant; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> installer: Package name is Vagrant
==> installer: Installing at base path /
==> installer: The install was successful.
🍺 vagrant was successfully installed!
==> Satisfying dependencies
==> Downloading https://github.com/lanayotech/vagrant-manager/releases/download/2.5.4/vagrant-manager-2.5.4.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask vagrant-manager
==> Installing Cask vagrant-manager
==> Moving App 'Vagrant Manager.app' to '/Applications/Vagrant Manager.app'.
🍺 vagrant-manager was successfully installed!
➜ ~ mkdir singularity-vm
cd singularity-vm
vagrant init singularityware/singularity-2.3.1
vagrant up
vagrant ssh
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'singularityware/singularity-2.3.1' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'singularityware/singularity-2.3.1'
default: URL: https://vagrantcloud.com/singularityware/singularity-2.3.1
==> default: Adding box 'singularityware/singularity-2.3.1' (v2.3.1) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/singularityware/boxes/singularity-2.3.1/versions/2.3.1/providers/virtualbox.box
==> default: Successfully added box 'singularityware/singularity-2.3.1' (v2.3.1) for 'virtualbox'!
==> default: Importing base box 'singularityware/singularity-2.3.1'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'singularityware/singularity-2.3.1' is up to date...
==> default: Setting the name of the VM: singularity-vm_default_1505758326395_9428
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => /Users/olgabot/singularity-vm
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-75-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
64 packages can be updated.
21 updates are security updates.
Last login: Tue Jun 27 11:21:33 2017 from 10.0.2.2
vagrant@vagrant:~$ exit
logout
Connection to 127.0.0.1 closed.
➜ singularity-vm mkdir singlecell-batches
➜ singularity-vm cd ~/code/singlecell-batches
➜ singlecell-batches mkdir singularity
➜ singlecell-batches cd singularity
➜ singularity wget https://storage.googleapis.com/singlecell-batches/scbatch_2017-09-18T14%3A00%3A06%2B00%3A00_LOCAL.img
--2017-09-18 11:14:08-- https://storage.googleapis.com/singlecell-batches/scbatch_2017-09-18T14%3A00%3A06%2B00%3A00_LOCAL.img
Resolving storage.googleapis.com... 172.217.5.112, 2607:f8b0:4005:808::2010
Connecting to storage.googleapis.com|172.217.5.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8388608032 (7.8G) [application/x-raw-disk-image]
Saving to: ‘scbatch_2017-09-18T14:00:06+00:00_LOCAL.img’
scbatch_2017-09-18T14:00:06+00:00_LOCAL.img 100%[=====================================================================================================================================>] 7.81G 14.2MB/s in 10m 0s
2017-09-18 11:24:09 (13.3 MB/s) - ‘scbatch_2017-09-18T14:00:06+00:00_LOCAL.img’ saved [8388608032/8388608032]
➜ singularity chmod +x +x scbatch_2017-09-18T14%3A00%3A06%2B00%3A00_LOCAL.img
chmod: +x: No such file or directory
chmod: scbatch_2017-09-18T14%3A00%3A06%2B00%3A00_LOCAL.img: No such file or directory
➜ singularity chmod +x scbatch_2017-09-18T14%3A00%3A06%2B00%3A00_LOCAL.img
chmod: scbatch_2017-09-18T14%3A00%3A06%2B00%3A00_LOCAL.img: No such file or directory
➜ singularity ll
total 16384008
-rw-r--r--@ 1 olgabot staff 7.8G Sep 18 09:18 scbatch_2017-09-18T14:00:06+00:00_LOCAL.img
➜ singularity chmod +x scbatch_2017-09-18T14:00:06+00:00_LOCAL.img
➜ singularity ./scbatch_2017-09-18T14:00:06+00:00_LOCAL.img
env: run-singularity: No such file or directory
➜ singularity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment