How to use Samba server on Ubuntu 16.04

For data transfer between Windows and Ubuntu, we are accustomed to using FTP tools, but some students still asked about the construction and use of the samba server. This is the reason for this article.

Ubuntu version: Ubuntu16.04 for ARM bare metal first phase enhanced version

  1. Introduction
    Samba is a standard suite for file transfer between Windows and Linux and unix. Official website: https://www.samba.org/

  2. Install samba
    [email protected]:~$ sudo apt-get install samba -y

  3. Modify the configuration file
    I found that the vim installed in the built-in Ubuntu is a simplified version, and many buttons are abnormal, so install the full version of vim first:
    [email protected]:~$ sudo apt-get install vim -y

Then use vi to modify the smb configuration file
[email protected]:~$ sudo vi /etc/samba/smb.conf

Append the following at the end of the file:

[ samba]
path = /work
available = yes
valid users = book
writeable = yes

Explanation:
[ samba] Comment content, you can write whatever you want
path is used to specify the directory to be shared
available Is the directory valid
valid users specify who can access, if not specified, everyone can access
whether writeable

  1. Add the samba user and enter the password
    [email protected]:~$ sudo smbpasswd -a book

  2. Restart the samba server
    [email protected]:~$ sudo service smbd restart

  3. Access the /work directory from Windows
    Win + R call out the run box, enter \ip to access (my ubuntu IP is 10.0.0.220)

Then enter the user name: book and password (the password is set in step 4)

After the correct input, you can see the files in the /work directory, and then Windows and Ubuntu can transfer the files as you like

  1. Map this directory for direct use next time.

Then continue to the next step, enter the address

Finally, this network folder will be generated, double-click to open it:

( Finish)

Recommended Posts

How to use Samba server on Ubuntu 16.04
How to install Bacula Server on Ubuntu 14.04
How to install Zabbix on Ubuntu 16.04 Server
How to use Prometheus to monitor your Ubuntu 14.04 server
How to install Squid proxy server on Ubuntu 18.04
How to set up Shiny Server on Ubuntu 14.04
How to set static IP on Ubuntu 18.04 Server
How to set static IP on Ubuntu 18.04 Server
How to use Nginx's map module on Ubuntu 16.04
How to install and use Docker on Ubuntu 20.04
How to quickly deploy docker on ubuntu server
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
How to use Docker data volumes on Ubuntu 14.04
How to install and use Composer on Ubuntu 20.04
How to install and use BaasBox on Ubuntu 14.04
How to use Jenkins to build automatically on Ubuntu
How to install and use PostgreSQL on Ubuntu 16.04
How to run the parsing server on Ubuntu 14.04
How to install and use Docker on Ubuntu 16.04
How to use LVM to manage storage devices on Ubuntu 18.04
How to create and use MongoDB backups on Ubuntu 14.04
How to install and use MySQL Workbench on Ubuntu 18.04
How to open https on nginx server under Ubuntu
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to use hanlp in ubuntu
How to install VirtualBox on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
How to install Vagrant on Ubuntu 20.04
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
How to install MemSQL on Ubuntu 14.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to upgrade to PHP 7 on Ubuntu 14.04
How to install Skype on Ubuntu 20.04
How to install Jenkins on Ubuntu 20.04
How to install Python 3.8 on Ubuntu 18.04
How to install KVM on Ubuntu 18.04
How to install KVM on Ubuntu 20.04
How to install opencv3.0.0 on ubuntu14.04
How to install Anaconda on Ubuntu 20.04
How to install Prometheus on Ubuntu 16.04
How to install Jenkins on Ubuntu 18.04
How to deploy Django on Ubuntu 14.04
How to install Apache on Ubuntu 20.04
How to install R on Ubuntu 20.04
How to install Moodle on Ubuntu 16.04
How to install Solr 5.2.1 on Ubuntu 14.04
How to install Teamviewer on Ubuntu 16.04