= ¿ìºÐÅõ¿¡ Trac ¼³Ä¡Çϱâ =
1. ¿ì¼± ¾ÆÆÄÄ¡¿Í svn, trac °ú ¾ÆÆÄÄ¡¿¡¼ ¾µ ¼ö ÀÖ´Â svn ÀúÀå¼Ò¿¡ Á¢±ÙÇÒ ¼ö ÀÖ´Â ¸ðµâÀ» ¼³Ä¡ÇÕ´Ï´Ù.
{{{#!vim
$ sudo apt-get install apache2 subversion trac libapache2-svn
}}}
2. Trac µ¥ÀÌÅ͸¦ µð·ºÅ丮¸¦ ¸¸µé°í À¥¿¡¼ Á¢±ÙÇÒ ¼ö ÀÖµµ·Ï ±×·ì°ú ¼ÒÀ¯ÀÚ¸¦ º¯°æÇÕ´Ï´Ù.
{{{#!vim
$ sudo mkdir /var/trac
$ sudo chown www-data:www-data /var/trac
}}}
3. ¾ÆÆÄÄ¡¸¦ ¼³Á¤ÇÕ´Ï´Ù.
(/etc/apache2/sites-available/trac ¿¡ virtual host¸¦ ¼³Á¤ÇÕ´Ï´Ù.)
Áß°£¿¡ ¼¹öÀ̸§À̳ª ÁÖ¼Ò µîµî ¼¼ºÎ»çÇ×Àº ¾Ë¾Æ¼ º¯°æÇØ ÁÖ¼¼¿ä.
{{{#!vim
ServerAdmin webmaster@localhost
ServerName forge.kuls.net
DocumentRoot /usr/share/trac/cgi-bin/
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
allow from all
Alias /trac "/usr/share/trac/htdocs"
SetEnv TRAC_ENV "/var/trac"
DirectoryIndex trac.cgi
ErrorLog /var/log/apache2/error.trac.log
CustomLog /var/log/apache2/access.trac.log combined
}}}
/etc/apache2/apache2.conf ¿¡ ´ÙÀ½°ú °°ÀÌ ÁÖ¼®À» ÇØÁ¦ ½Ãŵ´Ï´Ù.
{{{#!vim
# To use CGI scripts outside /cgi-bin/:
#
AddHandler cgi-script .cgi
}}}
»õ ¼³Á¤À» Àû¿ë½ÃÅ°±â À§ÇØ ¾ÆÆÄÄ¡¸¦ Àç½ÃÀÛ ½Ãŵ´Ï´Ù.
{{{#!vim
sudo a2ensite trac
sudo a2dissite default
sudo /etc/init.d/apache2 restart
}}}
Trac »ç¿ë¿¡ ¸â¹ö ÀÎÁõÀÌ ÇÊ¿äÇÒ °æ¿ì¿£ ¾ÆÆÄÄ¡ virtual host ¼³Á¤¿¡ ¾Æ·¡¿Í °°ÀÌ Ãß°¡ÇÕ´Ï´Ù.
{{{#!vim
AuthType Basic
AuthName "Trac"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
}}}
(¹°·Ð ¼¼¼¼ÇÑ »çÇ×Àº Á÷Á¢ ¼öÁ¤ÀÌ ÇÊ¿äÇÕ´Ï´Ù.)
À§ÀÇ Æнº¿öµå´Â svn Á¢±Ù ¶§ÀÇ ÀÎÁõ°ú °øÀ¯µË´Ï´Ù.
4. TracÀ» ¼³Á¤ÇÕ´Ï´Ù.
{{{#!vim
sudo mkdir /var/svn
sudo mkdir /var/svn/YourProjectNameHere
sudo mkdir /tmp/YourProjectNameHere
sudo mkdir /tmp/YourProjectNameHere/branches
sudo mkdir /tmp/YourProjectNameHere/tags
sudo mkdir /tmp/YourProjectNameHere/trunk
sudo svnadmin create /var/svn/YourProjectNameHere
sudo svn import /tmp/YourProjectNameHere file:///var/svn/YourProjectNameHere -m "initial import"
sudo rm -rf /tmp/YourProjectNameHere
}}}
tmp ¾Æ·¡¿¡ ÀÖ´Â branches¿Í tags¿Í trunk´Â subversion ÀúÀå¼Ò¿¡¼ °ü½ÀÀûÀ¸·Î »ç¿ëµÇ´Â µð·ºÅ丮µé ÀÔ´Ï´Ù.
¼Ò½ºÀÇ ¼¼¼¼ÇÑ °ü¸®°¡ ÇÊ¿äÇÏÁö ¾ÊÀº ÀÏȸ¼º ÇÁ·ÎÁ§Æ®¿¡¼´Â ±»ÀÌ ¸¸µé ÇÊ¿ä´Â ¾ø½À´Ï´Ù.
Æ۹̼ÇÀ» Á¶Á¤ÇÏ°í ¾ÆÆÄÄ¡¸¦ Àç½ÃÀÛÇÕ´Ï´Ù.
{{{#!vim
sudo chown -R www-data /var/svn/YourProjectNameHere
sudo chown -R www-data /usr/share/trac
sudo apache2 -k restart
}}}
http://(¼¹ö µµ¸ÞÀÎ)/svn/YourProjectNameHere ¿¡¼ tags, branches, trunk µð·ºÅ丮 ¸ñ·ÏÀÌ º¸ÀÌ´ÂÁö Å×½ºÆ®ÇÕ´Ï´Ù.
¸¸¾à º¸ÀÌÁö ¾ÊÀ¸¸é subversion ¼³Á¤À» Àß »ìÆ캾´Ï´Ù.
(¾Ñ ¾ÈµÈ´Ù..-_-.. subversion ¼³Á¤ »ìÆì º¸´Â Áß..-_-)
ÀúÀÇ °æ¿ì¿¡´Â /etc/apache2/mods-enabled/dav_svn.conf ¿¡ SVNPath ¸¦ /var/svn/ À» /var/svn/YourProjectNameHere ½ÄÀ¸·Î ¼öÁ¤Çؼ ¼º°øÇß½À´Ï´Ù.
´Ù¸¸ ÀÌ·¸°Ô ÇÒ °æ¿ì ³ªÁß¿¡ ¿©·¯ ÀúÀå¼Ò¸¦ µ¹¸®°Ô µÉ ¶§ ¹®Á¦°¡ µÉ ¼öµµ ÀÖÀ¸´Ï °¡±ÞÀûÀ̸é Location ¼³Á¤À» Àß Çؼ °íÄ¡´Â °Ô ÁÁÀ» µí ÇÕ´Ï´Ù.
¸¶Áö¸·À¸·Î tracÀ» ¼³Ä¡ÇÕ´Ï´Ù.
{{{#!vim
sudo mkdir /var/trac
sudo trac-admin /var/trac/YourProjectNameHere initenv
sudo chown -R www-data /var/trac/YourProjectNameHere
}}}
[http://trac.edgewall.org/wiki/TracOnUbuntu]
ÀÌ ¹®¼¸¦ ±â¹ÝÀ¸·Î ÇÏ¿© ÀÛ¼ºµÇ¾ú½À´Ï´Ù.
ÀúÀÇ °æ¿ì¿£ virtual host ¼³Á¤¿¡ SetEnv TRAC_ENV ºÎºÐ¿¡ ÇÁ·ÎÁ§Æ® µð·ºÅ丮±îÁö ½á Áá¾î¾ß Á¦´ë·Î µ¿ÀÛÇß½À´Ï´Ù.