(22 intermediate revisions by the same user not shown)
Line 1:
Line 1:
<languages />
<languages />
==Introduction==
==介绍==
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] 或 [http://userbase.kde.org/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.
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...
FTP 只是 KDE 平台众多支持的协议之一。还有很多很多可以探索。要查看所有支持的协议列表,点击地址栏右侧的勾号切换到浏览模式...
Line 28:
Line 28:
...and then on the ftp button at the beginning.
...然后是开头的 ftp 按钮。
Line 34:
Line 34:
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.
附注:由于 KDE bug #55804,用 fish 协议移动/复制本地的文件到远程主机会有错误的时间戳。解决方法是换用 SFTP 来传输文件。
==Imitate a standalone FTP client using Dolphin==
==用 Dolphin 模仿独立的 FTP客户端==
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.