Created
January 30, 2014 21:15
-
-
Save mraxus/8719082 to your computer and use it in GitHub Desktop.
This file contains 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
apt-get update | |
apt-get -y upgrade | |
apt-get -y install vim | |
# edit /etc/vim/vimrc to enable syntax, dark mode etc... | |
# edit ~/.bashrc for added aliases... | |
alias lh='ls -lh' | |
alias lah='ls -lAh' | |
alias llh='ls -lah' | |
alias l='ls -l' | |
alias la='ls -lA' | |
alias ll='ls -la' | |
# install git and set passphrase to ssh-keygen, export to github... | |
########################################################################### | |
## NODE | |
## | |
#!/bin/bash | |
# check if root | |
if [[ $EUID -ne 0 ]]; then | |
echo "Run with sudo plz." 1>&2 | |
exit 100 | |
fi | |
VER=v0.10.22 | |
DIR=node-${VER}-linux-arm-pi | |
TAR=${DIR}.tar.gz | |
URL=http://nodejs.org/dist/${VER}/${TAR} | |
wget "$URL" | |
tar -xvzf ${TAR} | |
${DIR}/bin/node -v | |
mkdir /opt/node | |
mv ${DIR} /opt/node/${VER} | |
ln -s /opt/node/${VER} /opt/node/current | |
# Add environment variables to /etc/profile | |
ENVIRONMENT=" | |
NODE_JS_HOME=\"/opt/node/current\" | |
PATH=\"\$PATH:\$NODE_JS_HOME/bin\" | |
export PATH | |
" | |
echo "$ENVIRONMENT" >> /etc/profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment