From 93151326362be4ce7a0285720273aea77e83fa4b Mon Sep 17 00:00:00 2001
From: Never Gude
Date: Tue, 13 Jan 2026 14:54:00 +0100
Subject: [PATCH] Makefile bug fixed
---
Makefile | 3 +
articles.json | 7 +
articles/random-linux-utils.html | 4 +-
articles/random-linux-utils.md | 4 +-
articles/rsync-android.html | 203 ++++++++++++++++++
articles/rsync-android.md | 98 +++++++++
index.html | 11 +
public_html/eh/eh/eh/eh-eh/index.html | 11 +
.../eh/eh/eh/eh-eh/random-linux-utils.html | 4 +-
public_html/eh/eh/eh/eh-eh/rsync-android.html | 203 ++++++++++++++++++
10 files changed, 542 insertions(+), 6 deletions(-)
create mode 100644 articles/rsync-android.html
create mode 100644 articles/rsync-android.md
create mode 100644 public_html/eh/eh/eh/eh-eh/rsync-android.html
diff --git a/Makefile b/Makefile
index 2d6c923..2120d17 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,9 @@ clean:
rm index.html about.html $(articles);
$(articles): %.html: %.md
+ jq 'del(.articles[] | select(.filename == "$(notdir $@)"))' $(article_list) > articles.json.tmp; \
+ mv ./articles.json.tmp $(article_list); \
+
# Build articles using pandoc
pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@; \
diff --git a/articles.json b/articles.json
index 60dd251..cf64f68 100644
--- a/articles.json
+++ b/articles.json
@@ -15,6 +15,13 @@
"summary": "Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things.",
"title": "Random linux utilities",
"filename": "random-linux-utils.html"
+ },
+ {
+ "author": "Never",
+ "date": "12.01.2026",
+ "summary": "As Spotify is getting enshittified by capitalism, keeping a music library is kind of essential. Here I use rsync to syncronise my library with my Android smartphone.",
+ "title": "Using rsync on Android to syncronise my Music library",
+ "filename": "rsync-android.html"
}
]
}
diff --git a/articles/random-linux-utils.html b/articles/random-linux-utils.html
index 8f6e893..c5da3c0 100644
--- a/articles/random-linux-utils.html
+++ b/articles/random-linux-utils.html
@@ -121,8 +121,8 @@ Ghostscript
-
Merge pdfs
-
Using Ghostscript
+
Merge pdfs
+
Using Ghostscript
Ghostscript has a feature to merge multiple pdf files into one.
Although ImageMagick also has this feature, I prefer this one, as it
doesn’t rasterize and scales down the pdf files.
diff --git a/articles/random-linux-utils.md b/articles/random-linux-utils.md
index 4b0e109..6b5c743 100644
--- a/articles/random-linux-utils.md
+++ b/articles/random-linux-utils.md
@@ -6,8 +6,8 @@ date: 25.7.2025
summary: Tricks and tools I learned about, while tweaking my Linux sytem or trying to do productive things.
---
-## Merge pdfs
-### Using Ghostscript
+# Merge pdfs
+## Using Ghostscript
Ghostscript has a feature to merge multiple pdf files into one.
Although ImageMagick also has this feature, I prefer this one, as it doesn't rasterize and scales down
the pdf files.
diff --git a/articles/rsync-android.html b/articles/rsync-android.html
new file mode 100644
index 0000000..cc296a3
--- /dev/null
+++ b/articles/rsync-android.html
@@ -0,0 +1,203 @@
+
+
+
+
+
+
+
+ Using rsync on Android to syncronise my Music library
+
+
+
+
+
+
+
Using rsync on Android to syncronise my Music
+library
+
Never
+
12.01.2026
+
+
+
+
+
Setup Termux
+
Install Termux using F-Droid.
+
Update software repos.
+
pkg update
+
Grant file access permissions using.
+
termux-setup-storage
+
Establishing an ssh
+connection
+
If network (such as eduroam) is blocking ssh trafic between machines,
+open a Wi-Fi Hotspot on your Linux machine and connect the Andoid device
+to it before using rsync or ssh.
+
Configuring Android
+
Install the openssh server on Termux.
+
pkg install openssh
+
Start the ssh server daemon.
+
sshd
+
Get the ip address of the Android machine (in the Hotspot).
+
+
+
+
+
+
diff --git a/articles/rsync-android.md b/articles/rsync-android.md
new file mode 100644
index 0000000..a80256f
--- /dev/null
+++ b/articles/rsync-android.md
@@ -0,0 +1,98 @@
+---
+title: Using rsync on Android to syncronise my Music library
+author: Never
+date: 12.01.2026
+summary: As Spotify is getting enshittified by capitalism, keeping a music library
+ is kind of essential. Here I use rsync to syncronise my library with my Android smartphone.
+---
+
+# Setup Termux
+Install Termux using F-Droid.
+
+Update software repos.
+```sh
+pkg update
+```
+
+Grant file access permissions using.
+```sh
+termux-setup-storage
+```
+
+# Establishing an ssh connection
+
+If network (such as eduroam) is blocking ssh trafic between machines, open a Wi-Fi Hotspot
+on your Linux machine and connect the Andoid device to it before using `rsync` or `ssh`.
+
+## Configuring Android
+Install the openssh server on Termux.
+```sh
+pkg install openssh
+```
+
+Start the ssh server daemon.
+```sh
+sshd
+```
+
+Get the ip address of the Android machine (in the Hotspot).
+```sh
+ifconfig
+```
+```
+Warning: cannot open /proc/net/dev (Permission denied). Limited output.
+lo: flags=73 mtu 65536
+ inet 127.0.0.1 netmask 255.0.0.0
+ unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
+
+rmnet0: flags=4305 mtu 1280
+ inet 10.200.157.166 netmask 255.255.255.0 destination 10.200.157.166
+ unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
+
+wlan0: flags=4163 mtu 1500
+ inet 10.42.0.200 netmask 255.255.255.0 broadcast 10.42.0.210
+ unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
+```
+
+In this case 10.42.0.200.
+
+The ssh server should now be running and listening on port 8022.
+You can check by running
+```sh
+nmap -Pn
+```
+For me `` whould be 10.42.0.200.
+
+Get the username.
+```sh
+whoami
+```
+```
+u0_a700
+```
+
+Set a password for this user.
+```sh
+passwd
+```
+
+## Connecting to Android via ssh
+Make sure you have an ssh key pair on the Linux system.
+If not generate one using `ssh-keygen`
+
+Now connect to Android by `ssh`
+```sh
+ssh @ -p 8022
+```
+
+# Syncronising files with rsync
+Install `rsync` on Termux and Linux.
+Make sure to keep your own openssl config.
+```sh
+pkg install rsync
+```
+
+Now on your Linux machine, syncronise your Music library with rsync.
+```sh
+rsync -av -e "ssh -p 8022" ~/Music @:/data/data/com.termux/files/home/storage/music
+```
diff --git a/index.html b/index.html
index ce8ea91..7b0cb90 100644
--- a/index.html
+++ b/index.html
@@ -73,6 +73,17 @@ utilities
tweaking my Linux sytem or trying to do productive things.
As Spotify is getting enshittified by
+capitalism, keeping a music library is kind of essential. Here I use
+rsync to syncronise my library with my Android smartphone.
+
12.01.2026
+
diff --git a/public_html/eh/eh/eh/eh-eh/index.html b/public_html/eh/eh/eh/eh-eh/index.html
index ce8ea91..7b0cb90 100644
--- a/public_html/eh/eh/eh/eh-eh/index.html
+++ b/public_html/eh/eh/eh/eh-eh/index.html
@@ -73,6 +73,17 @@ utilities
tweaking my Linux sytem or trying to do productive things.
As Spotify is getting enshittified by
+capitalism, keeping a music library is kind of essential. Here I use
+rsync to syncronise my library with my Android smartphone.
Ghostscript has a feature to merge multiple pdf files into one.
Although ImageMagick also has this feature, I prefer this one, as it
doesn’t rasterize and scales down the pdf files.
diff --git a/public_html/eh/eh/eh/eh-eh/rsync-android.html b/public_html/eh/eh/eh/eh-eh/rsync-android.html
new file mode 100644
index 0000000..cc296a3
--- /dev/null
+++ b/public_html/eh/eh/eh/eh-eh/rsync-android.html
@@ -0,0 +1,203 @@
+
+
+
+
+
+
+
+ Using rsync on Android to syncronise my Music library
+
+
+
+
+
+
+
Using rsync on Android to syncronise my Music
+library
+
Never
+
12.01.2026
+
+
+
+
+
Setup Termux
+
Install Termux using F-Droid.
+
Update software repos.
+
pkg update
+
Grant file access permissions using.
+
termux-setup-storage
+
Establishing an ssh
+connection
+
If network (such as eduroam) is blocking ssh trafic between machines,
+open a Wi-Fi Hotspot on your Linux machine and connect the Andoid device
+to it before using rsync or ssh.
+
Configuring Android
+
Install the openssh server on Termux.
+
pkg install openssh
+
Start the ssh server daemon.
+
sshd
+
Get the ip address of the Android machine (in the Hotspot).