Skip to content

Instantly share code, notes, and snippets.

View vddgil's full-sized avatar

Gil Vandendriessche vddgil

  • Scribe
  • Belgium
  • 04:23 (UTC +02:00)
View GitHub Profile
@vddgil
vddgil / nodenv-system-wide-install
Last active November 19, 2022 19:15 — forked from markkanof/rbenv-install-system-wide.sh
rbenv install and system wide install on Ubuntu to /opt/rbenv
# Install nodenv
git clone https://github.com/nodenv/nodenv.git /opt/nodenv
# Add nodenv to the path:
echo '# nodenv setup' > /etc/profile.d/nodenv.sh
echo 'export NODENV_ROOT=/opt/nodenv' >> /etc/profile.d/nodenv.sh
echo 'export PATH="$NODENV_ROOT/bin:$PATH"' >> /etc/profile.d/nodenv.sh
echo 'eval "$(nodenv init -)"' >> /etc/profile.d/nodenv.sh
chmod +x /etc/profile.d/nodenv.sh
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path: