ubuntu server 10.04上安装proftpd

运维 系统运维
ubuntu server 10.04上安装proftpd :FileZilla是一款免费而且开源的FTP工具,他包括FileZilla Client,FileZilla Server两个版本。FileZilla Server只提供了windows系统下的版本。本文主要讲述的是ubuntu server 10.04上安装proftpd

  ubuntu server 10.04上安装proftpd

  首先安装图形化桌面

  1.   sudo apt-get install ubuntu-desktop  
  2.  

  需要等待较长的时间。(如果是 2M 的带宽,哪么需要装 1 到 2 个小时。)

  然后安装中文语言 ,点击菜单“系统 - 系统管理 - 语言支持”,选中中文(中国)安装。

  (网上教程很多)

  一、首先安装 proftpd

  1.   Sudo apt-get install proftpd  
  2.  

  二、安装 gadmin-proftpd 图形配置程序

  1.   Sudo apt-get install gadmin-proftpd  
  2.  

  三、启动图形配置程序

  在命令行中输入 gadmin-proftpd 或者通过菜单“应用程序 — 》系统工具 — 》 gadmin-proftpd ”

  如果显示 proftpd 没有被激活,哪么说明 proftpd 服务没有启动,需要手工启动,在命令行中输入: Sudo service proftpd start ,然后再打开gadmin-proftpd 。

  Sudo service proftpd stop 是停止

  Sudo service proftpd restart 是重新启动,

  四、替换 proftpd 默认的配置文件

  安装 gadmin-proftpd 之后,通过图形界面对 proftpd 进行配置,让 gadmin-proftpd 对应的配置文件替换 proftpd 默认的配置文件。

  五、证书进行认证

  如果无法启动,哪么需要证书进行认证。

  给 gadmin-proftpd 安装证书

  下载脚本 http://www.castaglia.org/openssl/contrib/cert-tool (目前证实可用)

  需要修改, openssl 和 c_bash 命令的位置,通过 whereis 找到命令的位置

  首先下载 cert-tool ,执行命令

  Chmod 755 cert-tool 让 cert-tool 命令可以执行;

  然后通过 gedit ,首先对 cert-tool 进行修改,找到第 32 行,

 

  1.   # Defaults  
  2.  
  3.   my $openssl = '/usr/local/openssl/bin/openssl';  
  4.  
  5.   my $c_rehash = '/usr/local/openssl/bin/c_rehash';  
  6.  

 

  更改成下面的代码:

  1.   # Defaults  
  2.  
  3.   my $openssl = '/usr/bin/openssl';  
  4.  
  5.   my $c_rehash = '/usr/bin/c_rehash';  
  6.  

  如果 openssl 没有安装,哪么首先要安装 openssl

  1.   Sudo apt-get install openssl  
  2.  

  通过 cert-tool 生成证书

 

  1.   cert-tool --create-ca=serverca --signing-ca=self 
  2.  
  3.   cert-tool --create-cert=server --signing-ca=serverca.cert.pem --signing-key=serverca.key.pem  
  4.  

  如果生成的时候提示错误,解决办法如下:

  首先到/usr/local/cert-tool , 把这个目录下面的内容全部清空,然后执行上面的两条cert-tool 命令

  将生成的证书文件拷贝到 /etc/gadmin-proftpd/certs 下面。

  TLSRSACertificateFile /etc/gadmin-proftpd/certs/server.cert.pem

  TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/server.key.pem

  TLSCACertificateFile /etc/gadmin-proftpd/certs/serverca.cert.pem

  六、如果重启之后,proftpd 没有启动,解决办法

  首先停止proftpd 服务

  1.   Sudo service proftpd stop  
  2.  

  然后从开机启动中删除对应的服务

  1.   Sudo update-rc.d -f proftpd remove  
  2.  

  然后重新安装proftpd 服务器

  1.   Sudo update-rc.d proftpd defaults  
  2.  

  重启系统进行测试!成功

  七、安装 ftp 客户端 filezilla

  Filezilla 有 windos 和 linux 两个版本

  1.   Sudo apt-get install filezilla  
  2.  

  安装后,点击菜单“应用程序 - 互联网 -filezilla ”,就可以使用了。

【编辑推荐】

  1. FileZilla FTP server 安装配置(图)
  2. FileZilla客户端高级体验(图)
  3. FileZilla FTP服务器源代码分析(2)
  4. FileZilla FTP服务器源代码分析(4)
  5. FileZilla Ftp 教程
  6. FileZilla FTP Server安装教程
  7. Filezilla server 安装指南

 

责任编辑:zhaolei 来源: CSDN网
相关推荐

2010-05-25 09:04:55

2011-03-03 09:04:25

2011-03-03 14:47:35

2011-03-03 13:32:07

Proftpd安装

2011-03-03 14:47:35

2011-02-25 14:35:06

ubuntuproftp安装

2011-03-03 11:06:44

Ubuntu安装ProFTPD

2010-05-11 14:58:32

Ubuntu 10.0安装

2011-03-21 16:37:57

2011-02-23 09:47:07

UbuntuProFTPdMySQL

2011-02-23 09:47:07

2011-04-22 16:14:37

UbuntuMediaWiki

2011-09-07 16:43:10

ubuntuwindowsXP

2017-08-09 13:13:25

LinuxUbuntuZabbix

2011-08-29 11:32:44

UbuntuiPhone

2011-03-02 17:21:00

Ubuntupure-ftpd

2011-03-10 10:55:38

Ubuntu搭建LAMP

2011-08-29 14:40:04

UbuntuAndroid

2010-07-13 09:46:09

TomcatUbuntu 10.0

2011-02-25 15:55:25

unixProftpd
点赞
收藏

51CTO技术栈公众号