2

I've been testing this for the past few hours with no luck. When launching an Ubuntu 12.04 EC2 micro instance, I SSH to it, create a new user and continue with installing Ruby version manger under the new user

$ curl -L get.rvm.io | bash -s stable

This writes the following to /home/user/.bashrc

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

These lines are also needed in /home/user/.bashrc to persist the shell configuration

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

After I add the lines to /home/user/.bashrc, I'm still able to perform tasks under /home/user however if switching to root then back to /home/user, the terminal hangs. I also noticed on a fresh instance, after editing .bashrc then rebooting the instance, the AWS console shows an alert under Status Checks that reads 1/2 checks passed.

I'm not sure what the problem is, any suggestions?

dcd0181
  • 121
  • 2

0 Answers0