Skip to content

Instantly share code, notes, and snippets.

@MrBuBBLs
Forked from julesbou/install.sh
Last active October 11, 2015 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrBuBBLs/3831454 to your computer and use it in GitHub Desktop.
Save MrBuBBLs/3831454 to your computer and use it in GitHub Desktop.
Debian 6.0 (Squeeze) 64 bits - (NodeJS/Nginx/Mongodb) - Suited for Frontend/Backend
echo "
# --- Bashrc ---
# Prompt colors
NM=\"\[\033[0;38m\]\"
HI=\"\[\033[0;37m\]\"
HII=\"\[\033[0;36m\]\"
SI=\"\[\033[0;33m\]\"
IN=\"\[\033[0m\]\"
export PS1=\"\$NM[ \$HI\u \$HII\h \$SI\w\$NM ] \$IN\"
# List colors
export LS_OPTIONS='--color=auto'
eval \"\`dircolors\`\"
alias ls='ls \$LS_OPTIONS'
alias ll='ls \$LS_OPTIONS -l'
alias l='ls \$LS_OPTIONS -lA'
" >> ~/.bashrc
# --- Essentials
apt-get update && apt-get git install curl build-essential openssl libssl-dev
# --- Git ---
# TODO add .gitconfig with aliases
# --- NodeJs ---
cd /usr/local/lib
git clone https://github.com/joyent/node.git
cd node
git checkout v0.10.21
./configure --openssl-libpath=/usr/lib/ssl
make
make test
sudo make install
ln -s /usr/local/lib/node/out/Release/node /usr/local/bin/node
node -v
curl https://npmjs.org/install.sh | sh
npm -v
# --- Nginx ---
apt-get install nginx
# --- Mongodb ---
apt-get install mongodb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment