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

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

samba configuration tool

 

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

share

share

 

设置权限访问

permissions

permissions

 

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

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

 

配置完成。


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

share options

share options

 

并且激活共享:

activate share

activate share

 

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

working test

working test

 

working test

working test

 

working test

working test

 

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

Connect from windows

Connect from windows

 

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值