- 浏览: 166156 次
- 性别:
- 来自: 南宁
最新评论
-
pipal:
jy1245626 写道引用Eclipse的代理这个是哪个功能 ...
eclipse启动tomcat成功,但却一直处在starting状态 -
jy1245626:
引用Eclipse的代理这个是哪个功能?,我eclips跑Jb ...
eclipse启动tomcat成功,但却一直处在starting状态 -
iany:
I have the same case before, it ...
eclipse启动tomcat成功,但却一直处在starting状态 -
pipal:
烟雨遥_sun 写道很强大,正好遇到这个问题,感谢楼主分享! ...
linux mysql mysql_real_connect函数导致内存泄露 -
烟雨遥_sun:
很强大,正好遇到这个问题,感谢楼主分享!
linux mysql mysql_real_connect函数导致内存泄露
我在Linux下用的ftp服务器是VSFTP,这东东真是让人又爱又恨,安装及配置起来是挺简单的,但问题是,它有中文乱码问题,尝试了N久之后,现在终于勉强算是解决了。在此要感谢网上的牛人,那位大牛做了个包,用那东东可以顺利解决中文问题,在WINDOWS下登录FTP中文不再是乱码了。不过有点小问题是,在UTF8机子下登录FTP的这乱码还存在,真让人讨厌,下面进入正题。
首先下载附件里的vsftpd-encoding_2.0.4-0ubuntu4_i386.deb,请把后缀.rar给去掉,因为论坛不允许上传其它格式的文件 ,然后安装,
sudo dpkg -i vsftpd-encoding_2.0.4-0ubuntu4_i386.deb
呵呵,安装很简单。
现在来看看怎么配置:
sudo gedit /etc/vsftpd.conf&
下面是我的配置内容,注释里很清楚了,我不多说什么了。
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=NO
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#===============add by zengXiangSheng 2008/12/03
##############to specify all the users 's login dir
local_root=/home/ftp
####FTP max connect number
#Max_clients=200
#######the max connect number for per ip
#Max_per_ip=4
####=====隐藏文件的所有者和组信息,匿名用户看到的文件的所有者和组全变为ftp
hide_ids=YES
#======anonymous login without asking password========
no_anon_password=YES
#the root of anonymous
anon_root=/home/ftp/anon
#anon_root=/media/sda9/linuxFtp
#anon_world_readable_only=NO
###########################
########################encoding patch setting########################
charset_filter_enable=YES
charset_client=GBK
charset_server=UTF8
首先下载附件里的vsftpd-encoding_2.0.4-0ubuntu4_i386.deb,请把后缀.rar给去掉,因为论坛不允许上传其它格式的文件 ,然后安装,
sudo dpkg -i vsftpd-encoding_2.0.4-0ubuntu4_i386.deb
呵呵,安装很简单。
现在来看看怎么配置:
sudo gedit /etc/vsftpd.conf&
下面是我的配置内容,注释里很清楚了,我不多说什么了。
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=NO
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#===============add by zengXiangSheng 2008/12/03
##############to specify all the users 's login dir
local_root=/home/ftp
####FTP max connect number
#Max_clients=200
#######the max connect number for per ip
#Max_per_ip=4
####=====隐藏文件的所有者和组信息,匿名用户看到的文件的所有者和组全变为ftp
hide_ids=YES
#======anonymous login without asking password========
no_anon_password=YES
#the root of anonymous
anon_root=/home/ftp/anon
#anon_root=/media/sda9/linuxFtp
#anon_world_readable_only=NO
###########################
########################encoding patch setting########################
charset_filter_enable=YES
charset_client=GBK
charset_server=UTF8
- vsftpd-encoding_2.0.4-0ubuntu4_i386.deb.rar (107.3 KB)
- 下载次数: 215
发表评论
-
thinkpad小红帽+中键滚屏
2011-02-04 19:05 3014由于习惯了不使用鼠标,windows下一直用的小红帽+中键滚屏 ... -
win7 下恢复 ubuntu 10.04(转)
2010-11-08 16:04 1715转自:http://www.cppblog.com/guoji ... -
realplayer 自动退出
2009-11-27 13:19 1137从官网下载了realplayer的deb包,安装完毕,播放文件 ... -
Linux歌词显示
2009-11-09 14:28 941安装附件里的包,然后: 首先项-->插件-->常规--> ... -
Ubuntu g2ipmsg
2009-11-09 09:46 1331本方转自“http://forum.ubuntu.org.cn ... -
几个常用的Firefox插件
2009-09-14 13:46 820上传几个常用的Firefox插件,下次重装系统找起来就不用这么 ... -
Ubuntu 8.04 无法启动openoffice.org
2009-09-14 13:31 1465今天把ubuntu 从7.10 升级到 8.04,打开OPEN ... -
Linux CGI编程
2009-03-22 16:46 1988转自http://blog.chinaunix.net ... -
Linux下MP3歌曲信息乱码之贱人解决方案
2009-03-20 22:51 1398转载一篇文章: 现在linux下有越来越多的优秀的播放软件 ... -
ubuntu 飞信插件安装
2009-03-20 22:07 1646一,安装pidgin sudo apt-get install ... -
Wget使用方法
2009-03-20 08:13 1471本文转自 http://wiki.ubuntu ... -
UbuntuSkills
2009-03-20 08:09 1013本文转自 http://wiki.ubuntu.org.cn/ ... -
Opera 9.64 输入法无效解决方案
2009-03-17 09:04 998用OPERA也用一段时间了,前阵子升级到Opera 9.64, ... -
替换^M字符
2009-03-17 09:00 2395最近经常在LINUX下C编程,使用vi来查看一些在Window ... -
java MD5加密类--笔记
2009-02-22 13:13 1733java MD5加密类--笔记 转 ... -
Ubuntu TELNET服务安装配置
2008-12-31 12:28 2262Ubuntu TELNET服务安装配置 1. sudo a ... -
linux find详解
2008-12-30 16:30 6769转载一篇好文章:http://blog.csdn.net/ja ... -
find命令详解。非常详细有用
2008-12-30 13:59 2835今天进行些文件处理时要用到find命令,网上搜索后发现下面的文 ... -
用iconv批量转换文本编码,解决showlyric乱码问题
2008-12-30 13:50 3617问题:想在ubuntu下听音乐不难,但想让它同时显示歌词却不容 ... -
解决Rhythmbox乱码
2008-12-29 12:53 4795今天在ubuntu论坛看到怎样解决困惑我已久Rhythmbox ...
相关推荐
### Ubuntu常见问题及解决方案 #### 一、关于Ubuntu ##### 1.1 发行版和版本号 **问题**: Ubuntu的版本号是如何确定的?下一个版本的Ubuntu版本号将会是多少? **解答**: Ubuntu的版本号是由该版本系统发行时间...
本文将详细介绍如何在Ubuntu 7.10 Gutsy版本上安装和配置这些组件。 首先,我们需要安装Java环境。在Ubuntu下,可以通过使用apt-get命令来安装Java 6的JRE(Java运行时环境)和SDK(软件开发工具包)。在终端中输入...
此方法适用于那些希望在没有光驱或者USB驱动器的情况下安装Ubuntu的用户。硬盘安装不仅能够节省资源,还能在一定程度上提高安装速度。 #### 二、下载必要的安装文件 ##### 1. 下载光盘映像文件 - 首先,您需要下载...
### VirtualBox在Linux下的安装与配置 #### 一、引言 随着技术的发展和个人需求的多样化,越来越多的用户需要在Linux环境下使用Windows应用程序或者进行软件测试等操作。虚拟化技术应运而生,成为了解决这类问题的...
- **Live CD**:用户可以在不安装系统的情况下通过Live CD体验Ubuntu的功能。 - **GUI安装程序**:提供了一个图形化的安装过程,类似于Windows的安装方式,降低了学习曲线。 - **软件中心**:一个集中的平台,用于...
以下是在Ubuntu 7.10(Gutsy Gibbon)上编译Android的主要步骤和注意事项: 1. **概述**: Android开源项目发布后,用户可以在Ubuntu 7.10这样的Linux发行版上自行编译系统。相比于使用OpenEmbedded的openmoko和...
使用 Ubuntu Linux 软件源非常简单,只需要记住正确的软件名,并确定在 Ubuntu 下肯定有的软件,然后使用命令来安装软件。例如,如果要安装 EVA 软件,可以输入命令:sudo apt-get install eva。 如何添加 Ubuntu ...
标题“Ubuntu 7.10 安装 VMware Tools”涉及的是在Ubuntu 7.10(Gutsy Gibbon)操作系统上安装VMware Tools的过程。VMware Tools是VMware为虚拟机提供的一套优化工具,它能提升虚拟机的性能,并提供更好的硬件兼容性...
在Linux系统中,尤其是Ubuntu这样的发行版,为了确保软件包的更新与安装,我们需要正确地配置系统的软件源。给定的内容显示了几个不同的软件源地址: 1. **官方主仓库**:`deb http://ubuntu.cn99.com/ubuntu gutsy...
在虚拟机环境中,为了提升Ubuntu 7.10(代号Gutsy Gibbon)的性能、稳定性和用户体验,安装VMware-Tools是一项至关重要的步骤。以下是对标题、描述及部分给定内容中所涉及的知识点的详细阐述: ### 虚拟机中为...
Ubuntu 7.10,代号为"Gutsy Gibbon",发布于2007年,包含了当时最新的技术和安全更新。尽管该版本已经过时,但理解它的历史背景有助于我们了解Ubuntu的发展历程以及它在技术上的演变。 描述中的“针对虚拟机进行...
Ubuntu的版本号包括6.06 LTS、7.04、7.10 Tribe 4、Gutsy Gibbon等,这些都代表了Ubuntu的特定发行版。Ubuntu操作系统基于Linux内核,并采纳了GNU项目和自由软件基金会所制定的GPL许可证。 ### Linux发行版和桌面...
- **当前版本**: 本文档未明确给出具体的版本号,但根据文档的编写时间(2007年),可以推测当时最新的稳定版本可能是 Ubuntu 7.10(Gutsy Gibbon)。 - **特点**: - 免费且开源:基于GNU/Linux操作系统。 - 用户...
- **论坛交流:** 访问Ubuntu中文论坛(如http://forum.ubuntu.org.cn/),与其他用户交流问题和解决方案。 - **投稿文章:** 如果您有兴趣撰写关于Ubuntu的文章,可以遵循社区的投稿指南提交文章。文章应与Ubuntu或...
在Ubuntu 7.10(Gutsy Gibbon)上,由于其内核和动态链接库glibc的版本较高,直接安装ic5141可能会遇到兼容性问题。ic5141需要的是Linuxthreads线程机制,而Ubuntu 7.10使用的是NPTL(Native POSIX Thread Library)...