Skip to main content

InsyncHQ - InSync and InSync-Headless

Installing insync using modern key management

The vendor's instructions for installing via the apt package manager use the deprecated apt-key package manager.  The installation instructions below use current methods of leveraging the signing key without the vulnerabilities of loading a vendors key into the main apt key ring.

# import the key to your local keyring
gpg --keyserver keyserver.ubuntu.com --recv-keys ACCAF35C

# export the key in ascii armored format to a local file
gpg --armor --export ACCAF35C > insynchq-ubuntu.asc

# move the file to a system location
sudo mv insynchq-ubuntu.asc /usr/share/keyrings/

# create the apt sources file for insync
sudo cat <<EOF > /etc/apt/sources.list.d/insync.list
deb [signed-by=/usr/share/keyrings/insynchq-ubuntu.asc] http://apt.insync.io/ubuntu `cat /etc/os-release | grep UBUNTU_CODENAME | cut -d = -f 2` non-free contrib
EOF

# update apt
sudo apt update

# install insync
sudo apt install insync

If for some reason you don't have access to gpg, here's the actual insync-ubuntu.asc file contents:

cat <<EOF > insync-ubuntu.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFBNZQMBCADhvMmAAuYnB1rxzvGzz3rdYDT9pg6QCSI7gqTrimVS+SqkTVnj
Qh+ot849Vgfww50FMsNVTMX3QZVjJ/8/LrlZRLoiowBp9emH+Cvpmc+jjsBZJeuB
Urd2WzG1FZ1fx821UHmN8xr6JYq1ppuA9am5eI8ks2nGnc5UssEUWGWEnXcR4Q1y
AdcB1WvCz7GTEkQkf+aDJS3mbLp9nEMNd4C/U9B60Jp5Yerm+eaZL296VvSodQ2l
croqkbXZumsdVYE4FZJf88FKVXJc4QHpeMlJ0OVI+1cDXoFlGTlxkh6ofa27w1UR
2Fz70nf+fYxwnAFHL4irkIlsO/Rt8qodb1dBABEBAAG0JEluc3luY2hxIEluYyA8
c2VydmljZXNAaW5zeW5jaHEuY29tPokBVAQTAQoAPgIbLwIeAQIXgAULCQgHAwUV
CgkICwUWAgMBABYhBK7rlOnFo7VOz6SmaqaERwysyvNcBQJmqMYaBQkd4C8XAAoJ
EKaERwysyvNcvBUH/1XY2AEGE++q0CEQxXU/TScul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PZFyYA31mJZkviwjCzE7+SqVH2qYYvzTjq6q7xw
sm1YifybChUs87iv5ek1Tdzi44k/GM1A7yryvwNBQAlw86Y6Q3pTRa+mpHnvpjo8
7C6rMknbX7kT5LwYzjz6dEIhy0odlBRktZLlDgPo2ue3x5yh0iDhfK8sByUQykMn
7rvgd4odeEl/WVTFmK5T6XQoXNDovlbsq21q0nPeTwb488a4X9XowT4JkOUaliaV
w8ntG+mE9YsJoxXqJXuOit4ILTPNxbNA81qOKTBuZYdaX7URw3WLrLI5SHEOju+E
YzDlKJ4JDyetm6Z20CspCRCmhEcMrMrzXCRJCACm0Ri93g6K1WB1FpcDIj0UU1/8
Z9XGT83WWaHfd6Bp2xVNyFOUo9QnMZmRUZVf64feYeUvoZnR0zcFofvLvY8bMCZY
Scn/rTPw8V6wraZsFxsIE96B5d1IfCDPxb8MGEG27Dm6WjEg65JeyeU9K7un4hyK
4jhjvYeKAVDG4PEAfrvLBiYc0TlSwPqhhnVB3uvEHZwpfBjobFGgaPTnYBEjXeql
6+QhJqHQrUGbfWDzyuVv8FuEzMNW0PTvZEEpeOdFHRqOo6My7erDprr/dzegyFvs
VqdHWsArPrPM102WLHgeooXihxqgDqg4KheAr1sHeGnTVG0Ow7E9RWg2ZUqF
=RWiJ
-----END PGP PUBLIC KEY BLOCK-----
EOF

insync-headless and umask

insync-headless autoruns using cron

#end