-
-
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
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
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