Chinaunix首页 | 论坛 | 博客
  • 博客访问: 408456
  • 博文数量: 87
  • 博客积分: 6015
  • 博客等级: 准将
  • 技术积分: 960
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-13 16:59
文章分类
文章存档

2015年(4)

2010年(16)

2009年(13)

2008年(12)

2007年(29)

2006年(13)

我的朋友

分类: LINUX

2010-08-04 22:00:48

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

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

 

  • 下载PROFTPD1.3.3,编译安装:

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』);


 

阅读(1229) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~