Sunday 15 February 2015

samba share

For file linux file system applying on windows, it is always the best to use samba share.
The confiuration file is given as follows:

1.  uncommet the follow line in /etc/samba/smb.conf

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each 
# user's home director as \\server\username
[homes]
   comment = Home Directories
   browseable = no

2. creater new users by

#smbpasswd -a chenming

3. restart samba process by:

#systemctl restart smbd
#systemctl restart nmbd
4. test the connections by: 
#smbclient -L localhost

once there is an error
ae429-1105 chenming # smbclient -L 10.33.20.12X
Enter root's password: 
Connection to 10.33.20.120 failed (Error NT_STATUS_CONNECTION_REFUSED)
the problem is solved by restart samba 



5. now it is time to mouprint(gcf,'-dpng',sprintf('-r%d',r), 'bar.png');nt the samba share by right click My computer -> map networkdrive->\\10.33.20.120\chenming and then password


No comments:

Post a Comment