Archive

Archive for April, 2013

Raspberry Pi as a NAS with Samba

April 13th, 2013 No comments

From terminal:

sudo apt-get install samba
sudo apt-get install samba-common-bin

sudo apt-get install ntfs-config
sudo apt-get install ntfs-3g

sudo smbpasswd -a pi

sudo rm /etc/samba/smb.conf remove old smb.conf

sudo nano /etc/samba/smb.conf recreate a brand new one:

paste in it:

——————————
#======================= Global Settings =======================

[global]
workgroup = WORKGROUP
server string = raspnas server
netbios name = raspnas
dns proxy = no

### Logging
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d

### Authentication
security = user
map to guest = pi

#======================= Shared Folders =======================

[media]
path = /media
guest ok = yes
guest account = ftp
browseable = yes
read only = no
create mask = 0777
directory mask = 0777
writeable = yes
admin users = everyone
——————————

sudo /etc/init.d/samba restart restart samba

Thanks to: http://www.youtube.com/watch?v=jr2Jz8km2BU

Categories: Raspberry Tags: