Skip to content

Instantly share code, notes, and snippets.

rockj@rockj-VirtualBox:~/nav-mirror-netmap/tools$ ./rvm_and_veewee_install.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 162 0 0:00:01 0:00:01 --:--:-- 202
100 14536 100 14536 0 0 8945 0 0:00:01 0:00:01 --:--:-- 8945
Turning on ignore dotfiles mode.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 176 0 --:--:-- --:--:-- --:--:-- 254
B=$( cd $(dirname $0) ; pwd -P )
UPSTREAM=$(basename $B/libqtweetlib-upstream)
cd $B
tar -czvf libqtweetlib-upstream.tar.gz "$UPSTREAM" --exclude .git --exclude "*.log"
tar -zxf libqtweetlib-upstream.tar.gz --transform="s/libqtweetlib-upstream/libqtweetlib-0.5/"
tar -cvzf libqtweetlib-0.5.orig.tar.gz libqtweetlib-0.5
#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "../.."))
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nav.django.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
#!/bin/bash
# Install rvm under VCS-ROOT/tools/.rvm and veewee to VCS-ROOT/tools/veewee
#
# Based on http://stacktoheap.com/blog/2013/06/19/building-a-debian-wheezy-vagrant-box-using-veewee/
# :-)
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
unset MY_RUBY_HOME
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ rvm rvmrc warning
M-bM-^HM-4 rvm rvmrc warning [check|ignore|reset] [<path>|all.rvmrcs|allGemfiles]
M-bM-^HM-4 rvm rvmrc warning [help|list]
Manage warnings for .rvmrc / Gemfile
For additional information please visit RVM's documentation website:
https://rvm.io/
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ pwd
/media/DATA-LINUX/dev/python/nav-mirror/tools
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ rvm rvmrc warning ignore /media/DATA-LINUX/dev/python/nav-mirror/tools/veewee/.rvmrc
rockj@pandora:/media/DATA-LINUX/dev/python/nav-mirror/tools$ echo $?
0
#!/bin/bash -e
# Builds a basic debian wheezy base image to be used
# with vagrant.
#
# Based on http://stacktoheap.com/blog/2013/06/19/building-a-debian-wheezy-vagrant-box-using-veewee/
# :-)
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
unset rvm_bin_path
unset GEM_HOME
unset IRBRC
unset MY_RUBY_HOME
unset rvm_path
unset rvm_prefix
unset rvm_version
BASE_DIR=$(dirname $0)
BASE_FULL_DIR=$( cd $(dirname $0) ; pwd -P )
Install of ruby-1.9.2-p320 - #complete
Cloning into 'veewee'...
remote: Counting objects: 12679, done.
remote: Compressing objects: 100% (4660/4660), done.
remote: Total 12679 (delta 8410), reused 11940 (delta 7818)
Receiving objects: 100% (12679/12679), 3.76 MiB | 1.48 MiB/s, done.
Resolving deltas: 100% (8410/8410), done.
******************************************************************************
* NOTICE *
******************************************************************************
norangshol@stud-1201:/local/home/norangshol/nav-mirror$ ovftool --lax /local/home/norangshol/foo.ovf /local/home/norangshol/bar
Opening OVF source: /local/home/norangshol/foo.ovf
Opening VMX target: /local/home/norangshol/bar
Warning:
- The specified operating system identifier 'Debian_64' (id: 96) is not supported on the selected host. It will be mapped to the following OS identifier: 'Other (32-bit)'.
- Line 25: Unsupported hardware family 'virtualbox-2.2'.
- Line 66: OVF hardware element 'ResourceType' with instance ID '5': No support for the virtual hardware device type '20'.
- Line 104: Duplicate element 'AddressOnParent'.
Writing VMX file: /local/home/norangshol/bar/foo/foo.vmx
Progress: 33%