能够让Ubuntu完全显示文泉驿微米黑字体的字体配置文件

安装Proftpd的几点总结

bachue posted @ 2010年9月18日 07:23 in Linux with tags linux ftp proftpd , 4098 阅读

过去Proftpd总尽可能采用自动化安装+图形化使用的办法,偷懒,但是今天安装Proftpd我则采用了官方下载源码+自行编译+文本文件配置FTP,难度毫无疑问比之前大些,但也难不到哪里去。

安装方法详见《鸟哥的Linux私房菜》 linux.vbird.org/linux_server/0410proftpd.php 这里只总结一些鸟哥没有说的部分。

(话说这本书写得真好,通俗易懂,语言幽默,不愧是自由中国啊,令人神往。)

总结一:安装Proftpd出现如下错误:

tcpwrap.c:15:20: error: tcpd.h: No such file or directory

使用apt-get install libwrap0-dev即可。

总结二:中文问题,这个问题真的令人头疼,目前我也没有找到完全解决的办法,只能不断弱化这种错误

在鸟哥那句 ./configure --prefix=/usr/local/proftpd --enable-shadow --enable-autoshadow --with-modules=mod_ratio:mod_readme:mod_wrap 中再增加一个参数 --enable-nls

编译安装后,在proftpd.conf里增加一项:UseEncoding UTF-8 GBK,即可。

这么做的话,当从Windows的客户端或Linux的FTP服务器放入中文文件时他们互相访问都不会有问题,但这时使用Linux的客户端去访问Linux的FTP服务器,则文件名会有乱码(内容不会,似乎是Linux的FTP客户端编码和人家都不一样),不知道如何解决。

参考文献:

www.xpv.cn/home/vsftpdbianyicuowujiejuebanfa.html
blog.wu-boy.com/2010/07/07/2276/

贴出我的proftpd.conf,由于是自己家里使用,不会有安全问题,因此设为匿名可写可读的访问。用户ftp,组ftp,事先配置好/home/ftp,即可。

# This is a basic ProFTPD configuration file (rename it to 
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
 
ServerName "Bachues FTP"
ServerType standalone
DefaultServer on
UseEncoding UTF-8 GBK
 
# Port 21 is the standard FTP port.
Port 21
 
# Don't use IPv6 support by default.
UseIPv6 off
 
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
 
# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
 
TimesGMT                        off
AllowStoreRestart               on
 
# Set the user and group under which the server will run.
User nobody
Group nogroup
 
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~
 
# Normally, we want files to be overwriteable.
AllowOverwrite on
 
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>
 
# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /home/ftp>
  User ftp
  Group ftp
 
  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias anonymous ftp
 
  TransferRate  STOR    100000  user anonymous,ftp
  TransferRate  RETR    100000   user anonymous,ftp
 
  # Limit the maximum number of anonymous logins
  MaxClients 30
</Anonymous>

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter