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
+ +12.01.2026
+Setup Termux
+Install Termux using F-Droid.
+Update software repos.
+pkg updateGrant file access permissions using.
+termux-setup-storageEstablishing 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 opensshStart the ssh server daemon.
+sshdGet the ip address of the Android machine (in the Hotspot).
+ifconfigWarning: cannot open /proc/net/dev (Permission denied). Limited output.
+lo: flags=73<UP,LOOPBACK,RUNNING> 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<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> 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<UP,BROADCAST,RUNNING,MULTICAST> 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
+nmap -Pn <ip_address>For me <ip_address> whould be 10.42.0.200.
Get the username.
+whoamiu0_a700
+Set a password for this user.
+passwdConnecting 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
ssh <username>@<ip_address> -p 8022Syncronising files with +rsync
+Install rsync on Termux and Linux. Make sure to keep
+your own openssl config.
pkg install rsyncNow on your Linux machine, syncronise your Music library with +rsync.
+rsync -av -e "ssh -p 8022" ~/Music <username>@<ip_address>:/data/data/com.termux/files/home/storage/music