I am running a fresh installation of the latest Raspbian Stretch on a Raspberry Pi 2B. Today, I built the Nextcloud client according to the installation instructions from this site (section: Building on Debian): https://github.com/nextcloud/client_theming
Client version is 2.3.2.
So far, the client works just fine and it synchronizes well with the server.
However, I need to sign in into my Raspbian Account on the Pi in order to have the Nextcloud client start up. What I want to have, is some kind of a ‘background’ connection, so that the Nextcloud client syncs with the server, even when I am not logged in as a user on the Raspberry Pi! So instead of waiting until I sign into the Pi, I want to sync my files with the Pi as soon as the Pi has established internet connection.
Is there a way to do that?
I already checked the following steps:
1.) In the Nextcloud client settings (GUI), tab ‘General’, the option “Launch on System Startup” is already checked
2.) I tried to ‘manually’ start the nextcloud client on boot by doing the following:
Making file “start.sh” in /home with:
and then editing the file “/etc/rc.local” by adding the line:
su pi -c “/home/user/start.sh”
However, the client does not start before I log into my Linux account.
If anybody has a suggestion on how to manage this, please reply!
Have a great day everyone!