Posted By

konteck on 04/27/12


Tagged


Versions (?)

Ubuntu Dev Deployment


 / Published in: Bash
 

Dev server new deployment cmd's

  1. # MongoDB
  2. echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list;
  3. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10;
  4. sudo apt-get update;
  5. sudo apt-get install -y mongodb-10gen
  6.  
  7. # NodeJS/NPM
  8. sudo apt-get install -y python-software-properties;
  9. sudo add-apt-repository ppa:chris-lea/node.js;
  10. sudo apt-get update;
  11. sudo apt-get install -y nodejs nodejs-dev npm
  12.  
  13. # SVN 1.7
  14. echo "deb http://opensource.wandisco.com/ubuntu lucid svn17" >> /etc/apt/sources.list;
  15. sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -;
  16. sudo apt-get update;
  17. sudo apt-get install -y subversion
  18.  
  19. # Oracle JDK
  20. sudo sh ./jdk*.bin
  21. sudo mv jdk* /usr/lib/jvm/
  22. sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_32/bin/java" 1
  23. sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_32/bin/javac" 1
  24.  
  25. # Server Cert
  26. openssl genrsa -aes256 -out server.key 2048
  27. openssl req -new -key server.key -out server.csr
  28. openssl rsa -in server.key -out server.key
  29. openssl x509 -req -days 1000 -in server.csr -signkey server.key -out server.crt
  30.  
  31. # Graphical libs
  32. sudo apt-get -y install libpng++-dev libcairo2-dev libjpeg-dev libgif-dev
  33.  
  34. # Speed test
  35. sudo cat /dev/sda | pv -r > /dev/null
  36. sudo hdparm -Tt /dev/sda

Report this snippet  

You need to login to post a comment.