Installation guide for Clear Linux

This is what I had to do to make Insync work in Clear Linux.

  1. Download rpm (Fedora, latest version)

  2. Extract rpm and install all files to /usr/local (to avoid conflicts with swupd, Clear Linux’s stateless package manager)

    cd usr/
    cp bin/insync /usr/local/bin/
    cp -r lib/insync /usr/local/lib64/
    cp -r share/* /usr/local/share/
    cp -r share/mime/packages/insync-helper.xml /usr/local/share/mime/packages/

  3. Edit /usr/local/bin/insync to append “–ca-path /etc/ssl/certs/” to the exec params, as this is the correct path for Clear Linux.
    The file should read LC_TIME=C exec ./insync "$@" --ca-path /etc/ssl/certs/

  4. Rename and backup the libX11.so shared library provided the rpm as it conflicts with Clear Linux. This will force Insync to use libX11 provided by Clear Linux.
    mv /usr/local/lib64/insync/libX11.so.6 /usr/local/lib64/insync/libX11.so.6.bak

  5. It works perfectly.

Thank you so much for this guide, @insilications!! :slight_smile: I will include this in our Linux Installation Guide for non-supported distros, but I have also brought this up with our team following your request on the other thread. :slight_smile:

1 Like

Thanks for the support @mia. The solution I provided is being used by others users in the https://clearlinux.org forum as well.

1 Like

Hi
I did all the above commands and steps how do I run InSync?
This is the directory of the files I extracted
/usr/local/InSync/bin
/usr/local/InSync/lib
/usr/local/InSync/share
I copied the folders as they are in the .rpm installation file
Thanks

Hi, if you’re done installing Insync, could you do insync start and see if it launches on your systray?

Hi Mia,

It returned command not found

command_not_found

Hi @pika

The destination directories are incorrect (/usr/local/InSync/)

  • The usr/bin/insync file from our package should be copied to /usr/local/bin/
  • All files in usr/lib/insync/ from our package should be copied to /usr/local/lib64/
  • All files in usr/share/ from our package should be copied to /usr/local/share/
  • The usr/share/mime/packages/insync-helper.xml from our package should be copied to /usr/local/share/mime/packages/

@pika

You can try to install using my cmake package. It downloads the latest version of insync and installs it properly in order to run it under Clear Linux: https://github.com/insilications/insync-clr

Download the latest installer (https://github.com/insilications/insync-clr/archive/local-install.zip):

unzip -q insync-clr-local-install.zip
cd insync-clr-local-install/
mkdir build
cd build/
cmake CMAKE_INSTALL_PREFIX=/usr/local ..
make
make install