To not miss my updates, remember to check the public account in the upper right corner and set it as a star, take down the stars and give them to me.
This article content comes from Darwin fan Zhang Zhixuan‘s practical operation sharing of using Raspberry Pi 4: How to build a NAS personal file server with Raspberry Pi 4? Let’s operate together with the video below.
What is NAS?
Why use Raspberry Pi 4 to make NAS?
Tutorial and Operation Steps
Step 1: Install Samba
sudo apt-get install samba
sudo fdisk -l
sudo mkdir /media/Mydisk
sudo mount /dev/sda1 /media/Mydisk
sudo nano /etc/samba/smb.conf
Add the following text:
[Mydisk] comment = Mydisk path = /media/Mydisk writeable = yes browseable = yes create mask = 0755 directory mask = 0755
This describes the hard drive’s name, visibility, writability, and other parameters. To understand more, you can refer to the Samba official documentation.
sudo samba restart
Restart the service.
sudo update-rc.d samba defaults
Open the “Run” dialog, enter: regedit, and find the following key [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters] AllowInsecureGuestAuth, (type DWORD32) and set it to “1”. If this value does not exist, just create one.
Bonus: Test the speed of the cloud disk
Darwin Project Sharing Series—— Focus on popular application technologies such as IoT, embedded systems, AI, FPGA, etc., open source sharing of schematics, code, and project solutions, making you a knowledge base at hand.
Highlights of the Project Sharing Series:
STM32 IoT Smart Home Project
Raspberry Pi + Compute Stick 2 for Real-time Face Recognition Project
Cloud Computing Platform Setup for Embedded Development Boards
STM32 Realizing the Simplest Air Mouse
Arduino Rubik’s Cube Robot
STM32 Version of “AI Soul Painter”
STM32 Electronic Photo Album Production
STM32 + DDS Homemade Signal Generator
Remote Control of Household Appliances with Raspberry Pi and Web Interface
STM32 “Cloud” Music Player
Raspberry Pi Remote Monitoring
Design of Neon Tube Clock Based on STM32
Homemade FPGA Minimum System Board (PCB can be directly manufactured)
We are Nimo, the founder of Darwin, only talking about technology and not flirting. The Darwin online education platform aims to serve professionals in the electronics industry, providing skill training videos covering popular topics in various subfields such as embedded systems, FPGA, artificial intelligence, etc. Tailored content for different groups, such as commonly used knowledge points, disassembly evaluations, electronic competitions/smart cars/postgraduate entrance examinations, etc. Welcome to follow us.
Official website: www.darwinlearns.com
Bilibili: Darwin
QQ Group: 1057755357
Leave a Comment
Your email address will not be published. Required fields are marked *