Because the data partition was formatted as NTFS in the previous post, when you plug it in to your Windows or Mac computer, you’ll just see a drive called “Data”, or whatever you named it. When it comes to copying the files in, you can save some time, and skip the network bottleneck by moving the external hard drive to the computer that currently has the data. You don’t have to use the same structure as me, of course, but this is the one I’ll be using in future posts, so you’ll need to adjust accordingly if you do something else. For this server, I’ve created the following folder structure. Music, Pictures, Videos, anything you want. Make some foldersĬreate some file folders in the Data share to hold your stuff, and copy it in. You can certainly do that, of course, but the intricacies of Linux filesystem security are beyond the scope of this series. I’m more interested in having a place to put stuff than in controlling access to it. I’m sorry, it’s nothing personal, but we’re talking about a home network, here. I am not a Linux security expert, and somewhere someone is screaming at me for doing it all wrong. Anyone on the local network can add, edit, or delete the files it contains. You should now be able to view the share from other computers on your network. Set “Writeable” and “Guest Access” to “Yes”.Ĭlick “Save” to save your settings and return to the “Edit File Share” form.Ĭlick the “Return to share list” link at the bottom of the page to return to the main Samba page.Ĭlick on the “Restart Samba Servers” button near the bottom of the page. From here, click the “Security and Access Control” icon. Click on it to go to the “Edit File Share” page. Your new share should now appear in the list. Your screen should look like this:Ĭlick “Create” to create the share, and you will be taken back to the main Samba page. I called mine “Data” to avoid confusion, and type “/mnt/data” (or whatever you called your mount point) in the “Directory to share” textbox. Select the “Be a WINS server” radio button on the second row.Ĭlick “Save” to save the settings and return to the main Samba page.Ĭlick on the “Create a new file share” link near the top of the page. Change “Workgroup” to match your home network if it is different (it’s probably just “WORKGROUP”, though, unless you specifically changed it). When it is finished, the “Samba Windows File Sharing” module should have moved to the “Servers” section at the top.Ĭlick on the “Samba Windows File Sharing” module, and then on the “Windows Networking” icon under “Global Configuration”. This can take a little while, so be patient. Click “Refresh Modules” near the bottom of Webmin’s left-hand menu, and Webmin will go through its inventory, and figure out which modules can actually be used. Since you’ve just installed Samba, it would be nice if this module weren’t hidden like this. Webmin has a Samba administration module, which should currently be listed under the “Un-used Modules” section because Samba wasn’t installed before. Get to a browser on your primary computer (or the Pi, if you like waiting), and navigate to the Raspberry Pi’s IP address, port 10000 (e.g. Just for fun, we’ll use Webmin to do this part. Install Samba as follows: sudo apt-get install samba samba-common-bin Set up shares The “Samba” package creates network file shares in a way that Mac and Windows computers on the network will understand. Mine is the second hard drive partition, mounted at /mnt/data 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. Updates: Everything in this post works just fine under the Jessie release of Raspbian, so there are no changes to report at this time. If you have a Pluralsight subscription, please consider watching it. Self-promotion: I’ve recorded this series as a screencast for Pluralsight: This article is kept for historical reference, but should be considered out of date. Please refer to the new index for updated articles and ordering. A new version of this series has been published.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |