Last active
October 1, 2017 06:35
-
-
Save butackle/ea997ef89accf7cd07b59b7ef6ba540d to your computer and use it in GitHub Desktop.
startup on CentOS7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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