(21 intermediate revisions by the same user not shown)
Line 2:
Line 2:
==介紹==
==介紹==
This tutorial describes how to transfer files to and from a remote server using the KDE Software Compilation. This might mean downloading a file from a FTP server or saving a file over SSH.
這份指南描述如何用 KDE 軟體匯集(Software Compilation)跟遠程服務器進行文件傳輸。從 FTP 服務器下載文件或是通過 SSH 保存文件。
The KDE SC does not include a standard FTP client as you may know it from other platforms. There are some third party applications like [http://kasablanca.berlios.de Kasablanca] or [[Special:myLanguage/KFTPgrabber|KFTPgrabber]] but they are not yet fully ported to the KDE Platform 4. The good news however is, you don't need such an application to manage files on your remote servers. The KDE platform features a far more powerful technique for dealing with such situations.
KDE SC 並沒有包含你可能在其他平台看到的標準FTP 客戶端。有一些第三方的程序像是[http://kasablanca.berlios.de Kasablanca] 或 [[Special:myLanguage/KFTPgrabber|KFTPgrabber]],但它們還沒完全遷移到 KDE 開發平台4(KDE Platform 4)。好消息是你不需要那樣的程序來管理遠程服務器上的文件。 KDE 平台(KDE platform)擁有更強大的技術來處理這種情況。
==Basic file transfers==
==基本文件傳輸==
To connect to a remote server you can use almost any KDE application. You may choose the appropriate application depending on the task you want to do. For example, if you wanted to browse a remote server the best choice would be [[Special:myLanguage/Dolphin|Dolphin]] or [[Special:myLanguage/Konqueror|Konqueror]]. To edit a webpage you can directly use [[Special:myLanguage/Quanta|Quanta]] without the need of a separate FTP application. In this example we will use '''Dolphin''' and transfer files using FTP.
幾乎所有 KDE 程序都能用來連接到遠程服務器。你可以根據任務要求使用適合的程序。比如,如果你想要瀏覽器遠程服務器,最好的選擇就是 [[Special:myLanguage/Dolphin|Dolphin]] 或 [[Special:myLanguage/Konqueror|Konqueror]]。要編輯網頁,你可以無需單獨的FTP 服務器直接用[[Special:myLanguage/Quanta|Quanta]]。這裡的例子中,我們會用 '''Dolphin''',通過FTP 傳輸文件。
==Connect to a FTP server==
==連接到 FTP 伺務器==
To connect to a FTP server just open '''Dolphin''' and click on an empty place in the address bar. Type the address of your server into the address bar. Don't forget the ftp:// at the beginning:
If your server requires authentication you will be prompted for your credentials in a popup dialog. Enter your username and password. If you wish to save them, check the relevant checkbox. '''Dolphin''' will store your passwords securely in your KDE Wallet. For faster access you can insert the username and password directly in the address bar using this format: '''''<nowiki>ftp://username:[email protected]</nowiki>'''''; however we do not recommend this, as it is a security risk. Not only is it visible in your location bar, but it is stored in plain text, and so can be easily read by anyone with access to your home folder. Storing the password in '''KWallet''' is much safer, providing you have protected your '''KWallet''' with a password.
如果你的服務器需要驗證,會彈出對話框提示你進行身份驗證。輸入你的用戶名和密碼。如果你想保存登錄信息,勾選相關的複選框。 '''Dolphin''' 會安全的存儲你的密碼到 KDE 電子錢包。你也可以在地址欄中插入用戶名和密碼來更快的訪問,這樣的格式: '''''<nowiki>ftp://username:[email protected]</nowiki>'''''; 但我們不推薦這樣,有安全風險。一是密碼直接能在地址欄中看到,二是這些信息是存儲在純文本中的,可以很容易的被訪問你的主文件夾(home)的其他人讀取。假如你用了密碼來保護電子錢包,存儲登錄信息的密碼在 '''KWallet''' 會安全很多。
==Other protocols==
==其他協議==
FTP is just one example of the many different protocols that the KDE platform supports. There is a whole lot more to explore. To see a list of all supported protocols, click on the tick next to the address bar to switch to browse mode...
The protocol selector should appear similar as shown on the next screenshot. What protocols are available on your system, depends on which KIO plugins you have installed.
協議選擇列表會如下圖所示出現。你係統上可用的協議支持取決於你已安裝的 KIO 插件。
[[Image:Tutorials_ftp3.png|center]]
[[Image:Tutorials_ftp3.png|center]]
Note: Due to KDE bug #55804, files moved or copied from the local machine to a remote machine via the fish protocol have the wrong timestamps. A workaround is to use SFTP for transferring files to another machine.
If you want a more standalone-ftp-client like experience you can use Dolphin's split view:
如果你想要更近似獨立FTP 客戶端體驗,你可以用Dolphin 的「分割視圖」:
Line 48:
Line 48:
==Add a remote folder to your places bar==
==添加遠程文件夾到「地址」面板==
You can drag and drop a remote folder directly to your places and bookmark it:
拖放遠程文件夾直接到「地址」作為書籤:
Line 56:
Line 56:
==Directly access remote files in other KDE applications==
==在其他KDE 程序中直接訪問遠程文件==
As already said previously, nearly every KDE application is capable of accessing remote files and folders. For example, you can open a remote website directly in [[Special:myLanguage/Kate|Kate]] by inserting the address in the file open dialog:
如之前所述,幾乎每個 KDE 程序都能夠訪問遠程文件和文件夾。比如,[[Special:myLanguage/Kate|Kate]] 中在文件打開對話框中插入地址可以直接打開遠程網站:
[[Image:Tutorials_Ftp5.png|560px|center]]
[[Image:Tutorials_Ftp5.png|560px|center]]
You can now edit the file in '''Kate'''. When you click <menuchoice>Save</menuchoice> the file will be directly uploaded to the server. That way, you don't need to download files before editing and upload them again after editing.
You probably miss some settings seen in standalone file transfer clients now, such as switching active and passive mode in FTP or timeout settings for your connections. Don't worry, you can find them in [[Special:myLanguage/System Settings|System Settings]] under <menuchoice>Network Settings</menuchoice>. The <menuchoice>Connection Preferences</menuchoice> section may be especially useful.
這份指南描述如何用 KDE 軟體匯集(Software Compilation)跟遠程服務器進行文件傳輸。從 FTP 服務器下載文件或是通過 SSH 保存文件。
KDE SC 並沒有包含你可能在其他平台看到的標準FTP 客戶端。有一些第三方的程序像是Kasablanca 或 KFTPgrabber,但它們還沒完全遷移到 KDE 開發平台4(KDE Platform 4)。好消息是你不需要那樣的程序來管理遠程服務器上的文件。 KDE 平台(KDE platform)擁有更強大的技術來處理這種情況。
基本文件傳輸
幾乎所有 KDE 程序都能用來連接到遠程服務器。你可以根據任務要求使用適合的程序。比如,如果你想要瀏覽器遠程服務器,最好的選擇就是 Dolphin 或 Konqueror。要編輯網頁,你可以無需單獨的FTP 服務器直接用Quanta。這裡的例子中,我們會用 Dolphin,通過FTP 傳輸文件。