Zynthian development environment setup

My setup is as follows, just in case anyone finds it useful:

  • I mount the RPi folder on my machine (a Linux host) using sshfs
mkdir remote-zynthian
sshfs root@zynthian.local:/zynthian/ remote-zynthian
  • With any editor (VSCode in my case), I edit files as if they were local
code remote-zynthian
  • I run Xnest on my host (with a proper geometry)
Xnest -s 0 -geometry 1280x720+0+0 :5
  • Open a terminal and set the DISPLAY environment variable to the Xnest screen, and then connect to the RPi using SSH with X forwarding
export DISPLAY=:5
ssh root@zynthian.local -X
  • Then, run the zynthian_main.py, which will open inside the Xnest

Regards!

8 Likes