ubuntu server 10.04上安裝proftpd

來源:互聯網
上載者:User

 

首先安裝圖形化案頭

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
”,就可以使用了。

 

 

 

 

 

 

 

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.