|
ÀÛ¼ºÀÏ : 12-05-07 12:29
Á¶È¸ : 201,716
|
|
RD3-0001] Trac ¼³Ä¡ ¹× ¼³Á¤ ¸Þ´º¾ó¢Ò
1. ¸Ó½Å ±âº» ¼¼ÆûóÅ¢Ò
1.1 ¹öÀü¢Ò
- ¸ðµç ±âº» ¼¼ÆÃÀº apt-get·Î ¼³Ä¡ÇÔ.
- Apache2 : 2.2.9-7 ubuntu3
- Mysql-server : 5.0.67-0 ubuntu6 (³ªÁßÀ» À§Çؼ ¹Ì¸® ¼³Ä¡µÊ)
- php5 : 5.2.6-2 ubuntu4 (³ªÁßÀ» À§Çؼ ¹Ì¸® ¼³Ä¡µÊ)
- Python : 2.5.2-1 ubuntu1 (apache ¿¬µ¿ ¹× ÀÎÁõ ¸ðµâµµ Ãß°¡)
- Subversion : 1.5.1 dfsg1-1 ubuntu
- OpenSSL : 0.9.8g10.1 ubuntu
1.2 °æ·Î È®À΢Ò
- Subversion : /home/svn
- Trac : /home/trac
- apache2 : /etc/apache2
2. Trac ¼³Ä¡¢Ò
2.1 Easy_install°ú ClearSilver ¼³Ä¡¢Ò
- apt-get install python-setuptools
- apt-get install clearsilver*
2.2 Trac ¼³Ä¡¢Ò
2.3 Trac Plugin ¼³Ä¡¢Ò
2.3.1 SVN¿¡¼ Plugin ÀͽºÆ÷Æ®¢Ò
2.3.1.1 trac_release ±¸¼º¢Ò
util |
Ç÷¯±×ÀÎ ¼³Ä¡Àü¿¡ ¼³Ä¡ÇÒ À¯Æ¿ |
Plugin |
¼ø¼ö Ç÷¯±×ÀÎ |
Externals |
Ä¿½ºÅ͸¶ÀÌ¡ÇÑ Ç÷¯±×ÀÎ |
MovePlugin |
/home/trac/sample/pluginÂÊ¿¡ º¹»çÇÏ¸é ¼³Ä¡µÇ´Â Ç÷¯±×ÀÎ |
config |
º¹»çÇÒ trac.ini svnAccess.conf ÆÄÀÏ |
Install_Plugin.sh |
Plugin°ú Externals ÀÚµ¿¼³Ä¡ ½ºÅ©¸³Æ® |
2.3.2 util ¼³Ä¡¢Ò
- easy_install trac_release/util/pyExcelerator-0.6.3a
- easy_install trac_release/util/xlrd-0.7.0
2.3.2.1 screenshot util ¼³Ä¡¢Ò
- mkdir /usr/lib/python2.4/Extensions
- cd /usr/lib/python2.4/Extensions
- wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz
- apt-get install libjpeg*
- apt-get install zlib*
- apt-get install freetype*
- cd Imaging-1.1.6/
- python setup.py build_ext -i
- python selftest.py
- python setup.py install
2.3.2.2 graphvis util ¼³Ä¡¢Ò
- apt-get install graphviz
- apt-get install librsvg2-2 librsvg2-bin librsvg2-common librsvg2-dev
- apt-get install gsfonts
- apt-get install msttcorefonts
- cd /usr/share/fonts/truetype/msttcorefonts/
- wget ftp://ftp.mizi.com/pub/baekmuk/baekmuk-ttf-2.1.tar.gz
- tar -zxvf baekmuk-ttf-2.1.tar.gz
2.3.3 Plugin ¹× Externals ¼³Ä¡¢Ò
2.3.3.1 ¼öµ¿ ¼³Ä¡¢Ò
- trac_release/Plugin/WebAdminPlugin # 1¼øÀ§ ¼³Ä¡
- mv /usr/lib/python2.5/site-packages/Trac-0.11.3-py2.5.egg/trac /usr/lib/python2.5/site-packages/Trac-0.11.3-py2.5.egg/trac_ori
- cp -rf trac_release/Externals/trac /usr/lib/python2.5/site-packages/Trac-0.11.3-py2.5.egg/ # ¼Ò½º ¼öÁ¤µÈ tracÀ¸·Î º¯°æ
- ³ª¸ÓÁö´Â ¼ø¼ Á¦ÇÑ ¾øÀÌ ¼³Ä¡
- ex) ÇØ´ç Ç÷¯±×ÀÎ Æú´õ¿¡ µé¾î°¡ setup.py°¡ ÀÖ´Â À§Ä¡¿¡¼ easy_install . # ¸ðµÎ 0.11Æú´õÀÓ
2.3.3.2 ÀÚµ¿ ¼³Ä¡¢Ò
- Install_Plugin.sh ½ÇÇà # ¼³Ä¡ ÈÄ Install_Plugin.log »ý¼º
- logÆÄÀÏ È®ÀÎ # ¼³Ä¡ ½ÇÆÐÇÑ °æ¿ì [Install Failed]
2.3.4 MovePlugin ¼³Ä¡¢Ò
- MovePlugin Æú´õ¿¡ ÆÄÀÏ ÀüºÎ¸¦ /home/trac/sample/plugins/ ¿¡ º¹»ç
2.3.5 config º¹»ç¢Ò
2.3.5.1 trac.ini º¹»ç¢Ò
- config Æú´õ¿¡ ÀÖ´Â trac.ini ÆÄÀÏÀ» /home/trac/sample/conf/ ¿¡ º¹»ç
2.3.5.2 svnAccess.conf º¹»ç¢Ò
- config Æú´õ¿¡ ÀÖ´Â svnAccess.conf ÆÄÀÏÀ» /home/trac/ ¿¡ º¹»ç
3. SVN Repository ¹× Trac Project »ý¼º¢Ò
3.1 Subversion Repository »ý¼º¢Ò
- svnadmin create --fs-type /home/svn/sample # Repository »ý¼º
- chown -R www-data /home/svn # Apache·Î ±ÇÇÑ ¼³Á¤
- chmod -R g+w /home/svn # ¾²±â¸ðµå Ãß°¡
3.2 Trac Project »ý¼º¢Ò
- trac-admin /home/trac/sample initenv # Trac Project »ý¼º
Subversion °æ·Î Àû¾îÁÖ´Â ºÎºÐÀº /home/svn/sample·Î ÁöÁ¤. ³ª¸ÓÁö´Â ¿£ÅÍó¸®.
- chown -R www-data /home/trac # Apche·Î ±ÇÇÑ ¼³Á¤
5. Apache2¢Ò
5.1 LDAP ¼³Á¤¢Ò
- ln -s /etc/apache2/mods-available/authnz_ldap.load /etc/apache2/mods-enabled/ # ¸ðµâ »ç¿ëÀ» À§ÇÑ ½Éº¼¸¯ ¸µÅ© »ý¼º
- ln -s /etc/apache2/mods-available/ldap.load /etc/apache2/mods-enabled/ # ¸ðµâ »ç¿ëÀ» À§ÇÑ ½Éº¼¸¯ ¸µÅ© »ý¼º
5.2 Trac ¹× SSL ¼³Á¤¢Ò
- ln -s /etc/apache2/mods-available/ssl.load /etc/apache2/mods-enabled/ # ¸ðµâ »ç¿ëÀ» À§ÇÑ ½Éº¼¸¯ ¸µÅ© »ý¼º
- ln -s /etc/apache2/mods-available/ssl.conf /etc/apache2/mods-enabled/ # ¸ðµâ »ç¿ëÀ» À§ÇÑ ½Éº¼¸¯ ¸µÅ© »ý¼º
- mkdir /etc/apache2/ssl
- openssl req -new -x509 -nodes -out /etc/apache2/ssl/server.crt -keyout /etc/apache2/ssl/server.key # Private Key¿Í ÀÎÁõ¼ »ý¼º <PRE class=wiki>Country Name (2 letter code) [AU]:KRState or Province Name (full name) [Some-State]:SeoulLocality Name (eg, city) []:SeoulOrganization Name (eg, company) [Internet Widgits Pty Ltd]:InfrawareOrganizational Unit Name (eg, section) []:TeamNameCommon Name (eg, YOUR name) []:TeamName.infraware.netEmail Address []:admin_id@infraware.co.kr</PRE>
- chmod 600 /etc/apache2/ssl/server.key # Private Key ¸ðµå ¼öÁ¤
- cp /etc/apache2/sites-available/default-ssl /etc/apache2/sites-available/ssl # ¸ðµâ »ç¿ëÀ» À§ÇÑ ½Éº¼¸¯ ¸µÅ© »ý¼º
- vi /etc/apache2/sites-available/ssl <PRE class=wiki><Location /Projects> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /home/trac PythonOption TracUriRoot /Projects AuthType Basic AuthName "TeamName Track" AuthBasicProvider ldap AuthLDAPURL "ldap://ldap.infraware.net:389/ou=People,dc=ldap,dc=infraware,dc=net" AuthzLDAPAuthoritative Off Require valid-user</Location></PRE>
- ln -s /etc/apache2/sites-available/ssl /etc/apache2/sites-enabled/
5.3 Subversion ¼³Á¤¢Ò
- vi /etc/apache2/mods-available/subversion.conf <PRE class=wiki><Location /svn> DAV svn SVNListParentPath on SVNParentPath /home/svn SSLRequireSSL AuthType Basic AuthName "TeamNAme Subversion" AuthBasicProvider ldap AuthLDAPURL "ldap://ldap.infraware.net:389/ou=People,dc=ldap,dc=infraware,dc=net" AuthzLDAPAuthoritative Off Require valid-user</Location></PRE>
- ln -s /etc/apache2/mods-available/subversion.conf /etc/apache2/mods-enabled/ # ¸ðµâ »ç¿ëÀ» À§ÇÑ ½Éº¼¸¯ ¸µÅ© »ý¼º
5.4 Apache2 Àç½ÃÀÛ¢Ò
6. ÃÖÁ¾Å×½ºÆ®¢Ò
|
|
|
|
|