A Bash script to create a Fedora container in distrobox, install Insync, and start it automatically on login.
distrobox must be installed on your host system and is available in nearly all distribution repositories.
sudo pacman -S distrobox
sudo apt install distrobox
rpm-ostree install distrobox
- Restart required after installing
distrobox
and prior to running the script.
sudo dnf install distrobox
sudo zypper install distrobox
Download the make-insync-container.sh
file above.
The container will be named fed-insync
by default. If you would like a different name, edit the CONTAINER
variable in the script. (Do not use special symbols or spaces.)
CONTAINER=my-new-insync-container-name
Navigate to the directory you saved the script in and execute:
sh make-insync-container.sh
You should now be able to use Insync as usual!
The script does not properly insert quotations in the autostart entry. To fix this, edit the fed-insync*.desktop
file in /home/USERNAME/.config/autostart
to add quotation marks:
/usr/bin/distrobox-enter -n fed-insync -- /bin/sh -l -c "insync start"
Thanks to aaylnx on the Insync forums for most of the basis of the script!