Skip to content

Instantly share code, notes, and snippets.

@kngvamxx
Created September 10, 2020 08:13
Show Gist options
  • Save kngvamxx/12e64ad6bdeaf3c8c2c3e126c1426f7b to your computer and use it in GitHub Desktop.
Save kngvamxx/12e64ad6bdeaf3c8c2c3e126c1426f7b to your computer and use it in GitHub Desktop.
install ruby on rails using rvm
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
#### Install GPG keys:
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
###In case you encounter an issues or want to know more, check security
###Install RVM:
\curl -sSL https://get.rvm.io | bash -s stable
#####For installing RVM with default Ruby and Rails in one command, run: <use this>
\curl -sSL https://get.rvm.io | bash -s stable --rails
###
####To start using RVM you need to run
source /home/nehal/.rvm/scripts/rvm
###To start using rails you need to run
rails new <project_dir>
cd <project dir>
rails server
http://localhost:3000/
@kngvamxx
Copy link
Author

Screenshot from 2020-11-24 21-50-24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment