So long as you have your RasPi screen as shown, a headless NextCloud server is already running there. To verify, the command ‘snap services nextcloud’ should give you the following:
Service Startup Current Notes
nextcloud.apache enabled active -
nextcloud.mdns-publisher enabled active -
nextcloud.mysql enabled active -
nextcloud.nextcloud-cron enabled active -
nextcloud.nextcloud-fixer enabled inactive -
nextcloud.php-fpm enabled active -
nextcloud.redis-server enabled active -
nextcloud.renew-certs enabled active -
I set up my RasPi NextCloud server from Ubuntu 20.04 and was able to log into its web console by pointing my browser to http://nextcloud.local. The web console enables you to manage the server environment. Since you are having difficulties in reaching the web console, I suggest that you do the following:
- ssh to your RasPi
- Run ‘sudo nextcloud.occ config:system:set trusted_domains 1 --value=192.168.2.130’. This will register your RasPi’s IP address as a trusted domain.
- To verify, run ‘sudo nextcloud.occ config:system:get trusted_domains’. You should see the IP address listed:
- Run ‘snap restart nextcloud’ to restart the NextCloud server.
- Exit RasPi
Now point your Mac browser to http://192.168.2.130 to log into the web console - You may get an insecure server warning, though. On your first login, you must set your user name & password.
To connect other devices to the NextCloud server on the same LAN, use http://192.168.2.130, not http://nextcloud.local. In my case, Ubuntu/Debian/OS X/Android clients all have been connected this way to my RasPi NextCloud server.
Hope the above will work for you.