Web site meant to accompany a virtual machine setup specific to ProjPad.

install.sh 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Update system packages
  2. sudo apt-get update
  3. # Install distributed version control systems
  4. sudo apt-get -y install git
  5. sudo apt-get -y install mercurial
  6. # Install Apache web server and modules
  7. sudo apt-get -y install apache2
  8. sudo apt-get -y install libapache2-mod-python
  9. sudo apt-get -y install libapache2-mod-wsgi
  10. # Install Trac and plug-ins or patches
  11. sudo apt-get -y install trac
  12. sudo apt-get -y install trac-accountmanager
  13. sudo apt-get -y install trac-authopenid
  14. sudo apt-get -y install trac-bitten
  15. sudo apt-get -y install trac-customfieldadmin
  16. sudo apt-get -y install trac-git
  17. sudo apt-get -y install trac-graphviz
  18. sudo apt-get -y install trac-mastertickets
  19. sudo apt-get -y install trac-mercurial
  20. sudo apt-get -y install trac-wikiprint
  21. sudo apt-get -y install trac-wikirename
  22. sudo apt-get -y install trac-wysiwyg
  23. sudo apt-get -y install trac-xmlrpc
  24. # Create directory structure
  25. sudo mkdir /var/lib/hg
  26. sudo mkdir /var/lib/git
  27. sudo mkdir /var/lib/trac
  28. # Transfer files
  29. sudo cp -R ./apache/cgi-bin/* /usr/lib/cgi-bin/
  30. sudo cp -R ./apache/sites-available/* /etc/apache2/sites-available/
  31. sudo cp -R ./www/* /var/www/
  32. sudo cp ./util/* /usr/bin/
  33. # Configure Agile-Trac
  34. sudo easy_install http://svn.agile-trac.org/BRANCH/AGILE-TRAC/SOURCE/0.11/REL/
  35. sudo mv /usr/lib/python2.7/dist-packages/trac /usr/lib/python2.7/dist-packages/trac-orig
  36. sudo svn co http://svn.agile-trac.org/BRANCH/AGILE-TRAC/SOURCE/0.11/REL/patch/trac/ /usr/lib/python2.7/dist-packages/trac
  37. # Configure sites available
  38. sudo rm /etc/apache2/sites-enabled/*
  39. cd /etc/apache2/sites-enabled; sudo ln -s ../sites-available/devel .
  40. cd /etc/apache2/sites-enabled; sudo ln -s ../sites-available/devel-ssl .
  41. cd /etc/apache2/mods-enabled; sudo ln -s ../mods-available/ssl.conf .
  42. cd /etc/apache2/mods-enabled; sudo ln -s ../mods-available/ssl.load .
  43. # Configure permissions
  44. sudo chown -R www-data:www-data /var/lib/hg
  45. sudo chown -R www-data:www-data /var/lib/git
  46. sudo chown -R www-data:www-data /var/lib/trac
  47. sudo chown -R www-data:www-data /var/www
  48. # Restart web server
  49. sudo apache2ctl restart
  50. # Create administrator password
  51. echo
  52. echo ATTENTION
  53. echo Please execute the final command listed below to assign an
  54. echo administrative password.
  55. echo
  56. echo sudo htpasswd -c /var/lib/trac/.htpasswd admin