mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
scusjs翻译完毕
This commit is contained in:
parent
086d0f27b6
commit
d37386bb43
@ -1,55 +0,0 @@
|
||||
[scusjs占坑]Daily Ubuntu Tips – Easiest Way To Access Your Files From Windows
|
||||
================================================================================
|
||||
Whether you’re a new user or someone with deep knowledge working with Ubuntu and Windows, one thing that’s true is using Samba is the best way to share / access Ubuntu files from Windows. It’s also easy to setup and manage using many other third-party tools.
|
||||
|
||||
For new users or newbies who want to learn how to quickly access Ubuntu files from Windows, this brief post is going to show you how. Our goal here is to help new users. We manage to write our tutorials so newbies can read and understand them without too much trouble.
|
||||
|
||||
We’re not going to go into too much details here about what Samba is or how to configure Samba to join a domain and all of that. What we’re going to do is just show you how to install and setup Samba in Ubuntu to access your files from Windows.
|
||||
|
||||
If you want to learn all about Samba, I suggest you search Google or Wikipedia. To get started, open your terminal / console in Ubuntu and run the commands below to install Samba and other Samba related tools.
|
||||
|
||||
sudo apt-get install samba cifs-utils
|
||||
|
||||
The above commands will install Samba and other related tools. In previous versions of Ubuntu, you may have to replace cifs-utils with **smbfs**. But if the top commands work for you, then you’re good.
|
||||
|
||||
Next, using gedit, open the main Samba configuration file and make the following changes. To do that, run the commands below to open Samba config file.
|
||||
|
||||
sudo gedit /etc/samba/smb.conf
|
||||
|
||||
When the file opens, look for the line shown below and uncomment (remove the ; before the text) it. It should be like this:
|
||||
|
||||
security = user
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/10/sambausersubuntu.png)
|
||||
|
||||
Next, scroll down in the file and also uncomment the lines as shown below.
|
||||
|
||||
[homes]
|
||||
|
||||
Doing this will allow users to access content in their home directories or folders. For instance, if your uncomment the [homes], user should be able to access their home content by typing the server name followed by their account name.
|
||||
|
||||
\\192.168.0.2\username
|
||||
|
||||
Next, run the commands below to add your account to Samba Database. Doing this allows you to use Samba to access shares.
|
||||
|
||||
sudo smbpasswd -a usernmame
|
||||
|
||||
Replace username with your account name.
|
||||
|
||||
When prompted to create a password, create and confirm it. Finally, restart Samba or restart your computer.
|
||||
|
||||
To access your files from Windows, go **Start –> Run** and type the line below. Or open Explorer and type it as in the image below.
|
||||
|
||||
\\ubuntu_machine_IP\username
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/10/sambausersubuntu1.png)
|
||||
|
||||
Enjoy!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.liberiangeek.net/2013/10/daily-ubuntu-tips-easiest-way-access-files-windows/
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
@ -0,0 +1,55 @@
|
||||
每日Ubuntu技巧 - 让Windows访问你文件的最简单的方法
|
||||
================================================================================
|
||||
不管你是一个小白用户或者使用Ubuntu和Windows的大牛,使用Samba来让Windows访问Ubuntu文件是最好的方式。通过许多第三方工具可以很轻松的安装和管理。
|
||||
|
||||
对于想要了解怎么从Windows快速访问Ubuntu文件的新用户或者新手来说,这篇短文将会告诉你该怎么做。我们的目标是要帮助新用户。我们经历将这篇教程写得通俗易懂,以便让小白用户看懂而不会遇到太大的困难。
|
||||
|
||||
在这里我们不会太注重了解Samba是什么或者怎么将它配置加入域这类细节。我们要做的就是告诉你怎么在Ubuntu中安装和设置Samba,让Windows可以访问Ubuntu的文件。
|
||||
|
||||
如果你想要更多的了解Samba,我建议你Google一下,或者查询下Wikipedia。首先在Ubuntu下打开你的终端,然后运行如下命令安装Samba和其他相关的工具。
|
||||
|
||||
sudo apt-get install samba cifs-utils
|
||||
|
||||
上面这条命令将会安装Samba和其他相关的工具。在旧版的Ubuntu中,你可能需要使用**smbfs**替代cifs-utils。如果上面命令能够使用就更好了。
|
||||
|
||||
然后,使用gedit(或者其他工具)打开Samba主配置文件,然后进行如下更改。可以使用如下命令打开主配置文件:
|
||||
|
||||
sudo gedit /etc/samba/smb.conf
|
||||
|
||||
文件打开后,查找如下行并取消其注释(删掉行首的“;”)。它应该是这样的:
|
||||
|
||||
security = user
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/10/sambausersubuntu.png)
|
||||
|
||||
然后,向下滚动文件,找到下面这行,同时取消行首注释。
|
||||
|
||||
[homes]
|
||||
|
||||
这将会允许用户访问访问home目录中的文件夹及文件。比如说,如果你注释掉了[homes],用户可以通过键入服务器名加用户名的方式访问home目录。
|
||||
|
||||
\\192.168.0.2\username
|
||||
|
||||
然后,运行如下命令向Samba数据库添加你的账户信息。这样可以允许你使用Samba访问共享文件。
|
||||
|
||||
sudo smbpasswd -a usernmame
|
||||
|
||||
用你自己的用户名替代username。
|
||||
|
||||
当提示创建密码时,创建并确认即可。最后,重启Samba或者重启计算机。
|
||||
|
||||
通过Windows访问文件时,点击**开始 –> 运行**然后输入如下内容。或者打开资源管理器输入如下内容,如图。
|
||||
|
||||
\\ubuntu_machine_IP\username
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/10/sambausersubuntu1.png)
|
||||
|
||||
Enjoy!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
来自: http://www.liberiangeek.net/2013/10/daily-ubuntu-tips-easiest-way-access-files-windows/
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
译者:[SCUSJS](https://github.com/scusjs) 校对:[校对者ID](https://github.com/校对者ID)
|
Loading…
Reference in New Issue
Block a user