博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu共享文件夹挂载_如何在Ubuntu中挂载远程文件夹
阅读量:2511 次
发布时间:2019-05-11

本文共 3073 字,大约阅读时间需要 10 分钟。

ubuntu共享文件夹挂载

ubuntu共享文件夹挂载

Gone are the days of finding a good FTP client and reading man pages trying to find out how the heck fuse works – mounting remote folders in Ubuntu nowadays is a breeze.

飘是找到一个很好的FTP客户端,阅读手册页试图找出到底保险丝是如何工作的日子-在Ubuntu安装远程文件夹现在是轻而易举的事。

Note: This method was tested in Ubuntu 10.04, but should work similarly for Ubuntu 8.04 and later. For older versions of Ubuntu, please see .

注意:此方法已在Ubuntu 10.04中进行了测试,但在Ubuntu 8.04及更高版本中应类似地工作。 对于旧版本的Ubuntu,请参阅 。

screenshot_006

Regardless of whether the remote computer is using FTP, SSH, WebDAV or Samba to share files, the method is basically the same.

无论远程计算机是使用FTP,SSH,WebDAV还是Samba共享文件,方法都基本相同。

Start by clicking on Places > Connect to Server.

首先单击“位置”>“连接到服务器”。

sshot-1

Choose the type of service that you want to connect though, and then fill out the details for that server.

选择您想要连接的服务类型,然后填写该服务器的详细信息。

In our case, we’re going to connect to another Ubuntu machine through SSH, to ensure that data is transferred securely. We’ll use that machine’s IP address directly, but a host name like www.howtogeek.com works just as well.

在本例中,我们将通过SSH连接到另一台Ubuntu计算机,以确保安全地传输数据。 我们将直接使用该机器的IP地址,但是像www.howtogeek.com这样的主机名也可以使用。

Adding the server to your bookmarks is optional, but is nice if you’re going to access that server a lot, as it will show up in the Places menu and the bookmarks section of the file browser.

将服务器添加到书签是可选的,但是如果您打算经常访问该服务器,则很好,因为它将显示在文件浏览器的“位置”菜单和“书签”部分中。

screenshot_001

Since we’re using SSH, we get a message that this is the first time we’re connecting to this server. Choose to Log In Anyway.

由于我们使用的是SSH,因此我们收到一条消息,这是我们第一次连接到该服务器。 选择仍然登录。

screenshot_002

While you specified the user name earlier, the password for this server is entered now. You can choose to remember the password forever, which is convenient, or you can choose to forget it if you’re on a public machine.

在您先前指定用户名的同时,现在输入该服务器的密码。 您可以选择永久记住密码,这很方便,或者如果您使用的是公用计算机,则可以选择忘记密码。

screenshot_003

And that’s it! A link should appear on your desktop, and double-clicking it open the resource in the file browser.

就是这样! 链接应出现在您的桌​​面上,然后双击它在文件浏览器中打开资源。

screenshot_004

But what if you need to use that resource from the command line? No problem!

但是,如果您需要从命令行使用该资源怎么办? 没问题!

The link to the mounted remote resource is found in ~/.gvfs/ (where ~ is a shortcut for your home folder – that is, /home/<username>).

可以在〜/ .gvfs /中找到指向已安装的远程资源的链接(其中〜是您的主文件夹的快捷方式,即/ home / <用户名>)。

To get there, open a terminal window (Applications > Accessories > Terminal) and enter the following in the terminal window.

要到达那里,请打开一个终端窗口(应用程序>附件>终端),然后在终端窗口中输入以下内容。

cd ~/.gvfs/

cd〜/ .gvfs /

Entering ls will allow you to see the any mounted remote resources. You may find that tab completion will help you greatly here (type in the first few letters of the link, and then hit tab and the rest will be completed automatically).

输入ls将允许您查看任何已安装的远程资源。 您可能会发现制表符补全将在这里为您提供很大帮助(键入链接的前几个字母,然后单击制表符,其余的将自动完成)。

screenshot_005

If you chose to add a bookmark earlier, then your remote resource is always a couple of mouse-clicks away! Sure beats having to use FTP clients and command-line utilities.

如果您选择早些时候添加书签,那么您的远程资源总是只需单击几下鼠标! 必须使用FTP客户端和命令行实用程序。

翻译自:

ubuntu共享文件夹挂载

转载地址:http://cbuwd.baihongyu.com/

你可能感兴趣的文章
hdu3853之概率dp入门
查看>>
Unity3D游戏开发之在Unity3D中视频播放功能的实现
查看>>
OpenCV Machine Learning 之 正态贝叶斯分类器 (Normal Bayes Classifier)
查看>>
Luogu 2173 [ZJOI2012]网络 - LCT
查看>>
19Spring返回通知&异常通知&环绕通知
查看>>
棋盘问题
查看>>
spring-boot 速成(7) 集成dubbo
查看>>
pygame 笔记-3 角色动画及背景的使用
查看>>
[nginx]盗链和防盗链场景模拟实现
查看>>
手把手教你使用markdown
查看>>
Linux系统安装jdk——.tar.gz版(old)
查看>>
babylin使用思路
查看>>
laravel生命周期
查看>>
阿里面试100%问到,JVM性能调优篇
查看>>
Android用户界面
查看>>
Python 日期时间处理
查看>>
图像处理中的 通道, 深度
查看>>
scons编译mongodb(vs2008版本)遇到的问题总结
查看>>
02_运算符与分支
查看>>
SQL面试题集合
查看>>