Configuring Samba
Configure SAMBA on Polisy/eisy
SAMBA can be installed and configured to allow Windows desktop computers to directly access the Polisy/eisy file system. With this configured, you can use your preferred IDE to do node server development.
- Install the SAMBA package. sudo pkg install samba416
- Create the SAMBA config file. /usr/local/etc/smb4.conf
- Enable SAMBA. sudo service samba_server enable
- Restart SAMBA. sudo service samba_server start
- Set password for admin. sudo smbpasswd -a admin
Sample SAMBA config file
[global] workgroup = WORKGROUP server string = UDI-polisy netbios name = UDI-polisy security = user server min protocol = NT1 server role = standalone server browseable = yes encrypt passwords = yes max log size = 500 preferred master = yes remote announce = 192.168.2.255/WORKGROUP hosts allow = 192.168.2. 127. wins support = yes dns proxy = yes [homes] comment = User Home browseable = no writeable = yes write list = @adm directory mask = 0775 create mask = 0775 [ns] comment = PG3 nodeservers path = /var/polyglot/pg3/ns browseable = yes public = no writeable = yes write list = @adm directory mask = 0775 create mask = 0775
The IP address in bold must be changed to match your network environment.
With the above in place, you should be able to connect to the admin home directory and the node servers directory using the admin account.
On Windows, map a network drive using:
\\UDI-polisy\admin (username:admin, password:<admin's password>) \\UDI-polisy\ns (username:admin, password:<admin's password>)
For PG3x, you need to do a couple of extra steps to access the node server directories.
- Add admin to the polyglot group. sudo pw group mod polyglot -m admin
- Allow git to commit to ns directories. git config --global --add safe.directory "*"
- Restart SAMBA. sudo service samba_server restart