Openfiler手记

1401阅读 0评论2010-08-04 ytmin
分类:LINUX

 
安装很简单,简单记录一下一些细节的修改。会慢慢补充记录。
 
  1. 更新GCC,以更新PROFTPD为1.33, 增加支持UTF-8。

conary update gcc
conary update libtool
conary update glib
conary update glib:devel
conary update glibc
conary update glibc:devel
conary update automake
conary update autoconf
conary update pkgconfig

 

1 conary update gcc gcc:devel

2 conary update libtool libtool:devel

3 conary update glib glib:devel

4 conary update glibc glibc:devel

5 conary update automake autoconf pkgconfig

6 conary update gcc-c++

7 conary update pam:devel

 

wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3.tar.gz

tar -zxf proftpd-1.3.3.tar.gz

cd proftpd-1.3.3

./configure --prefix=/usr --sysconfdir=/etc/proftpd --localstatedir=/var/run --enable-nls --enable-auth-pam

make

make install


安装前需关闭FTP服务,安装完成后尝试打开。
 
2.Share 名称中文化:
 

vi /opt/openfiler/var/www/htdocs/admin/shares.html

:g/htmlentities/s//htmlspecialchars/g

vi /opt/openfiler/var/www/htdocs/admin/shares_edit.html

:g/htmlentities/s//htmlspecialchars/g

 

如果发现服务打不开了,尝试修改:

1 vi ./opt/openfiler/var/www/includes/generate.inc

find

$ac_ftp_fp->AddLine(『DisplayFirstChdir\t\t.message』);

replace with

$ac_ftp_fp->AddLine(『DisplayChdir\t\t.message』);


 

上一篇:如下批量添加/修改用户里的某一项属性
下一篇:Openfiler 之配置LUN快照功能