Skip to content

Instantly share code, notes, and snippets.

@butackle
Last active October 1, 2017 06:35
Show Gist options
  • Save butackle/ea997ef89accf7cd07b59b7ef6ba540d to your computer and use it in GitHub Desktop.
Save butackle/ea997ef89accf7cd07b59b7ef6ba540d to your computer and use it in GitHub Desktop.
startup on CentOS7
#!/bin/bash
#yum install
cd ~
sudo yum install -y wget vim
#alias
cd ~
echo "alias ll='ls -la'" >> ~/.bashrc
source ./.bashrc
#nodebrew
cd ~
wget git.io/nodebrew
perl nodebrew setup
rm nodebrew
echo "export PATH=$HOME/.nodebrew/current/bin:$PATH" >> .bashrc
source ./.bashrc
#node
cd ~
NODE_VERSION=v8.6.0
nodebrew install-binary $NODE_VERSION
nodebrew use $NODE_VERSION
#git
sudo yum install -y gcc curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel perl-ExtUtils-MakeMaker
cd ~
GIT_VERSION=2.14.1
wget https://www.kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz
tar xvf git-$GIT_VERSION.tar.gz
cd ./git-$GIT_VERSION
sudo make all
sudo make install
sudo mv ./git /usr/bin/
cd ~
sudo rm -rf ~/git-$GIT_VERSION*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment