Because the SD card capacity of the board is only 16G, some data are too large and need to be copied or shared.
If configuring a Samba server, we can transfer files in the same LAN without using U disk.

So how to achieve?

1. Install Samba.
  1. <font face="Arial">sudo apt-get install samba</font>
Copy the code

samba1.png

2. Check if install successfully.
  1. whereis samba
Copy the code

If succeed installing, it will show the installation location:
samba: /usr/sbin/samba /usr/lib/aarch64-linux-gnu/samba /etc/samba /usr/share/samba

3. Configure Samba.

First, create a shared folder.
  1. mkdir /firefly/sambashare
Copy the code

Modify the configuration file.
  1. <font face="Arial">sudo vim /etc/samba/smb.conf</font>
Copy the code

Add the following code at the end:
  1. [sambashare]
  2.        comment = Samba on Ubuntu
  3.        path = /home/firefly/firefly/sambashare
  4.        browseable = yes
  5.        read only = no
  6.        guest ok = yes
Copy the code

4. Restart the server.
  1. <font face="Arial">sudo service smbd restart</font>
Copy the code


5. Visit the server.

Check the IP of Station P1 on Windows.
  1. <font face="Arial">ifconfig</font>
Copy the code


samba2.png

Press win+ r on Windows, enter "\\ + IP".

e.g.,   \\168.168.100.190

Succeed visiting.
samba3.png