To get started, first check to see if Samba is installed (by default Samba usually is installed during installation).
Open a Terminal window
(Applications / Accessories / Terminal) and at the prompt enter the following command:
Example:
apt-cache search samba
If Samba is installed, you will see an output similar to the following:
samba – a LanManager-like file and printer server for Unix
samba-common – Samba common files used by both the server and the client
samba-dbg – Samba debugging symbols
samba-doc – Samba documentation
samba-doc-pdf – Samba documentation (PDF format)
smbclient – a LanManager-like simple client for Unix
smbfs – mount and umount commands for the smbfs (for kernels >= than 2.2.x)
If Samba is not installed, just enter the following command at the prompt in a Terminal window:
sudo apt-get install samba smbfs
You can also check to see if Samba is installed using Synaptic
.
Now that Samba
is installed, it's time to configure and make it accessible for Windows
Computers, with the step by step procedure in the following video. Don't
worry if you miss something, you can check out the steps listed below
after the video.
NOTE:
installation of Samba in video used Ubuntu 6.10 but still applies to later versions as well.
Steps to enable and configure Samba in Ubuntu:
Configure Samba
- Open System / Administration / Networking
and enter password. In General
tab, enter your hostname (this is your Computer name)
– Open System / Administration / Shared Folders
then click on General Properties
tab and enter a name for Domain/Workgroup
.
– Open Applications / Accessories / Terminal
and at prompt enter sudo gedit /etc/samba/smb.conf
– Uncomment the line browseable = yes
(don't forget to use find and search for browseable)
– Uncomment the line writable = no
and change "no
" to yes
– Save the file and close
– Go back to the Terminal window and enter the following command (remember you can use any name you want): sudo smbpasswd -a username
– When prompted, enter a password and confirm it.
– Reload the Samba services using the following command: sudo /etc/init.d/samba reload
Sharing Folders (on Ubuntu)
– Open Places / Home Folder
– Create a new folder, then right click on it and select Share Folder
– In Share Folder
dialog box, set Share through:
to Windows networks (SMB)
and give folder a name. (if you want the share to have write access, uncheck Read only
– From your Windows Computer, see if you can connect to the folder share.
If you want to connect to shared printers from Ubuntu to Windows, check out our step by step guide on connecting to Windows shared printers from Ubuntu
.
分享到:
相关推荐
samba windows linux ubuntu 共享
Share between windows and linux
帮助你快速实现ubuntu下用samba实现windows与linux文件共享,傻瓜化文档,千人验证。
利用samba可以实现ubuntu系统和windows系统间文件共享
1、samba服务器 Windows与Linux文件共享 (主局域网) 1.1samba服务器介绍 1.2samba服务的启动和进程 1.3Samba 配置 1.4samba服务器端常用命令 1.5Samba应用示例一:linux用户在window端访问宿主目录 1.6Samba应用...
linux 文件共享 samba 服务共享
一步一学Linux与Windows_共享文件Samba
文档描述了如何在虚拟机环境下ubuntu搭建samba环境的过程。方便初学者快速搭建,按照文档的介绍,你就可以在你的ubuntu中搭建你的samba共享环境,实现windows与linux资源共享
Linux与Windows 共享文件Samba
Ubuntu下配置samba实现Windows文件夹共享
Ubuntu Linux对samba文件共享服务进行配置.docx
利用Samba实现Linux和Windows文件共享 组建Samba文件服务器.pdf
Ubuntu下samba的使用 1. 安装samba服务器 2. 共享Ubuntu下的文件夹 (1) 手动配置方法 1) 打开/etc/samba/smb.conf。注:打开之前最好先备份一下 2) 在末尾添加如下配置项,假设需共享/home/flyfish/7800文件夹 ...
使用samba实现Ubuntu 11和win7文件共享 一步一步的操作
用samba服务器实现linux与windowsXP之间的文件共享
linux系统搭建 Samba 服务器,实现windows和linux下文件的共享服务,Samba是著名的开源软件之一,可以实现Windows,Linux/UNIX混合平台的环境中,计算机之间提供文件及打印机等资源的共享服务。使用两种协议,SMB...
Samba实现Windos与linux文件共享
samba 实现 ubunbu windows 共享
利用Samba实现Linux和Windows文件共享.pdf
用Samba实现Linux和Windows之间的文件共享.pdf