Skip to content

Instantly share code, notes, and snippets.

@Baael
Last active February 21, 2018 10:18
Show Gist options
  • Save Baael/1821b599c25197863e4c47cb0e6e8757 to your computer and use it in GitHub Desktop.
Save Baael/1821b599c25197863e4c47cb0e6e8757 to your computer and use it in GitHub Desktop.
install ruby rails bundler node yarn
sudo apt-get update
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
type rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.3.4
rbenv global 2.3.4
ruby -v
echo "gem: --no-document" > ~/.gemrc
gem install bundler
gem install rails
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
source ~/.profile
sudo apt-get install libpq-dev
sudo apt-get install postgresql postgresql-contrib
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 yarn
sudo apt-get install libfontconfig1 libxrender1
sudo apt-get install redis-server
mklink /d "c:\mnt\[NAME]" \\VIRTUAL\virtual
sudo sh -c "echo '[$(hostname)]'" >> /etc/samba/smb.conf"
sudo sh -c "path = /home/vagrant" >> /etc/samba/smb.conf"
sudo sh -c "valid users = vagrant" >> /etc/samba/smb.conf"
sudo sh -c "read only = no" >> /etc/samba/smb.conf"
sudo sh -c "create mask = 0700" >> /etc/samba/smb.conf"
sudo sh -c "directory mask = 0700" >> /etc/samba/smb.conf"
systemctl restart smbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment