Developers / Docs / Getstarted

Development Using VS Code

If you use VS Code for development, you can develop remotely as easily as developing direclty on eisy. You would not know the difference!

Prereqs

  • eisy | r2 or eisy | lite
  • OS 14.4p6 or above

Initial Tasks

Make sure your eisy is up and running!!!

Check the OS version:

uname -a

If not already on 14.4p6 (or above), FIRST make sure you have the latest udx by clicking on the Upgrade Packages button in eisy-ui | System

Upgrade may take up to 1 hour. Be patient!

Developing Directly on eisy Using VS Code

  1. Attach a USB keyboard and mouse as well as an HDMI monitor (or two) to the HDMI ports on eisy
  2. When you see the login prompt on the monitor, login (default = admin/admin)
  3. Make sure you have OS version 14 or above
uname -a 
  1. Start the windowing system (XFCE)
start.win
  1. Start IoX version of VS Code (ide) in a directory in which you will be developing your plugin
mkdir plugins
cd plugins
ide .

Developing Remotely on eisy Using VS Code

All the steps below are done on your local machine:

  1. Create an SSH config file
  • Go to the .ssh directory of your home directory
  • Edit or create a file named config as follows:

On Windows

Host eisy
    HostName 1.2.3.4 #replace with actual IP address of your eisy
    User admin #this is the default use for eisy login
    SetEnv BASH_ENV=".bash_linux" 

On Linux

Host eisy
    HostName 1.2.3.4 #replace with actual IP address of your eisy
    User admin #this is the default use for eisy login
    SetEnv BASH_ENV=".bash_linux" 
    RemoteCommand /compat/linux/usr/bin/bash
  1. SSH to eisy and configure remote development:
    ssh admin@eisy #when prompted, type in your eisy's admin password. Default is admin.
    uname -a #make sure OS is 14.1 or above.
    ide   #this sets up vscode for remote connectivity  

If this command fails, use the full path:

    /usr/local/etc/udx.d/static/ide 
  1. Install VS Code and start it

  2. Install Remote Explorer extension

    Remote Explorer

  3. Connect to the eisy host you configured in step 2 above

    Connect to eisy

  4. When prompted, choose Linux and in the terminal, click on details link in the terminal and enter the password for eisy

    Details

  5. Once connected, click on the Open Folder button and choose your desired folder on eisy!

    Details

You are done!

Tip

Please note that whatever extension you install, is installed on eisy and NOT your local machine.