ubuntu server 10.04上安裝proftpd
ubuntu server 10.04上安裝proftpd
首先安裝圖形化桌面
- sudo apt-get install ubuntu-desktop
需要等待較長的時間。(如果是 2M 的帶寬,哪么需要裝 1 到 2 個小時。)
然后安裝中文語言 ,點擊菜單“系統(tǒng) - 系統(tǒng)管理 - 語言支持”,選中中文(中國)安裝。
(網(wǎng)上教程很多)
一、首先安裝 proftpd
- Sudo apt-get install proftpd
二、安裝 gadmin-proftpd 圖形配置程序
- Sudo apt-get install gadmin-proftpd
三、啟動圖形配置程序
在命令行中輸入 gadmin-proftpd 或者通過菜單“應(yīng)用程序 — 》系統(tǒng)工具 — 》 gadmin-proftpd ”
如果顯示 proftpd 沒有被激活,哪么說明 proftpd 服務(wù)沒有啟動,需要手工啟動,在命令行中輸入: Sudo service proftpd start ,然后再打開gadmin-proftpd 。
Sudo service proftpd stop 是停止
Sudo service proftpd restart 是重新啟動,
四、替換 proftpd 默認(rèn)的配置文件
安裝 gadmin-proftpd 之后,通過圖形界面對 proftpd 進行配置,讓 gadmin-proftpd 對應(yīng)的配置文件替換 proftpd 默認(rèn)的配置文件。
五、證書進行認(rèn)證
如果無法啟動,哪么需要證書進行認(rèn)證。
給 gadmin-proftpd 安裝證書
下載腳本 http://www.castaglia.org/openssl/contrib/cert-tool (目前證實可用)
需要修改, openssl 和 c_bash 命令的位置,通過 whereis 找到命令的位置
首先下載 cert-tool ,執(zhí)行命令
Chmod 755 cert-tool 讓 cert-tool 命令可以執(zhí)行;
然后通過 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 , 把這個目錄下面的內(nèi)容全部清空,然后執(zhí)行上面的兩條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 服務(wù)
- Sudo service proftpd stop
然后從開機啟動中刪除對應(yīng)的服務(wù)
- Sudo update-rc.d -f proftpd remove
然后重新安裝proftpd 服務(wù)器
- Sudo update-rc.d proftpd defaults
重啟系統(tǒng)進行測試!成功
七、安裝 ftp 客戶端 filezilla
Filezilla 有 windos 和 linux 兩個版本
- Sudo apt-get install filezilla
安裝后,點擊菜單“應(yīng)用程序 - 互聯(lián)網(wǎng) -filezilla ”,就可以使用了。
【編輯推薦】
- FileZilla FTP server 安裝配置(圖)
- FileZilla客戶端高級體驗(圖)
- FileZilla FTP服務(wù)器源代碼分析(2)
- FileZilla FTP服務(wù)器源代碼分析(4)
- FileZilla Ftp 教程
- FileZilla FTP Server安裝教程
- Filezilla server 安裝指南