从Linux连接到Windows共享文件夹的3种简便方法

Connecting to file servers is something most people do on a daily basis even without thinking about it. In Linux, it may not be intuitive how to quickly connect to a samba or ftp server without a separate program. Here are a few different ways to connect to a remote file server without needing to touch a terminal.

大多数人每天都在连接文件服务器,即使不考虑它。 在Linux中,如果没有单独的程序,如何快速连接到samba或ftp服务器可能并不直观。 这是几种无需触摸终端即可连接到远程文件服务器的方法。

使用键盘快捷键 (Using Keyboard Shortcut)

You can connect to a server by opening the run application window with the Alt+F2 keyboard shortcut. You will just need to specify the server type by adding the protocol at the beginning of the command. For example smb:// will connect to a samba share; other supported protocols are ssh, ftp, sftp, http, and https.

您可以使用Alt + F2键盘快捷键打开运行应用程序窗口来连接到服务器。 您只需要通过在命令开头添加协议来指定服务器类型。 例如smb://将连接到samba共享; 其他受支持的协议是ssh,ftp,sftp,http和https。

Note: In the example below my server name is playground and the shared folder is called music.

注意:在下面的示例中,我的服务器名称是Playground,共享文件夹称为Music。

If your server requires a password to connect, fill out the next window that pops up and select how long you would like it to store your password.

如果您的服务器需要密码才能连接,请填写弹出的下一个窗口,然后选择您希望密码存储多长时间。

A Nautilus window will automatically open with the server you just connected to, and you should have a shortcut under places on the left side and a shortcut on your desktop.

Nautilus窗口将随您刚刚连接的服务器一起自动打开,并且您在左侧的位置应该有一个快捷方式,在桌面上应该有一个快捷方式。

从GNOME菜单 (From GNOME Menu)

If you are using Ubuntu, and many other GNOME based distributions, you will have a places menu on your top menu bar. Open that menu and click connect to server.

如果您正在使用Ubuntu和许多其他基于GNOME的发行版,则顶部菜单栏上将有一个场所菜单。 打开该菜单,然后单击“连接到服务器”。

A new window will open up with a drop down so you can select what type of server you are connecting to.

一个新窗口将打开,并带有一个下拉菜单,您可以选择要连接的服务器类型。

For a samba/cifs server select Windows share and fill out the required information.

对于samba / cifs服务器,请选择Windows共享并填写所需的信息。

Note: Unlike the run application window, you do not need the slashes to connect here.

注意:与“运行应用程序”窗口不同,此处不需要使用斜杠进行连接。

Alternatively, you can also get to the connect to server window from Nautilus’ file menu.

或者,您也可以从Nautilus的文件菜单进入“连接到服务器”窗口。

捷径 (With a Shortcut)

If you would like instant access to the connect to server window from your GNOME menu bar right click on the menu you would like to add the shortcut to and click add to panel.

如果您想从GNOME菜单栏中立即访问“连接到服务器”窗口,请右键单击菜单,然后将快捷方式添加到该菜单,然后单击“添加到”面板。

In the window that pops up, search for “connect” and connect to server should be one of the results. Highlight the shortcut and click add at the bottom of the window.

在弹出的窗口中,搜索“连接”并连接到服务器应该是结果之一。 突出显示快捷方式,然后单击窗口底部的添加。

Now you will have an additional shortcut on your GNOME bar for easy access.

现在,您将在GNOME栏上拥有一个附加的快捷方式,以便于访问。

翻译自: https://www.howtogeek.com/howto/29167/3-easy-ways-to-connect-to-windows-shared-folders-from-linux/