Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Courtesy of BnRtechnix
- facebook here https://www.facebook.com/bnrtechnix/
- youtube video here http://youtu.be/VB6Gjfl0Dck
- twitter here https://twitter.com/bnrtx
- Also be sure to enter our youtube logo contest for a chance at an awesome prize! see this video for more info!!
- https://www.youtube.com/watch?v=Be5HyxOjpSU
- Today I will go over the basics of setting up basic Samba server on the beagle
- Bone black
- While it is quite possible to add accounts and set up secure file storage with samba, this guide will only encompass the basics of samba by using a single public network location.
- The drive can only be accessed on your internal network meaning while you are connected to your network.
- First we are going to start by flashing the latest version of ubuntu to your beaglebone that I will not go over, for there are many guides on how to do that
- Lets open up putty and ssh into the admin account
- Now run a quick sudo apt-get update to be sure your repos are fresh
- Now, if youve ever used your hdd or other storage device on windows, its most likely in ntfs, while this may mean less than optimal write times (I average 4-mbps) its the most convenient and should be installed regardless if you think you need it or not
- sudo apt-get install ntfs-3g
- Now we are going to make the directory samba will use
- cd ~/
- > mkdir /mnt
- > mkdir /mnt/usbdrive
- Now we need to check where your drive is, the emmc is at /dev/sda, so we will ignore that
- Type
- ls /dev/sd*
- Now, you should see a sda* mine happens to be sda1 yours most likely will be as well, but if it isn't dont freak out, and be sure to change sda1 to whatever your happens to be
- Next we will mount your drive to your new folder, BE SURE TO KEEP THIS COMMAND HANDY, AS YOU WILL NEED TO RE-ENTER IT WHENEVER YOU REBOOT OR RECONNECT YOUR DRIVE
- sudo mount /dev/sda1 /mnt/usbdrive
- Now we are going to need install the samba service
- sudo apt-get install samba samba-common-bin
- Next we will need to edit the samba config file, feel free to use your favorite text editor or stick to nano, as that's what ill be using
- sudo nano /etc/samba/smb.conf
- Now we need go add this text at the very bottom
- under the line that looks like this
- [printers]
- comment = All Printers
- browseable = no
- path = /var/spool/samba
- printable = yes
- guest ok = no
- read only = yes
- create mask = 0700
- (this is the text to add in)
- [public]
- comment = Public Files
- path = /mnt/usbdrive
- browseable = yes
- writeable = yes
- guest ok = yes
- read only = no
- Now open up your network storage on your pc and voila, there's your drive!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement