In discussion with a co-worker regarding the localhost development conundrum he asked if I had tried X11 forwarding. I promptly replied no and we briefly discussed the potential impact this may have.
What could this mean for the localhost story?
Well….the problems that were encountered in the first iteration of this, in theory should no longer exist.
- File change events would be properly raised as we would be natively editing the file on the VM
- We wouldn’t have to wait for files to sync’d between OSX and the VM and then having to wait for the file change events to occur.
This only changes slightly as we go down the X11 route of things as we would simply be moving the IDE into the provisioned VM:
ssh -XC firstname.lastname@example.org
mkdir -p ~/opt/packages/pycharm
gzip -dc pycharm-professional-2016.1.tar.gz | tar xf -
ln -s ~/opt/packages/pycharm/pycharm-2016.1/ ~/opt/pycharm
# Install zentity (required by pycharm
sudo apt-get update
sudo apt-get install zenity
# Start PyCharm
In terms of look and feel it’s “almost” like you’re working natively however…..it’s just a little awkward. I think that’s the best word to describe it. There are some minor graphical issues and the window sizing that I’ve come to expect when working with a native app just doesn’t work the same.
In terms of speed it’s still a little sluggish. Much faster than relying upon rsync but still not quite good enough IMO.