Ideally, there should be a snap package (or other universal package) for Brackets.
Not there yet,
https://github.com/adobe/brackets/issues/12531
Since we talk about containers here, and Brackets requires an obsolete "libgcrypt11" library, you can install Ubuntu 14.04 in an LXD container (has the old library), then install the distributed Brackets package in there.
Code:
lxc launch ubuntu:14.04 mybrackets
lxc exec mybrackets -- apt-get update
lxc exec mybrackets -- wget https://github.com/adobe/brackets/releases/download/release-1.9/Brackets.Release.1.9.64-bit.deb
lxc exec mybrackets -- dpkg -i Brackets.Release.1.9.64-bit.deb
lxc exec mybrackets -- apt-get -f install
This creates a container called "mybrackets", running Ubuntu 14.04. Then, it runs a "apt update" inside the container.
Afterwards, it downloads the read-made Brackets .deb package and installs it with "dpkg -i".
There are dependencies there, therefore, we run "apt-get -f install" to sort them out.
You then need to be able to SSH into "mycontainer".
This means that you need to place your SSH public key in the account "ubuntu" (/home/ubuntu/.ssh/authorized_keys) in the container.
Here is how to do this:
Code:
cat ~/.ssh/id_rsa.pub | lxc exec mybrackets -- sudo --login --user ubuntu tee /home/ubuntu/.ssh/authorized_keys
Finally, let's run "brackets" in the container and have it appear on our desktop X.
Code:
ssh -X ubuntu@mybrackets.lxd brackets
That's it.