In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install Samba and Windows sharing for raspberry pie. The editor thinks it is very practical, so I hope you can get something after reading this article.
Creating a Samba share is actually very simple (two steps):
Install Samba
Configure Samba
Sudo apt-get install samba samba-common-bin
After the installation is complete, the samba user and password are added to facilitate the direct use of pi, the default user of the raspberry pie.
~ sudo smbpasswd-a pi# password 12345678 smbpasswd-x pi / / delete user.
Back up the Samba configuration file
# Backup conf file.~ sudo cp-p / etc/samba/smb.conf / etc/samba/smb.conf_bak
Modify the default profile smb.conf (nano editor)
Sudo nano / etc/samba/smb.conf
Change the "workgroup = WORKGROUP" in the [global] field to the same workgroup as your computer (default should be WORKGROUP), then comment out all the configurations in the [homes] and [printers] fields below, and then add the following configuration.
# custom add begin. [CohoStudio _ NAS] comment=Raspberry Pi NAS.path=/home/pi/nasread only = no # anyone has access to modification # because it is a public folder, all users are given full permissions You can customize the default properties of create mask=0777 # newly created files directory mask=0777 # default properties of newly created folders guest ok = yes # the default access user name is guestbrowseable = yespublic = ys [RaspberryPi _ HOME] comment=Raspberry Pi Home.path=/home/piwriteable=yesbrowsable=yescreate mask=0777directory mask=0777valid users=pipublic=no# custom add end.
Start after the configuration is complete
Sudo / etc/init.d/samba restart# ubuntu command: sudo / etc/init.d/smbd restartpi@raspberrypi ~ $sudo / etc/init.d/samba start [ok] Starting Samba daemons: nmbd smbd.
Well done. The Windows computer is connected to the same local area network as Raspberry Pi and you can see the samba shared folder of the raspberry pie.
Note:
To set up directly with the smbpasswd command, you need to first add the system user and then add the Samba user with the smbpasswd-a username
Smbpasswd-e user name # active user
Mount the USB mobile hard drive (mount the mobile hard drive under the / home/pi/nas/ directory):
Sudo mount / dev/sda1 / home/pi/nas/
Sometimes when uninstalling the USB removable hard drive, it will prompt the device to be busy (Device is busy). You only need to add the-l parameter:
This is the end of the sudo umount-l / home/pi/nas/ article on "how to install Samba and Windows sharing for raspberry pie". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.