우분투 Trac webadmin 설치 및 Trac login 설정법

Posted at 2008/01/03 20:57 // in 웹프로그래밍™/Trac, SVN, Eclipse // by 블루비
우분투에서 Trac 웹관리자 webadmin 설치 방법입니다.
# apt-get install python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-setuptools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 211kB of archives.
After unpacking 786kB of additional disk space will be used.
Get:1 http://kr.archive.ubuntu.com gutsy/main python-setuptools 0.6c6-1 [211kB]
Fetched 211kB in 4s (51.3kB/s)
Selecting previously deselected package python-setuptools.
(Reading database ... 20915 files and directories currently installed.)
Unpacking python-setuptools (from .../python-setuptools_0.6c6-1_all.deb) ...
Setting up python-setuptools (0.6c6-1) ...

# easy_install http://svn.edgewall.com/repos/trac/sandbox/webadmin
Downloading http://svn.edgewall.com/repos/trac/sandbox/webadmin
Doing subversion checkout from http://svn.edgewall.com/repos/trac/sandbox/webadmin to /tmp/easy_install-h02BWw/webadmin
Processing webadmin
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-h02BWw/webadmin/egg-dist-tmp-W4IWxz
zip_safe flag not set; analyzing archive contents...
webadmin.plugin: module references __file__
TracWebAdmin 0.1.2dev-r5911 is already the active version in easy-install.pth

Installed /usr/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev_r5911-py2.5.egg
Processing dependencies for TracWebAdmin==0.1.2dev-r5911
Finished processing dependencies for TracWebAdmin==0.1.2dev-r5911

#


Trac 로그인 설정
# htpasswd -c /var/lib/trac/TracProjectName/.htpasswd admin
New password:
Re-type new password:
Adding password for user admin
#
Apache host conf 파일에 아래 내용 추가 (Multiple projects)
<LocationMatch "/TracProjectName/[^/]+/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /var/lib/trac/TracProjectName/.htpasswd
Require valid-user
</LocationMatch>
Single project 시에는 아래것으로
<Location "/TracProjectName/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /var/lib/trac/TracProjectName/.htpasswd
Require valid-user
</Location>

2008/01/03 20:57 2008/01/03 20:57

http://blueb.net/blog/trackback/1029

댓글을 남겨주세요.

[로그인][오픈아이디란?]