Bash script(s) to create a Fedora container (latest supported container version is Fedora 40) in distrobox, install Insync, and start it automatically on login.
distrobox must be installed on your host system (only tested with a Podman backend) 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. - Universal Blue variants Bluefin, Aurora, and Bazzite should already have distrobox installed.
sudo dnf install distrobox
sudo zypper install distrobox
Download the make-insync-container.sh
or make-insync-rpm-container.sh
files manually or by cloning the repo. If using https authentication:
git clone https://github.com/ebits21/insync-distrobox.git
if using ssh authentication:
git clone [email protected]:ebits21/insync-distrobox.git
The container will be named fedora-distrobox
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
There are two options. Navigate to the directory you saved the script in and execute either:
sh make-insync-container.sh
This script adds the Insync repo manually and then installs Insync. Alternatively run:
sh make-insync-rpm-container.sh
This version downloads the appropriate .rpm and installs the .rpm
You should now be able to use Insync as usual!
If using Gnome shell on the host I recommend using the AppIndicator and KStatusNotifierItem Support extension to see Insync's app indicator.
If Insync does not start at boot, edit the fedora-distrobox*.desktop
file in /home/USERNAME/.config/autostart
and add quotation marks:
/usr/bin/distrobox-enter -n fedora-distrobox -- /bin/sh -l -c "insync start"
Thanks to aaylnx on the Insync forums for most of the basis of the script!