Sharing files from windows - Ask Ubuntu


i use windows phone. want share files ubuntu laptop. how it? tried connect using bluetooth bluetooth not getting connected. pretty time consuming share big files on bluetooth.

you can take 2 diferents ways.. use internet transfer files or use samba.

samba emulator of window's network.

the first step install samba package. terminal prompt enter:

sudo apt-get install samba 

the main samba configuration file located in /etc/samba/smb.conf. default configuration file has significant amount of comments in order document various configuration directives.

first, edit following key/value pairs in [global] section of /etc/samba/smb.conf:

 workgroup = example    ...    security = user 

the security parameter farther down in [global] section, , commented default. also, change example better match environment.

create new section @ bottom of file, or uncomment 1 of examples, directory shared:

[share]     comment = ubuntu file server share     path = /srv/samba/share     browsable = yes     guest ok = yes     read = no     create mask = 0755 

comment: short description of share. adjust fit needs.

path: path directory share.

this example uses /srv/samba/sharename because, according filesystem hierarchy standard (fhs), /srv site-specific data should served. technically samba shares can placed anywhere on filesystem long permissions correct, adhering standards recommended.

browsable: enables windows clients browse shared directory using windows explorer.

guest ok: allows clients connect share without supplying password.

read only: determines if share read or if write privileges granted. write privileges allowed when value no, seen in example. if value yes, access share read only.

create mask: determines permissions new files have when created.

now samba configured, directory needs created , permissions changed. terminal enter:

sudo mkdir -p /srv/samba/share  sudo chown nobody:nogroup /srv/samba/share/ 

the -p switch tells mkdir create entire directory tree if doesn't exist.

finally, restart samba services enable new configuration:

sudo restart smbd sudo restart nmbd 

original source


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User