渋谷で働くWeb系営業マン おまるのブログ
mailto: omaru@ttd.jp
Amebaでブログを始めよう!
1 | 2 | 3 | 4 | 5 | 最初次のページへ >>

tracのOwnerをプルダウンに

trac.iniを編集。

[ticket] restrict_owner = true
↓こういう仕様とのこと。

Assign-to as Drop-Down List
If the list of possible ticket owners is finite, you can change the assign-to ticket field from a text input to a drop-down list. This is done by setting the restrict_owner option of the [ticket] section in trac.ini to “true”. In that case, Trac will use the list of all users who have logged in and set their email address to populate the drop-down field.
To appear in the dropdown list, a user needs be registered with the project, i.e. a user session should exist in the database. Such an entry is automatically created in the database the first time the user submits a change in the project, for example when editing the user's details in the Settings page. Also, the user must have TICKET_MODIFY permissions.

セッティングでメールアドレス入れてもらうと、プルダウンに反映。

tracの記事を削除

trac-admin /home/upgtrac/var/trac/repo ticket remove 1

32bit版ubuntuでメモリー4GB以上を認識させる

sudo aptitude install linux-generic-pae linux-headers-generic-pae

SELinux

apacheのドキュメントルートをユーザディレクトリにすると
apacheに怒られます。
パーミッション権限以外に強制アクセス権限(これをSELinuxと
いいます)がlinuxには存在していて、これを切らないと
上記が実現出来ません。
セキュリティ強化の目的ですね。

SELinuxをdisableにするには下記の通り
vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled

CPANモジュールインストール時に自動でyesで答える

$ sudo perl -MCPAN -e shell
cpan> o conf prerequisites_policy follow
cpan> o conf commit
1 | 2 | 3 | 4 | 5 | 最初次のページへ >>