Sure. Let’s start with some intro remarks-just for orientation.
ssh stands for secure shell. So when I, for example ssh to one of my Pi 2 machines from my Macbook Pro, I open a terminal window on the Macbook and type:
(using default user on the pi here)…point is to ssh username@ipaddress – there are alternatives but this is simplest course
The terminal will challenge you for user “pi”'s password. (default being “raspberry”).
So you enter the password.
At that point you will be entering commands into the terminal window on your machine (my Macbook in this case) which are actually being executed on the remote (the Pi 2 in this case).
So you can change to the directory where you have installed Openhab on the Pi 2, execute the ./start.sh and watch the console window unwind in front of your eyes on your remote (ie MacBook for me) machine.
VNC ( virtual network console) allows you to have a remote graphical window where you can open editors, multiple terminal windows etc all in the context of working from your remote (ie my MacBook) but executing on the Pi 2 targetted.
Let’s assume the Pi 2 is freshly booted. If I am not physically at that machine, I do the following:
(you could script most of this but digging in here a bit)
- from my MacBook, ssh to the Pi 2 and login.
- in the ssh session run the script to start the VNC server on the Pi 2
- from the Macbook run the vnc app which can connect to the VNC server on the Pi 2 (you have to repeat the logon stuff…VNC uses ssh but is unaware of the login in step 1)
Now you have a full graphical desktop of the Pi 2 on the (MacBook). I usually open a few terminal windows from the toolbar. One in which I will start Openhab and others to follow various logs using a command like
tail -f -n50 zwave.log
which will continually show the last 50 lines in my zwave.log file. (configured in logback.xml in the configurations subdirectory).
ssh is baked into most unix-y os and can be had in Windows via installing cygwin or another unix-y shell.
For vnc, I use TightVNC. Follow directions in this link to install it and create the vnc.sh file.
From my Macbook, I use the tightvnc-jviewer.jar which you can download from TightVNC. Invoking/double-clicking this link (or app in Applications folder) opens dialog for me to connect to the IP address I want and provide appropriate credentials.
Does this help ?