ubuntu server 10.04上安装proftpd
创始人
2024-07-21 21:40:20
0

  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 安装指南

 

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...
《非诚勿扰》红人闫凤娇被曝厕所... 【51CTO.com 综合消息360安全专家提醒说,“闫凤娇”、“非诚勿扰”已经被黑客盯上成为了“木...
2012年第四季度互联网状况报... [[71653]]  北京时间4月25日消息,据国外媒体报道,全球知名的云平台公司Akamai Te...