文件传输

From KDE UserBase Wiki
Revision as of 12:13, 7 October 2010 by Qiii2006 (talk | contribs) (Created page with "==其他协议==")

介绍

这份指南描述如何用 KDE 软件汇集(Software Compilation)跟远程服务器进行文件传输。从 FTP 服务器下载文件或是通过 SSH 保存文件。

KDE SC 并没有包含你可能在其他平台看到的标准 FTP 客户端。有一些第三方的程序像是 KasablancaKFTPgrabber,但它们还没完全迁移到 KDE 开发平台 4(KDE Platform 4)。好消息是你不需要那样的程序来管理远程服务器上的文件。KDE 平台(KDE platform)拥有更强大的技术来处理这种情况。

基本文件传输

几乎所有 KDE 程序都能用来连接到远程服务器。你可以根据任务要求使用适合的程序。比如,如果你想要浏览器远程服务器,最好的选择就是 DolphinKonqueror。要编辑网页,你可以无需单独的 FTP 服务器直接用 Quanta。这里的例子中,我们会用 Dolphin,通过 FTP 传输文件。

连接到 FTP 服务器

要连接到 FTP 服务器,只需要打开 Dolphin ,点击地址栏中空出来的地方。输入服务器地址进地址栏。不要忘了开头的 ftp:// :



如果你的服务器需要验证,会弹出对话框提示你进行身份验证。输入你的用户名和密码。如果你想保存登录信息,勾选相关的复选框。Dolphin 会安全的存储你的密码到 KDE 电子钱包。你也可以在地址栏中插入用户名和密码来更快的访问,这样的格式:ftp://username:[email protected]; 但我们不推荐这样,有安全风险。一是密码直接能在地址栏中看到,二是这些信息是存储在纯文本中的,可以很容易的被访问你的主文件夹(home)的其他人读取。假如你用了密码来保护电子钱包,存储登录信息的密码在 KWallet 会安全很多。

其他协议

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...



...and then on the ftp button at the beginning.



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.

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.

Imitate a standalone FTP client using Dolphin

If you want a more standalone-ftp-client like experience you can use Dolphin's split view:



Add a remote folder to your places bar

You can drag and drop a remote folder directly to your places and bookmark it:



Directly access remote files in other KDE applications

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 Kate by inserting the address in the file open dialog:

You can now edit the file in Kate. When you click Save 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.

Changing settings

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 System Settings under Network Settings. The Connection Preferences section may be especially useful.