| | 1 | = Trac Upgrade = |
| | 2 | Build new Server from CD on temporary IP |
| | 3 | |
| | 4 | Upgrade to Squeeze |
| | 5 | {{{ |
| | 6 | apt-get install openssh-server sudo lrzsz psmisc subversion python-setuptools python-docutils python-pygments bzr libapache2-mod-wsgi postgresql-8.4 python-psycopg2 |
| | 7 | a2enmod ssl |
| | 8 | a2enmod rewrite |
| | 9 | a2enmod deflate |
| | 10 | a2enmod headers |
| | 11 | a2enmod expires |
| | 12 | }}} |
| | 13 | |
| | 14 | Copy users |
| | 15 | |
| | 16 | Install Trac 0.12.1 & Plugins: |
| | 17 | {{{ |
| | 18 | easy_install Babel==0.9.5 Genshi==0.6 |
| | 19 | easy_install Trac |
| | 20 | svn co http://trac-hacks.org/svn/accountmanagerplugin/trunk accountmanagerplugin |
| | 21 | cd accountmanagerplugin |
| | 22 | python setup.py install |
| | 23 | cd .. |
| | 24 | svn co http://trac-hacks.org/svn/recaptcharegisterplugin/0.11/ recaptcharegisterplugin |
| | 25 | cd recaptcharegisterplugin |
| | 26 | python setup.py install |
| | 27 | cd .. |
| | 28 | bzr branch https://code.launchpad.net/~trac-bzr-team/trac-bzr/trunk trac-bzr |
| | 29 | cd trac-bzr |
| | 30 | python setup.py install |
| | 31 | cd .. |
| | 32 | svn co http://trac-hacks.org/svn/mathcaptchaplugin/0.12/ mathcaptchaplugin |
| | 33 | cd mathcaptchaplugin |
| | 34 | python setup.py install |
| | 35 | cd .. |
| | 36 | svn co http://trac-hacks.org/svn/sectioneditplugin/0.12/ sectioneditplugin |
| | 37 | cd sectioneditplugin |
| | 38 | python setup.py install |
| | 39 | cd .. |
| | 40 | svn co http://trac-hacks.org/svn/translatedpagesmacro/0.11/ translatedpagesmacro |
| | 41 | cd translatedpagesmacro |
| | 42 | python setup.py install |
| | 43 | cd .. |
| | 44 | svn co http://trac-hacks.org/svn/tocmacro/0.11/ tocmacro |
| | 45 | cd tocmacro |
| | 46 | python setup.py install |
| | 47 | cd .. |
| | 48 | svn co http://trac-hacks.org/svn/externallinksnewwindowplugin/0.11/ externallinksnewwindowplugin |
| | 49 | cd externallinksnewwindowplugin |
| | 50 | python setup.py install |
| | 51 | cd .. |
| | 52 | svn co http://trac-hacks.org/svn/screenshotsplugin/0.12/ screenshotsplugin |
| | 53 | cd screenshotsplugin |
| | 54 | python setup.py install |
| | 55 | cd .. |
| | 56 | Theme: |
| | 57 | svn co http://trac-hacks.org/svn/pydotorgtheme/0.11/ pydotorgtheme |
| | 58 | cd pydotorgtheme |
| | 59 | python setup.py install |
| | 60 | }}} |
| | 61 | Replace theme |
| | 62 | cd /usr/local/lib/python2.6/dist-packages/TracPyDotOrgTheme-2.0-py2.6.egg/pydotorgtheme/htdocs/ |
| | 63 | rm pydotorg.css |
| | 64 | (replace from backup) |
| | 65 | |
| | 66 | Copy data |
| | 67 | |
| | 68 | Upgrade: |
| | 69 | {{{ |
| | 70 | trac-admin /home/sahana/trac upgrade |
| | 71 | trac-admin /home/sahana/trac wiki upgrade |
| | 72 | trac-admin /home/sahana/trac repository resync '*' |
| | 73 | }}} |
| | 74 | |
| | 75 | Convert to pgsql: |
| | 76 | *http://trac-hacks.org/wiki/SqliteToPgScript |
| | 77 | |
| | 78 | IP in Apache (SSL) as well as system (after shutting down old server): |
| | 79 | {{{ |
| | 80 | vim /etc/apache2/sites-available/trac |
| | 81 | 212.23.5.3 |
| | 82 | vim /etc/network/interfaces |
| | 83 | address 212.23.5.3 |
| | 84 | netmask 255.255.255.248 |
| | 85 | network 212.23.5.0 |
| | 86 | broadcast 212.23.5.7 |
| | 87 | gateway 212.23.5.6 |
| | 88 | reboot |
| | 89 | }}} |