Setup Trac on Windows
Isnin, 3 Disember 2012, 5:14 pm0
Using Bitnami Trac Stack + Subversion (SVN).
- Setup environment
- Download Bitnami Track Stack (Windows installer) & install it
- Add to PATH
C:Program FilesBitNami Trac StackpythonScripts C:Program FilesBitNami Trac Stackapache2bin
- Create new project
- Cmd
$ trac-admin <trac env path> initenv
- path: C:UsersUsernameProjectsTracnewproject
- Cmd
- Configure SVN repo
- Edit C:UsersUsernameProjectsTracnewprojectconftrac.ini
repository_dir = <svn repo path>
- path: C:UsersUsernameProjectsReposnewproject (create using TortoiseSVN)
- Edit C:UsersUsernameProjectsTracnewprojectconftrac.ini
- Enable SVN module in Trac
- Edit trac.ini
[components]
tracopt.versioncontrol.svn.svn_fs.subversionconnector=enabled
acct_mgr.*=enabled
- Edit trac.ini
- Edit logo image
- Edit trac.ini
[header_logo] src = site/logo.png
- Place image in <trac env path>htdocslogo.png
- Edit trac.ini
- Enable syntax highlighting
- Install pygments
# easy_install pygments
- Edit trac.ini
[mimeviewer] pygments_default_style = default
- Install pygments
- Add admin permission
- Cmd
$ trac-admin /path/to/projenv permission add admin TRAC_ADMIN
- /path/to/projectenv = c:UsersUsernameProjectsTracnewproject
- Cmd
- Add user
- Cmd
# htdigest -c htpasswd "Trac" username
- -c = Create auth file (exclude when adding user)
htpasswd = C:UsersUsernameBitNami Trac Stackappstracusershtpasswd
“trac” = realm in http-dav-svn.conf below
- Cmd
- Enable SVN repo hosting on Apache
- Add in httpd.conf
# svn repository Include conf/extra/http-dav-svn.conf
- Create http-dav-svn.conf (copied from subversion.conf at https://azwan082.my/2010/11/06/apache-svn-on-fedora/)
- Edit:
SVNParentPath C:UsersUsernameProjectsRepos AuthType Basic
AuthName
&AuthUserFile
follow values in c:Program FilesBitNami Trac Stackappstracconftrac.conf
* bitnami trac by default is using basic auth
- Add in httpd.conf
Trac can be accessed at http://localhost/trac. Checkout & commit to SVN repo at http://localhost/svn
Record from tv card using mencoder
5 Disember 2012