What type of hardware are you using: Old laptop or computer What YunoHost version are you running: 12.0.14 How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: NA
Describe your issue
I have a PC with slow internet connection, so yunohost app install <app-name> takes forever for wget to download file.tar.gz
As a work-arouond, I’m wondering if I could download the files for the apps I want and copy them to the YNH app cache for the yunohost app install to find and process.
I have already tried placing the source file in /var/cache/yunohost/download/<app-name>/main but that did not work and exited with error.
This is not how app install works. Depending on the app, you can find in the app manifest the url of the upstream download. It will fetch the app from that url.
So, in your case, that will be complicated.
You check the app download url, use adguard home to rewrite that url to a local file on your server that is served via https with a let’s encrypt certificate (a custom webapp or any other app).
Not sure this will work.
You mean that you’d download them elsewhere on a faster connection, go back home, and then move the files to your server?
I can imagine some workarounds, but your internet connection has to be very slow (or costly) to make it worth your time:
Install a proxy server that caches files and use it exclusively for your YNH (or for your whole network, it may improve your web browsing experience). This moves the problem from downloading slowly to your YNH to downloading slowly to the cache of your proxyserver, but then you may be able to copy the files to this better defined cache on the proxy server
Or, create a second YNH on another laptop that you can easily take with you, and mirror it as far as applications is concerned. The yunohost-backup command can take the core-only option to only back-up the program files, not the user data. This way you could update your on-the-move YNH on a fast connection, go back home, create core-only backups, move the backups to your YNH, restore the backups instead of an upgrade.
Both options require many manual steps that invite mistakes. Mopping up the fallout of these mistakes will take more time again. You’ll learn a lot on the way, but it may well take the fun out of self hosting.
If I may ask, how slow is your connection, and, with such a slow connection, do you mainly use your YNH-services at home or on the move?