Created
September 22, 2011 20:07
-
-
Save anveo/1235878 to your computer and use it in GitHub Desktop.
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
[13:43:12] anveo: deryl ok. These are the exact commands I'm running after instance create: https://gist.github.com/1235814 | |
[13:44:20] deryl: instance create? | |
[13:46:14] deryl: umm you don't have to do the usermod line at alland the ps1 lines go in bash_profile not bashrc. you don't have to add root to the group | |
[13:46:48] deryl: the installer autoadds you and root to the group proviuded you sudo bash < <(curl..) | |
[13:46:55] deryl: also you HAVE to log out then back in | |
[13:47:07] deryl: group membership into rvm is done at login time | |
[13:47:45] deryl: and you do NOT run the installers AS root | |
[13:47:56] deryl: you sudo. do NOT run it directly as root | |
[13:48:28] deryl: clean out everything RVM related, then AS YOUR USER: sudo bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
[13:48:40] deryl: but first delete EVERYTHING rvm related and log out completely from your session | |
[13:48:45] deryl: then back in | |
[13:48:49] deryl: remove the rvm group as well | |
[13:48:59] deryl: sudo groupdel rvm | |
[13:49:08] deryl: totally and completely start fresh | |
[13:49:24] deryl: (wow guys I worked hard on these docs making sure everything was right and no one follows them) | |
[13:50:35] anveo: Ok, so I think my problem then was running this as root | |
[13:50:57] deryl: anveo, https://gist.github.com/1233635 | |
[13:51:03] anveo: The docs said 'All multi-user instructions must be run as root' | |
[13:51:21] deryl: the ONLY difference from what I show there is to sudo the install command itself | |
[13:51:30] deryl: and that doesn't show me logging out then back in after the install | |
[13:51:37] deryl: can't show taht in a gist hehe | |
[13:52:34] deryl: OH i also noticed i forgot to show taht I di rvm notes and installed the prereqs | |
[13:52:47] deryl: srew this | |
[13:52:59] deryl: gimme a bit. I;m making a fresh install and screencasting it | |
[13:53:07] anveo: deryl ok, awesome, thanks | |
[13:53:56] deryl: it WILL take me a bit | |
[13:54:02] deryl: i'm not used to screenium yet | |
[13:54:21] deryl: what OS are you on again? | |
[13:54:24] deryl: I'll use that one to start | |
[13:54:33] anveo: Is there anyway around the logging out (newgrp or something?), I would like to run a bunch of this as a bootstrapping script to new ec2 instances | |
[13:54:41] deryl: dude, just do it right | |
[13:54:45] deryl: no playing around | |
[13:55:09] deryl: you can still install to the ec2 and then log out and run a secondary script | |
[13:55:18] deryl: to complete the rest of what you need | |
[13:55:31] deryl: this ensures that everything loads exactly as intended with no possible side effects | |
[13:55:38] anveo: If I did the sudo install procedure, then a sudo -i to do a bunch of stuff as root, would that spawn a login shell for root ready for rvm? | |
[13:56:04] deryl: *sigh* you don't run commands for rvm as root. you rvmsudo any commands as the user | |
[13:56:09] deryl: also what OS are you using? | |
[13:56:12] deryl: \(again) | |
[13:56:33] anveo: ubuntu 10.04 | |
[13:56:48] deryl: if you are using Ubuntu you don't have to rvmsudo only with debian and os x due to a quirk in their perms setup | |
[13:56:59] deryl: but you don't run any commands as root directly | |
[13:57:07] anveo: interesting, I didn't know that | |
[13:57:53] deryl: you can rvmsudo any commands you want. root is in the rvm group from the installer as is your user. so anything that your user sees root shoudl ee because it too parses /etc/profile and /etc/profile.d | |
[13:58:07] deryl: the rvmsudo runs sudo witht he rvm environment configured | |
[13:58:23] deryl: but with ubuntu if you hav elogged out and back in then everything is read correctly | |
[13:58:23] anveo: ok, ya I do rvmsudo to start god I think | |
[13:58:39] deryl: ok, i have never ever touched god so i can't help at ALL with that or capistrano | |
[13:58:56] anveo: no prob | |
[13:59:28] deryl: here is the verification I did of MULTIPLE platforms that the isntaller is absolutely corect | |
[13:59:28] deryl: https://github.com/wayneeseguin/rvm/issues/420 | |
[13:59:46] deryl: All testing completed. RVM 1.8.3 has successfully been verified to work as advertised on CentOS 6.0, Ubuntu Server 11.04, Debian GNU/Linux 6.0.2.1, OpenSUSE 6.0, and Mac OS X Lion 10.7.1. | |
[13:59:46] deryl: The correct steps to follow for each platform are: | |
[13:59:46] deryl: The steps followed are: | |
[13:59:46] deryl: 1 - Install Prerequisites as listed on rvm.beginrescueend.com/rvm/prerequisites/ using the pkg manager for that OS | |
[13:59:46] deryl: 2 - Verify these prerequisites with: for name in {bash,awk,sed,grep,ls,cp,tar,curl,gunzip,bunzip2,git,svn} ; do which $name ; done | |
[13:59:47] deryl: 3 - Execute a Per-User installation type using: bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
[13:59:47] deryl: 4 - Log out and back into the system | |
[13:59:48] deryl: 5 - Execute and install additionals as listed in 'rvm notes' for each platform | |
[13:59:48] deryl: 6 - Execute 'rvm --install --create use 1.9.2@foo | |
[13:59:49] deryl: For each platform this will show 1.9.2-p290 (the current 1.9.2) under 'rvm list' and gemset foo will show under 'rvm 1.9.2 exec rvm gemset list' | |
[14:00:27] deryl: the only difference is Step 3. jus prefi the command with sudo | |
[14:00:53] deryl: for YOU because you're on ubuntu once you do step 4, you should NOT need to use rvmsudo EXCEPT for your god or capistrano stuff | |
[14:01:12] deryl: but just for initial setup of RVM and the environment everything else is the same | |
[14:02:31] anveo: deryl this is all awesome help | |
[14:02:38] deryl: :) i aim to please | |
[14:03:06] deryl: i have 9 machines running here. I use it to verify all manner of issues with RVM | |
[14:03:16] deryl: my landlord hates the electric bill but oh well | |
[14:03:21] samuelkadolph: lol | |
[14:03:22] deryl: i pay them an extra 100 a month to cover the cost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment