2006-05 月份文章 顯示方式:簡文 | 列表

May 22,2006

svnserve + ssh


啟動 svn server


svnserve -d -r /svn/reposirty

設定


/svn/reposity/conf/svnserve.conf

[general]
anon-access = none
password-db = passwd
realm = My reposity


解釋


第一個是讓 anonymous 不能存取
第二個是 password -db file 是同目錄的 passwd
第三個是 realm 名稱 (option)

/svn/resposity/conf/passwd


[users]
user=userpassword

注意事項


1. 每行最前面不能有空白
2. 第一行不能有 comment


client


svn checkout --username user svn+ssh://username@domain.name/absoult/path/ local_dir_path

...繼續閱讀

Posted by thegiive at 15:27回應(0)引用(0)Linux

subversion + apache 認證的方式

1. 設定apache 裡面的 config


DAV svn
SVNPath /var/svn/source/
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /var/svn/source/conf/httpd-auth-file
Require valid-user



2. htpasswd2 /var/svn/source/conf/httpd-auth-file lala
這就會創立一個lala的使用者

3. svn checkout --username lala http://domain.name/svn/

Posted by thegiive at 14:55回應(0)引用(0)Subversion

May 17,2006

Subversion + Apache2 + Gentoo

Subversion + Apache2 + Gentoo安裝方式 ...繼續閱讀

Posted by thegiive at 18:06回應(0)引用(0)Subversion

PhpDocumentor

phpdoc 的使用方式

-o template
-f ori_file,ori_file_2,ori_file_3
-t target_dir


example :
phpdoc -o HTML:Smarty:PHP -f class.cache.php,adodb/session/adodb-session.php -t docs/

Posted by thegiive at 15:21回應(0)引用(0)

gentoo install in hard-raid

參考連結

步驟

  • boot 用 gentoo dodmraid
  • setup ssh server
  • cfdisk /dev/mapper/your_raid_set

Posted by thegiive at 14:59回應(0)引用(0)Linux

emerge 用法

加入USE變數


USE="innodb -berkdb" emerge mysql

使用unstable package


USE="innodb -berkdb" ACCEPT_KEYWORDS="~x86" emerge mysql

只觀看會安裝的package,不安裝


emerge -pv mysql

Posted by thegiive at 13:31回應(0)引用(0)Linux

May 16,2006

vim for php

加上 taglist 和 php-doc

taglist 放在 ~/.vim/plugin/
php-doc 放在 ~/.vim/

然後加入下面到 .vimrc 裡面

" taglist config
let Tlist_Ctags_Cmd='/usr/bin/ctags'
let Tlist_Inc_Winwidth = 0
nnoremap ^\ :Tlist

"php doc
source ~/.vim/php-doc.vim
inoremap :call PhpDocSingle()i
nnoremap :call PhpDocSingle()
vnoremap :call PhpDocRange()


Posted by thegiive at 18:17回應(0)引用(0)

check 硬碟壞軌

fsck -c /dev/hda1
badblocks /dev/da1

Posted by thegiive at 16:47回應(0)引用(0)Linux

May 12,2006

Apache2.2 port make configure

make WITHOUT_AUTHN_MODULES=1 WITHOUT_AUTHZ_MODULES=1 WITH_PROXY_MODULES=1 install

Posted by thegiive at 17:47回應(0)引用(0)FreeBSD

May 9,2006

LAMP install on Gentoo

1. 安裝 MySQL 5

USE="innodb -berkdb" ACCEPT_KEYWORDS="~x86" emerge -pv mysq

2. 安裝 Apache 2

emerge apache

3. 安裝 mod_php

USE="apache2 -X" emerge dev-lang/php

Posted by thegiive at 18:06回應(0)引用(0)Linux
 [第一頁]  [1]  [2]  [3]  [最終頁]