Bookmarks with Nextcloud
Jump to navigation
Jump to search
About
Nextcloud can handle all your bookmarks...this is REALLY handy if you use multiple devices, Terminal Servers and such.
You can learn all about the built-in and third-party apps here: https://apps.nextcloud.com/apps/bookmarks
iOS or Android devices
Since the usual floccus-Plugins won't work on mobile device browsers[1] there are special apps to manage your bookmarks. This works just fine, but is a bit "unhandy". And using the Nextcloud-Web-App is just also not cool (due to login, 2FA and the overengineered app).
However, you can export your bookmarks on a daily basis to HTML and use it otherwise...
HowTo
ℹ️ | The basic idea is to make backups from Nextcloud-bookmarks and make them (not so much) protected available on the website, so you can access it from every browser as long as you remember your credentials. |
🚧 | You can't just copy these bits and it will work. But for anyone with decent Linux skills, this is fairly simple. Just adjust paths and off you go! |
deep-thought bookmarks # cat .htaccess AuthType Basic AuthName "Wurst-Wasser.net Bookmarks" AuthUserFile /var/www/_htaccess/bookmarksUsers Require valid-user deep-thought bookmarks #
- Set a password:
deep-thought _htaccess # htpasswd bookmarksUsers heiko New password: Re-type new password: Adding password for user heiko deep-thought _htaccess #
- Run this script nightly:
#!/bin/bash #set -x # Documentation: https://www.wurst-wasser.net//wiki/index.php/Bookmarks_with_Nextcloud # Globals GFOLDERTARGET="/var/www/html/bookmarks" GFILETARGET="${GFOLDERTARGET}/index.html" GFOLDERSOURCE="/home/nextcloud-data/heiko/files/Bookmarks Backups" # Functions # Main GFILEBOOKMARKS="`find "${GFOLDERSOURCE}" -type f | sort | tail -1`" echo "Newest bookmarks file: \"${GFILEBOOKMARKS}\"." echo "Publishing bookmarks file: \"${GFILEBOOKMARKS}\" to \"${GFILETARGET}\"" cp "${GFILEBOOKMARKS}" "${GFILETARGET}" #EOF
- Might want to use a cronjob like this:
# Publish bookmarks 0 7 * * * /root/bin/publishBookmarks.sh >> /dev/null 2>&1
- Use https://YOURHOST/bookmarks/ to access the bookmarks on ANY device!
- Links
- Footnotes: