怎样在 Ubuntu 13.04 Raring Ringtail , 12.10, 12.04 中安装和设置 Samba 实现网上邻居共享... |
您所在的位置:网站首页 › ubuntu怎么安装samba › 怎样在 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
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
working test
working test
working test
12 从windows 连接共享 (XP/Vista/7)
Connect from windows
Connect from windows
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”.
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. |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |