Installing samba

August 7th, 2022 Categories: Linux, Ultimate Raspbian

I’m going to explain how to install and configure a shared folder hosted in our Raspberry Pi to be accessed from our Windows PC by using Samba.

  1. Installing samba packet by typing the following command:
    sudo apt-get install samba samba-common-bin
  2. Creating a backup for the configuration file:
    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf2
  3. Editing smb.conf file:
    workgroup = <WorkGroup>
    wins support = yes
    read only = no

    Folders at home are shared by default, but if you want to add another folder, you’ll need to add the following lines:
    [home]
    comment = Home at Rasp3
    path =/home/pi
    browseable = yes
    writeable = yes
    only guest = no
    public = no

  4. Adding a password for the user pi:
    sudo smbpasswd -a pi
  5. Restarting the service to load the new configuration:
    sudo /etc/init.d/samba restart

Next step: Installing LAMP

Tags: , ,
No comments yet.

Leave a Comment

Solve this *