怎样在 Ubuntu 13.04 Raring Ringtail , 12.10,

系统 1584 0

Samba 是一款功能强大的共享工具,可以实现与windows的共享,就是我们经常在windows计算机之间使用的网上邻居功能 ,可以共享文件和打印机等。今天要介绍的是在 Ubuntu 13.04 Raring Ringtail , 12.10, 12.04 中安装和设置,当然也可以在以前的版本上使用。

 

Ubuntu 上安装Samba:

 

1 安装Samba文件

我们需要做的第一件事是安装Samba,你可以在 Ubuntu 软件中心搜索软件,然后安装。如果你想通过终端安装,可复制这个命令:

      sudo apt-get install samba samba-common
    

 

2 为配置工具安装一些依赖包(不要忘记安装python-glade2)

      sudo apt-get install python-glade2
    

 

3 安装 Samba 服务器配置工具 :

安装 samba 系统配置图形界面工具

      sudo apt-get install system-config-samba
    

 

4 添加一个 Linux/Unix user:

      adduser pirat9
    

 

5 为用户 pirat9 设置密码:

      passwd pirat9
    

 

6 现在打开 samba 配置工具。

samba configuration tool

 

7 添加共享文件夹并设置权限访问。

share

 

设置权限访问

permissions

 

8 连接到共享前,你必须创建samba用户:

      sudo smbpasswd -a pirat9
New SMB password
retype New SMB Password
    

 

配置完成。


提示:你可以选择你要共享的文件夹,目录上右键打开菜单选择“share options(共享配置)”

share options

 

并且激活共享:

activate share

 

9 现在来测试一下从另外一台Linux计算机看看samba共享是否已经工作,我的计算机时LinuxMint12 与 Ubuntu 12.04 实现共享,莲台计算机都安装了samba,从菜单中打开连接到服务器并输入你Ubuntu计算机的详细信息:

working test

 

working test

 

working test

 

12 从windows 连接共享 (XP/Vista/7)

Connect from windows

 

Connect from windows

 

本文采用 CC协议 发布,转载请注明: 转载自 IMCN

 

本文链接地址: 怎样在 Ubuntu 12.04 中安装和设置 Samba 实现网上邻居共享

 

 

Configuring Samba

To get Samba to work the way we want it to work, we have to make some changes to its configuration file.

In the terminal,

          gksu gedit /etc/samba/smb.conf
        
 

This will open the config file in Gedit.

Scroll down the page until you see the line:

          workgroup = WORKGROUP
        
 

This is the identifier of your PC. You can keep it as the default, but it is best to change it to something more meaningful, like “HOME-DESKTOP”.

samba-workgroup

 

Next, scroll down further till you reach the “Authentication” section. You should see the line:

          #   security = user
        
 

Remove the “#” at the front of the line.

samba-security

 

来源: http://www.maketecheasier.com/install-and-configure-samba-in-ubuntu-for-file-sharing/2012/06/12

怎样在 Ubuntu 13.04 Raring Ringtail , 12.10, 12.04 中安装和设置 Samba 实现网上邻居共享


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论