![]() You’ll see that the new folder belongs to the “root” user and group even though we created it without using “sudo”. Take a look at the permissions for the newly-created folder ls -l /mnt/data I’ll call mine “public”, and put it in the root of the hard drive I mounted in a previous post. Create the folder to be sharedįirst, create a folder to be shared. The permissions will be wide open on this share. What I’ll be setting up is a simple public share to be used by the family members in my house. You can get into all kinds of detail about who can and can’t write what and where, but I’ll leave that up to you to explore on your own. To create a share, you first create a folder that you want to share, tell Samba to share it, and set up the permissions correctly so that users connecting to the share through Samba will be able to write to it. As a result, this version of the series will set up the shares manually, and the Webmin article has been moved to the end as an optional step. In all the time I’ve been running my Raspberry Pi Home Server, I’ve found that this is the only thing I ever really used Webmin for, though. In the previous version of this article, I used Webmin to do the heavy lifting of setting up the shares. That’s all there is to the installation, but there’s a bit of configuration before there will be anything to see over the network. ![]() Install Samba as follows: sudo apt-get install samba samba-common-bin The “Samba” package creates network file shares in a way that Mac, Windows, and other Linux computers on the network will understand. Mine is the second hard drive partition, mounted at /mnt/data A mounted, USB hard drive with space for the stuff you want to share.If you decided to format your data partition using the ext4 filesystem, then you’ll need to keep that in mind as we proceed. In the previous post we added a hard drive with two partitions, one ext4 partition for the operating system, and one NTFS partition to hold data. ![]() Its first task will be to share files from the hard drive. Now that the Raspberry Pi has the space to hold your stuff, it’s about time it started doing something useful around the house. Reading the instructions is one thing, but watching it done demystifies the whole process. If you have a Pluralsight subscription, please consider watching it. ![]() Self-Promotion: I have recorded this series as a screencast for Pluralsight: Please refer to the series Introduction for a list of all the different posts in the series. If you’ve started from something other than a non-NOOBS Raspbian image, then you’ll probably need to adjust for that. If you are just trying to add one thing to an existing system that was not built following this series, then I cannot promise that these instructions will work for you, although they probably will. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |