[vc_row][vc_column width=”1/1″][vc_column_text]
Samba is a free software to achieved SMB protocol which under Linux and UNIX system. It’s constituted by the server and client program. SMB(Server Messages Block) is a communications protocol for sharing files and printers on the LAN, It is provide shared services, such as file and printer resources. The SMB protocol is a client / server-based protocol, the client can access the shared file system on the server, printers and other resources by the agreement. By setting “NetBIOS over TCP / IP” allows Samba not only share resources with local network hosts, but also share resources with the computer of the world.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Install Samba server” tab_id=”1393769008-1-9″][vc_column_text]
$sudo apt-get install samba-common samba
[/vc_column_text][/vc_tab][vc_tab title=”Configure samba server” tab_id=”1393769008-2-12″][vc_column_text]Input the command to open the file smb.conf
$sudo vim /etc/samba/smb.conf
Add the below command at the end of the file, save and exit:
———————————————————–
[share] comment=Linux Share path=/home/ubuntu/share public=yes writeable=yes browseable=yes guest ok=yes
———————————————————–
[share] :Share folder’s name
Comment=Linux Share: Help for the sharing of resources, comment section
path=/home/ubuntu/share: Share folder’s path
public=yes: Allows the user to visit this resource without account and password
Writeable=yes: Users can write files inside a shared folder
Browseable=yes: To setting whether Users can see shared resources or not
Guest ok=yes: Can be accessed anonymously
[/vc_column_text][/vc_tab][vc_tab title=”Set up a shared folder” tab_id=”1393770341092-2-4″][vc_column_text]在 /home/ubuntu/ 下面新建设置的共享文件夹:share,并在里面任意放一个文件:
Create a shared folder named share under /home/ubuntu/, and input an file in it
$mkdir share $cd share $vim pcDuino_samba_tes
[/vc_column_text][/vc_tab][vc_tab title=”Start and stop samba server” tab_id=”1393771779318-3-0″][vc_column_text]Start Samba server
$sudo /etc/init.d/smbd start
Stop Samba server
$sudo /etc/init.d/smbd stop
Restart Smaba server
$sudo /etc/init.d/smbd restart
Reload Smaba server
$sudo /etc/init.d/smbd reload
[/vc_column_text][/vc_tab][vc_tab title=”How to visit shared folder on PC” tab_id=”1393771989603-4-3″][vc_column_text]Checking pcDuino IP
$ifconfig
IP address is 192.168.2.17
Open the PC, clink Start- input pcDuino ip and Enther then you will see the shared folder.
Leave a Reply
You must be logged in to post a comment.