Raspberry Pi Jessie Setup


General configuration information about Raspberry Pi network interfaces.

sudo vi /etc/hostname
sudo /etc/init.d/hostname.sh
sudo reboot

sudo  adduser paulbeda
sudo adduser paulbeda sudo

sudo vi /etc/dhcpcd.conf

sudo vi /etc/wpa_supplicant/wpa_supplicant.conf



interface eth0

static ip_address=
static routers=
static domain_name_servers=

interface wlan0

static ip_address=
static routers=
static domain_name_servers=

Use sudo raspi-config to enable camera, SSH, vnc, etc.

sudo apt-get install samba samba-common-bin -y
sudo chown -R pi:pi /path/to/share
sudo cp /etc/samba/smb.conf /etc/samba/smb.bak
sudo vi /etc/samba/smb.conf
Leave workgroup as WORKGROUP

Uncomment WINS support, change this line, it should enable the NETBIOS name RASPBERRYPI on your network

# wins support = no

wins support = yes
[TV] #This is the name of the share it will show up as when you browse

comment = TV Folder
path = /mnt/usbstorage/TV
create mask = 0775
directory mask = 0775
read only = no
browseable = yes
public = yes
force user = pi
#force user = root
only guest = no
Assuming the hostname of your pi is RaspberryPI, the path of this share is now \\RASPBERRYPI\TV or \\RASPBERRYPI.IP\TV

Ctrl+X, Y and Enter to save and exit nano

Set a samba password for pi

sudo smbpasswd -a pi
Restart the samba server¨

sudo service samba restart
If you are on Jessie you may see this error, it is because of systemd. With init.d on previous debian releases samba restarted both smbd and nmbd, now it doesn’t.


   Loaded: masked (/dev/null)

   Active: inactive (dead)
You need to restart these services separately instead

sudo service smbd restart
sudo service nmbd restart
Now try to access the samba share, if all is well, repeat the process by editing smb.conf again and adding additional shares.

NB: You may need to restart your device as well as any Mac or Windows machines you want to access the samba shares.