TOW (Trac On Windows) Blog

August 28, 2008

Known bugs in TOW 0.3.0 alpha 1

Filed under: Hot Fix, Trouble Shooting, User Guide — Tags: , , , , , , , , , , , , , — yeoupooh @ 5:20 am

So far known bugs in TOW 0.3.0 alpha 1 is listed here.

  • Another Python installation may conflict error. (reported from LEE Munyoung)
    => Solution: Use PYTHONHOME variable instead of PYTHON_HOME.
  • Error in add-perm, list-perm, remove-perm scripts. (reported from kermi)
    => Solution: Edit scripts like below

Fixed add-perm.bat file

@echo off

call set-tow.bat

if “%3″==”” goto usage

call trac-admin %1 permission add %2 %3 %4 %5 %6 %7 %8 %9

goto end

:usage
call lang ADD_REMOVE_PERM_USAGE %0

:end

Fixed list-perm.bat file

@echo off

call set-tow.bat

if “%1″==”” goto usage

call trac-admin %1 permission list %2 %3 %4 %5 %6 %7 %8 %9

goto end

:usage
call lang LIST_PERM_USAGE %0

:end

Fixed remove-perm.bat file

@echo off

call set-tow.bat

if “%3″==”” goto usage

call trac-admin %1 permission remove %2 %3 %4 %5 %6 %7 %8 %9

goto end

:usage
call lang ADD_REMOVE_PERM_USAGE %0

:end

This bugs will be fixed in next release.
Thank you reporters.

Advertisements

March 7, 2008

How to install TOW to the other folder not C:\TOW (not pefect, but useful)

Filed under: Install, User Guide — Tags: , , , , , , — yeoupooh @ 11:36 am

I’ve tried installation on the other folder. It’s almost perfect except Python.

So, if you want to install to your own TOW folder, follow below. (ex. %TOW_HOME% is D:\Apps\TOW)

  1. Unzip TOW-*.zip to D:\Apps.
  2. Open %TOW_HOME%\set-tow.bat file and replace strings like below.

    set TOW_HOME=D:\Apps\TOW

  3. Open %TOW_HOME%\Apache\conf\httpd.conf file and replace strings like below.

    C:/TOW -> D:/Apps/TOW

  4. Open all %TOW_HOME%\SetupTracRepo\Projects\HelloTOW\conf\*.tpl files and replace strings.

    C:\TOW -> D:\Apps\TOW
    C:\\TOW -> D:\\Apps\\TOW

  5. Open %TOW_HOME%\create-svn-repo.bat file and replace.

    C:/TOW -> D:/Apps/TOW

  6. Copy %TOW_HOME%\Python folder to C:\TOW\Python
  7. Run %TOW_HOME%\start-tow.bat

If you have already installed on C:\TOW and want to move D:\Apps\TOW, you need something to do it working.

  1. Open %TOW_HOME%\TracRepo\Projects\%PROJECT_NAME%\trac.ini file and replaces strings like below.

    C:\TOW -> D:\Apps\TOW
    C:\\TOW -> D:\\Apps\\TOW

  2. Resync Trac repository.D:\Apps\TOW>trac-admin.bat %PROJECT_NAME% resync
  3. That’s it.

I hope it helps you.

P.S. Anyone have an idea to move Python to the other folder?

February 22, 2008

(Fixed) How to manage access control each user on SVN?

Filed under: User Guide — Tags: , , , , , , , , , , — yeoupooh @ 5:44 am

(Fixed: no requires svnserve.conf file. sorry)

By default, All TOW users have all privileges of SVN.

If you want to manage access control each user on SVN, try like this.

  1. Edit C:\TOW\Apache\conf\httpd.conf.
  2. Find <Location /svn> and change like below.

    <Location /svn>
    DAV svn
    SVNParentPath “C:/TOW/SvnRepo/Projects”

    # our access control policy
    AuthzSVNAccessFile “C:/TOW/SvnRepo/Projects/authz”

    # try anonymous access first, resort to real
    # authentication if necessary.
    Satisfy Any
    Require valid-user

    AuthType Basic
    AuthName “TOW:Subversion Authentication”
    AuthUserFile “C:/TOW/SvnRepo/Projects/trac.htpasswd”
    </Location>

  3. Create C:/TOW/SvnRepo/Projects/authz file and fill like below. (ex. test, test2 has already registered.)

    [/]
    test = rw
    test2 = r
    * =

  4. Restart TOW.

You can find more details about authz settings in here.

February 19, 2008

TOW and Eclipse Integration Diagram

Filed under: User Guide — Tags: , , , , , , , — yeoupooh @ 2:04 am

TOW and Eclipse Integration

January 9, 2008

How to manage user permissions?

Filed under: User Guide — Tags: , , , , , — yeoupooh @ 7:54 am

You may know that using trac-admin can manage user permissions. But it needs long typing.

So TOW 0.2.2 provides simple script.

Listing all user permissions

C:\TOW>list-perm <ProjectName>

Listing user permissions

C:\TOW>list-perm <ProjectName> <UserName>

Adding user permissions

C:\TOW>add-perm <ProjectName> <UserName> <Permissions(separated by space)>

Removing user permissions

C:\TOW>remove-perm <ProjectName> <UserName> <Permissions(separated by space)>

You can use *(wild card) at permissions.
You can find more detail informations in TracPermissions.

December 28, 2007

How to change Admin account’s password?

Filed under: User Guide — Tags: , , , , , — yeoupooh @ 8:06 am

If you want to change admin account’s password(default:towadmin), use add-user script.


C:\TOW>add-user admin <NewPassword>

Subversion Repository Access URL is …

Filed under: User Guide — Tags: , , , , — yeoupooh @ 8:00 am

http://<TowHost>/svn/<ProjectName&gt;

December 5, 2007

How to Fix Eclipse Mylyn Connection in 0.2.1 Standard package.

Filed under: User Guide — Tags: , , , , , , , , , — yeoupooh @ 2:54 am

I found mis-setting in trac.ini about Eclipse Mylyn Connection.

If you fix this, Edit your trac.ini like this and restart TOW.


trac.web.auth.loginmodule = enabled

I will release fixed version soon.

November 17, 2007

Administration

Filed under: User Guide — Tags: , , , , , , , , , , , — yeoupooh @ 5:13 pm

Administration

  • Default admin user is admin/towadmin

Adding New User


C:\TOW>add-user.bat <UserName> <Password>

Adding New Project


C:\TOW>create-svn-repo.bat <ProjectName>
C:\TOW>create-trac-repo.bat <ProjectName>

How to enable Bundled Plugins for Standad package users?

  • Add this on trac.ini (C:\TOW\!TracRepo\Projects\<!ProjectName>\conf\trac.ini)


[account-manager]
password_file = c:\TOW\SvnRepo\Projects\trac.htpasswd
password_store = HtPasswdStore

[components]
acct_mgr.admin.accountmanageradminpage = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.db.sessionstore = disabled
acct_mgr.htfile.abstractpasswordfilestore = disabled
acct_mgr.htfile.htdigeststore = disabled
acct_mgr.htfile.htpasswdstore = enabled
acct_mgr.http.httpauthstore = enabled
acct_mgr.pwhash.htdigesthashmethod = disabled
acct_mgr.pwhash.htpasswdhashmethod = disabled
acct_mgr.web_ui.accountmodule = enabled
acct_mgr.web_ui.loginmodule = disabled
acct_mgr.web_ui.registrationmodule = enabled
iniadmin.iniadmin.iniadminplugin = enabled
trac.web.auth.loginmodule = enabled
tracnav.* = enabled
tracrpc.* = enabled
tracrpcext.* = enabled
tractoc.* = enabled
tracwysiwyg.* = enabled
webadmin.* = enabled

How to run trac-admin?


C:\TOW>trac-admin.bat <ProjectName> <Commands>

How to run easy_install?


C:\TOW>easy_install.bat <Arguments>

Blog at WordPress.com.