-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps_to_install
89 lines (70 loc) · 2.1 KB
/
steps_to_install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#
#install a build environment with
nix-env -i env-rvm
#this environment lives at ~/.nixpkgs/options.nix
#and defines a package override that calls myEnvFun to make a custom environment
#{
# packageOverrides = pkgs : with pkgs; {
# rvmEnv = pkgs.myEnvFun {
# name = "rvm";
# buildInputs = [ stdenv zlib openssl libxml2 libxslt libiconv ];
# extraCmds = ''
# unset http_proxy
# unset ftp_proxy
# export LIBXML2_DIR=${libxml2}
# export LIBXSLT_DIR=${libxslt}
# export LIBICONV_DIR=${libiconv}
# '';
# };
# };
# }
#
#switch to custom environment with
load-env-rvm
#install rvm with
\curl -L https://get.rvm.io | bash -s stable --rails
#source the rvm script with
source ~/.rvm/scripts/rvm
#other way to install RVM
environment.systemPackages = with pkgs; [
vim
wget
git
firefox
chromiumDev
oxygen_gtk
nodejs
jdk
unzip
which
redis
sublime
dropbox
dropbox-cli
mono
mysqlWorkbench
gcc
curl
openssl
sqlite
patch
readline
zlib
libyaml
libxml2
libxslt
libtool
bison
v8
automake
gnumake
mongodb
];
#import mongodb from production to local
#to dump
mongodump -h ds035598-a0.mongolab.com:35598 -d peeramid -u <user> -p <password> -o <output directory>
#to restore
mongorestore -d peeramid <dump_directory>
as of 7/13
\curl -sSL https://get.rvm.io | bash -s stable --autolibs=0 --auto-dotfiles
rvm reinstall 2.1.2 --autolibs=0 --with-libyaml-dir=$LIBYAML_DIR --with-openssl-dir=$OPENSSL_DIR --with-readline-dir=$READLINE_DIR