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. - <font face="Arial">sudo apt-get install samba</font>
Copy the code
2. Check if install successfully.
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. - mkdir /firefly/sambashare
Copy the code
Modify the configuration file. - <font face="Arial">sudo vim /etc/samba/smb.conf</font>
Copy the code
Add the following code at the end: - [sambashare]
- comment = Samba on Ubuntu
- path = /home/firefly/firefly/sambashare
- browseable = yes
- read only = no
- guest ok = yes
Copy the code
4. Restart the server. - <font face="Arial">sudo service smbd restart</font>
Copy the code
5. Visit the server.
Check the IP of Station P1 on Windows. - <font face="Arial">ifconfig</font>
Copy the code
Press win+ r on Windows, enter "\\ + IP".
e.g., \\168.168.100.190
Succeed visiting.
|
All comments:0Replies
Sorry no reply yet...