From a518a24a1594e32884d06b167aa166f001a31727 Mon Sep 17 00:00:00 2001 From: Lethe Beltane Date: Wed, 4 Sep 2024 09:43:50 -0500 Subject: [PATCH] New post: Kovid Goyal doesn't want you to know this, but you can run Calibre directly on Android --- 2024_books.html | 18 +++++++++++ 2024_music.html | 18 +++++++++++ blog/2023/october/urbit2.html | 2 +- blog/2024/09/calibre.html | 58 +++++++++++++++++++++++++++++++++++ blog/index.html | 1 + 5 files changed, 96 insertions(+), 1 deletion(-) mode change 100755 => 100644 blog/2023/october/urbit2.html create mode 100644 blog/2024/09/calibre.html diff --git a/2024_books.html b/2024_books.html index 7b2f7c4..59e988d 100755 --- a/2024_books.html +++ b/2024_books.html @@ -247,6 +247,24 @@ Sophy Burnham + + 2024-W34 + Faithful and Virtuous Night + Louise Gluck + + + + 2024-W35 + Ordinary Genius + Kim Addonizio + + + + 2024-W36 + The Writing Life + Annie Dillard + + diff --git a/2024_music.html b/2024_music.html index bb57131..02746b6 100755 --- a/2024_music.html +++ b/2024_music.html @@ -235,6 +235,24 @@ Brandi Carlile + + 2024-W34 + Going To Hell + The Pretty Reckless + + + + 2024-W35 + Be the Cowboy + Mitski + + + + 2024-W36 + Escape + Future Palace + + diff --git a/blog/2023/october/urbit2.html b/blog/2023/october/urbit2.html old mode 100755 new mode 100644 index 6277205..7e63fac --- a/blog/2023/october/urbit2.html +++ b/blog/2023/october/urbit2.html @@ -172,7 +172,7 @@ call: failed

Studio (~tirrel/studio)

welcome to studio
start by creating a site
-

It's a blogging platform. And just like %blog, other people can't access your posts over a pure Urbit connection; you have to have a domain pointing at your Urbit server and a reverse proxy.. So, just like the rest of Urbit, it would only be accessible as long as DNS and HTTP are up. Which makes it no equivalent to the "freesites" in Hyphanet as it requires infrastructure outside Urbit. Which makes Studio just another shitty CMS.

+

It's a blogging platform. And just like %blog, other people can't access your posts over a pure Urbit connection; you have to have a domain pointing at your Urbit server and a reverse proxy. So, just like the rest of Urbit, it would only be accessible as long as DNS and HTTP are up. Which makes it no equivalent to the "freesites" in Hyphanet as it requires infrastructure outside Urbit. Which makes Studio just another shitty CMS.

You know, I'm getting real tired of these... You'd think someone with the technical knowledge required to get an Urbit planet up and running would know how to write some simple static HTML and thus wouldn't have the need for a CMS.

Portal (~worpet-bildet/portal)

Portal is another Twitter clone. The userbase seems to be nicer than Trill's, though. When I opened Portal, above the usual text box where you can write your posts, there was a search bar... with the OpenAI logo next to it? Below that was a set of "tags": "Crypto", "Longform", "Productivity"... Clicking on a tag wouldn't search posts by the words in the search query, but instead with an AI-like prompt: for example, clicking on "Longform" would populate the words "high wordCount" in the search box and then find posts in the feed with, well, a lot of words.

diff --git a/blog/2024/09/calibre.html b/blog/2024/09/calibre.html new file mode 100644 index 0000000..b439076 --- /dev/null +++ b/blog/2024/09/calibre.html @@ -0,0 +1,58 @@ + + + + + Kovid Goyal doesn't want you to know this, but you <em>can</em> run Calibre directly on Android - Archive - MayVaneDay Studios + + + + + +
+
+

Kovid Goyal doesn't want you to know this, but you can run Calibre directly on Android

+

published: 2024-09-04

+
+
+
+

Well, maybe not directly directly, but the code itself is running on your device, not on a remote server.

+

I make the statement in the title based off three observations:

+
    +
  1. The official Calibre website states that "calibre itself does not run on phones/tablets".
  2. +
  3. The developer doesn't want you using any versions of Calibre specifically modified to work on your device:
  4. +
+
Please do not use your distribution provided calibre package, as those are often buggy/outdated. Instead use the Binary install described below.
+
    +
  1. Attempting to perform an isolated install in Termux using the official instructions for installing on Linux immediately throws an error:
  2. +
+
+Using python executable: /data/data/com.termux/files/usr/bin/python3
+Your system is not based on GNU libc. The calibre binaries require GNU libc
+				
+

So in my pursuit of minimizing the amount of activities that require me to pull out my aging Thinkpad T510, and because I don't particularly care how software maintainers think I should have my computing environment setup, I went ahead and installed Calibre in a Debian proot inside Termux.

+

If you've ever gone looking in F-Droid for solutions to run Linux software on Android that hasn't been compiled for Termux yet, you may have come across AnLinux, which provides many "proot"s for popular Linux distros to run inside Termux. But installing it and opening up reveals that it's just a bunch of scripts to copy-paste. Installing AnLinux thus isn't needed, as you can find all the installer scripts on GitHub.

+

To install Calibre directly on Android:

+
    +
  1. Download and install Termux, obviously.
  2. +
  3. Inside Termux, run termux-setup-storage to give it access to the rest of the files on your device.
  4. +
  5. Run the AnLinux Debian installer script to get a Debian proot working.
  6. +
  7. Edit start-debian.sh and uncomment the two lines after "uncomment the following line" to give the proot access to the files on your device.
  8. +
  9. Run bash start-debian.sh to start the proot.
  10. +
  11. Now inside the proot, run the AnLinux XFCE4 installer script to get a graphical environment installed and working.
  12. +
  13. Install a VNC client of your choice. I personally use AVNC, also available on F-Droid. Use the VNC app to connect to the VNC server now running inside the proot inside Termux. The address to connect to is usually 127.0.0.1:5901. If you get a "connection refused" error, go back to Termux and, in the proot, run vncserver-start.
  14. +
  15. In the VNC app, open a terminal and run apt install calibre. Wait as it downloads and installs everything you need.
  16. +
  17. Now run Calibre!
  18. +
+

Caveats:

+
    +
  1. The built-in book editor will crash if you don't run Calibre in a terminal with the command QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" calibre. This is because, in the proot, there is only one user and so you are technically running as root, which the Chromium engine doesn't like. Even with that special flag set, the book editor frequently refuses to save as it claims the cache has suddenly gone missing. Sigil, a standalone book editor, also requires --no-sandbox set via an environment variable like shown above, but in my personal experience it seems much more stable for anything longer than fixing a typo.
  2. +
  3. Unless your device is rooted and you've given Termux superuser permissions, Calibre won't be able to manage libraries stored on external storages, like microSD cards.
  4. +
+
+
+
+

CC BY-NC-SA 4.0 © Vane Vander

+
+
+ + diff --git a/blog/index.html b/blog/index.html index 20d351c..a32237a 100755 --- a/blog/index.html +++ b/blog/index.html @@ -18,6 +18,7 @@

2024