`
ruirui516888
  • 浏览: 137233 次
文章分类
社区版块
存档分类
最新评论

ubuntu server 10.04上安装proftpd

 
阅读更多

<!-- [if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery> <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:SpaceForUL/> <w:BalanceSingleByteDoubleByteWidth/> <w:DoNotLeaveBackslashAlone/> <w:ULTrailSpace/> <w:DoNotExpandShiftReturn/> <w:AdjustLineHeightInTable/> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:UseFELayout/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!-- [if !mso]> <object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui> </object> <style> st1/:*{behavior:url(#ieooui) } </style> <![endif]--><!-- [if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]-->

首先安装图形化桌面

sudo apt-get install ubuntu-desktop

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

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

(网上教程很多)

首先安装 proftpd

Sudo apt-get install proftpd

安装 gadmin-proftpd 图形配置程序

Sudo apt-get install gadmin-proftpd

启动图形配置程序

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

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

Sudo service proftpd stop 是停止

Sudo service proftpd restart 是重新启动,

安装 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 行,

# Defaults

my $openssl = '/usr/local/openssl/bin/openssl';

my $c_rehash = '/usr/local/openssl/bin/c_rehash';

更改成下面的代码:

# Defaults

my $openssl = '/usr/bin/openssl';

my $c_rehash = '/usr/bin/c_rehash';

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

Sudo apt-get install openssl

通过 cert-tool 生成证书

cert-tool --create-ca=serverca --signing-ca=self
cert-tool --create-cert=server --signing-ca=serverca.cert.pem --signing-key=serverca.key.pem

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

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

将生成的证书文件拷贝到 /etc/gadmin-proftpd/certs 下面。(粗体的是哪个pem 文件)

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 服务

Sudo service proftpd stop

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

Sudo update-rc.d -f proftpd remove

然后重新安装proftpd 服务器

Sudo update-rc.d proftpd defaults

重启系统进行测试!成功

安装 ftp 客户端 filezilla

Filezilla windos linux 两个版本

Sudo apt-get install filezilla

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics