Developers / Docs / Getstarted

Development Using a Samba share

If you prefer an editor or IDE other than VS Code, you can still develop on Windows or Mac. Samba shares your eisy's development directory with your computer, so you can edit plugin files with the tools you like. These are the instructions to setup a Samba share.

Make sure your eisy is up and running.

Login To eisy Using ssh

ssh admin@eisy.local

Default password is admin.

Install Development Packages

You should have the development packages installed:

#only works on eisy
sudo udxops.sh install.dev.pkgs

Alternatively, in eisy-ui, go to /system/configuration to install Development packages.

Tip

In addition to development packages, this will also install vscode which you can natively run on eisy.

Use Samba To Create a Share

If you want to do your development on Windows or Mac, you will need Samba! Samba can be configured to allow Windows/Mac desktop computers to directly access eisy development directories. With Samba configured, you can use your preferred IDE to do plugin development.

Preparation on eisy

**Assuming that you are already on an eisy shell either locally (Monitor/Keyboard) or through ssh **

  1. Install the Samba package
sudo pkg install samba416
  1. Create the Samba config file
sudo vi /usr/local/etc/smb4.conf

See the Sample Config below.

  1. Enable the Samba service
sudo service samba_server enable
  1. Set the password for admin
sudo smbpasswd -a admin
  1. Restart Samba
sudo service samba_server onerestart

Sample Samba Config File

[global]
  workgroup = WORKGROUP
  server string = eisy      ; device name shown on the network
  netbios name = eisy       ; hostname used by Windows to find the device
  security = user           ; require username/password authentication
  encrypt passwords = yes   ; always on for modern clients
  hosts allow = 192.168.    ; restrict access to your local subnet (You may need to change this)

[homes]
  comment = User Home
  browseable = no           ; hide from network browser, access directly
  writeable = yes
  directory mask = 0700     ; owner-only access to directories
  create mask = 0700  

The subnet in hosts allow may need to be changed to match your network environment.

This example will give you a "homes" share that will point to your home directory on eisy (/usr/home/admin).

Make sure to remove the comments from the config file.

Preparation on Windows

With Samba in place, you should be able to connect to the admin home directory using the admin account.

On Windows, map a network drive using:

\\eisy.local\homes (username:admin, password:admin's password)