Mostrar mensagens com a etiqueta Samba. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta Samba. Mostrar todas as mensagens

terça-feira, fevereiro 19, 2013

Project 9 - Raspberry Pi - Pi vs Samba

Procedure:

Once its installed – I need another thing installing – so do this

 sudo apt-get install samba-common-bin

And then run this command

 sudo smbpasswd -a pi

You will be asked to enter the pi password twice – use raspberry as the password if you wish. I've chosen something else.

Finally use:

 sudo nano /etc/samba/smb.conf

#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = mypi server
netbios name = mypi

dns proxy = no

#### Debugging/Accounting ####
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
#======================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = yes
guest ok = yes
read only = no
create mask = 0775
directory mask = 0775
writeable = yes
guest account = pi
[public]
path = /
guest ok = yes
guest account = ftp
browseable = yes
read only = no
create mask = 0777
directory mask = 0777
writeable = yes
admin users = everyone

And copy and paste the following to replace the existing file contents (as good practice first copy the file. If something goes wrong, I can always revert to the original version...)

 
Finally issue the following command:

 sudo /etc/init.d/samba restart:


My Pi can now be accessed as "\\mypi" from any windows machine on the same LAN.

Let's verify that. Issue the command /mypi on any explorer windows. It starts by asking for the password that i defined above:

.

After issuing the password, I've now access to the folders that I gave access to in the script above:


Here it is. The folder with the latest Andreas Scholl CD, my favourite Contratenor...lol  


I can use all the information on the Pi as if I'm locally on a windows machine.

And that's that.

I can also access my Pi folders from my Galaxy Tab (Android OS). For that I use the APP AndSMB. It's going to be handy when I create my Pi-NAS...

Happy hacking. You don’t learn to hack – you hack to learn…

MAAntão