Additional software installation - STwilight/Pi-Box GitHub Wiki
Installation of additional software provides comfort using of Pi Box.
Next plan will follow you to setup them:
Updating packages
For fetching info about last packages versions use command sudo apt-get update
.
After that you'll need to run sudo apt-get upgrade -y
command for updating already installed packages.
Installing samba
For comfort files and folders browsing on device it's suitable to install samba service: sudo apt-get install samba samba-common-bin
Configuring samba
After samba installation we must configure it. Let's open main configuration file:
sudo nano /etc/samba/smb.conf
Make sure, that specified below parameters values are the same (and uncommented) in your configuration file. If not – make them same:
workgroup = WORKGROUP
wins support = yes
read only = no
create mask = 0700
directory mask = 0700
# valid users = %S
After that we are ready to create the share. In Share Definitions
section add next strings:
[Pi-Box Project]
comment = Pi-Box Project
path = /home
browseable = yes
force user = root
Now save the file (by tapping Ctrl+O
and Enter
) and close it (Ctrl+X
combo).
For now we are ready to add samba user.
For that execute sudo smbpasswd -a pi
command and type twice prefered password for the pi user.
Now we have to restart samba server by the command sudo /etc/init.d/samba restart
.
The share can be reached at address smb://%Pi-Box address% (for Linux) or \\%Pi-Box address% (for Windows) with pi user credentials.