90s-style #1

Merged
never merged 25 commits from 90s-style into main 2026-02-11 19:06:32 +01:00
16 changed files with 291 additions and 7 deletions
Showing only changes of commit b63d2ebeb2 - Show all commits

View file

@ -1,5 +1,6 @@
SHELL = /bin/sh SHELL = /bin/sh
INSTALLDIR := ./public_html/eh/eh/eh/eh-eh/ INSTALLDIR_HTML := ./public_html/eh/eh/eh/eh-eh/
INSTALLDIR_ANSI := ./public_ansi/
# The name of the stylesheet. This needs to be copied to any directory containing html files that use it. # The name of the stylesheet. This needs to be copied to any directory containing html files that use it.
style := style.css style := style.css
@ -15,18 +16,20 @@ list_template := pandoc/meta-json-template.txt
article_list := articles.json article_list := articles.json
# article targets # article targets
articles := $(patsubst %.md,%.html,$(wildcard articles/*.md)) articles_html := $(patsubst %.md,%.html,$(wildcard articles/*.md))
articles_ansi := $(patsubst %.md,%,$(wildcard articles/*.md))
all: index.html about.html all: index.html index about.html about
install: install:
cp -r index.html about.html shark.js shark.png dvd-logo.png $(articles) $(style) $(images) $(INSTALLDIR); \ cp -r index.html about.html shark.js shark.png $(articles_html) $(style) $(images) $(INSTALLDIR_HTML); \
cp -r index about $(articles_ansi) $(INSTALLDIR_ANSI);
clean: clean:
echo '{"articles": []}' > $(article_list); \ echo '{"articles": []}' > $(article_list); \
rm index.html about.html $(articles); rm index.html about.html $(articles_html);
$(articles): %.html: %.md $(articles_html): %.html: %.md
jq 'del(.articles[] | select(.filename == "$(notdir $@)"))' $(article_list) > articles.json.tmp; \ jq 'del(.articles[] | select(.filename == "$(notdir $@)"))' $(article_list) > articles.json.tmp; \
mv ./articles.json.tmp $(article_list); \ mv ./articles.json.tmp $(article_list); \
@ -38,9 +41,18 @@ $(articles): %.html: %.md
jq '.articles += [$(shell pandoc $< --template $(list_template) | jq '. += {"filename": "$(notdir $@)"}' )]' $(article_list) > articles.json.tmp; \ jq '.articles += [$(shell pandoc $< --template $(list_template) | jq '. += {"filename": "$(notdir $@)"}' )]' $(article_list) > articles.json.tmp; \
mv ./articles.json.tmp $(article_list); \ mv ./articles.json.tmp $(article_list); \
index.html: index.md $(articles) $(articles_ansi): %: %.md
pandoc $< --to ansi --output $@
index.html: index.md $(articles_html)
# Build index.html with metadata injected from articles_list # Build index.html with metadata injected from articles_list
pandoc $< --template $(template) --include-after-body shark.js --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@; \ pandoc $< --template $(template) --include-after-body shark.js --css $(style) --metadata-file $(article_list) --highlight-style zenburn --mathml --toc --output $@; \
index: index.md $(articles_ansi)
pandoc $< --to ansi --output $@
about.html: about.md about.html: about.md
pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@ pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@
about: about.md
pandoc $< --to ansi --output $@

5
about Normal file
View file

@ -0,0 +1,5 @@
]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html\Rsync Android]8;;\
Stuff
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$]8;;\

View file

@ -50,6 +50,9 @@
</ul> </ul>
</nav> </nav>
<article> <article>
<p><a
href="https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html">Rsync
Android</a></p>
<h2 id="stuff">Stuff</h2> <h2 id="stuff">Stuff</h2>
<p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><munderover><mo></mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>k</mi></munderover><mi>i</mi><mo>=</mo><mfrac><mrow><mi>k</mi><mo stretchy="false" form="prefix">(</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo stretchy="false" form="postfix">)</mo></mrow><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex"> \sum_{i=1}^k i = \frac{k(k+1)}{2} </annotation></semantics></math></p> <p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><munderover><mo></mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>k</mi></munderover><mi>i</mi><mo>=</mo><mfrac><mrow><mi>k</mi><mo stretchy="false" form="prefix">(</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo stretchy="false" form="postfix">)</mo></mrow><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex"> \sum_{i=1}^k i = \frac{k(k+1)}{2} </annotation></semantics></math></p>
</article> </article>

View file

@ -2,6 +2,8 @@
title: About title: About
--- ---
[Rsync Android](https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html)
## Stuff ## Stuff
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$ $$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$

8
articles/latex-endeavors Normal file
View file

@ -0,0 +1,8 @@
BIBLATEX AND BIBER
Biber doesnt run
Biber doenst run if the (fedora) package  libxcrypt-compat  is missing.
It will fail with the error message
biber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory]8;;\

View file

@ -0,0 +1,11 @@
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 doesnt
rasterize and scales down the pdf files.
gs -dNOPAUSE -sDEVICE=pdfwrite \
 -sOUTPUTFILE=output.pdf \
 -dBATCH 1.pdf 2.pdf]8;;\

107
articles/rsync-android Normal file
View file

@ -0,0 +1,107 @@
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 Android
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).
ifconfig
Warning: 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.
whoami
u0_a700
Set a password for this user.
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 .
ssh <username>@<ip_address> -p 8022
SYNCRONISING FILES WITH RSYNC
Install  rsync  on Termux and Linux. Make sure to keep your own openssl
config.
pkg install rsync
Now 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
Refreshing the Android MediaStore
Android uses a Database to store files. In order to play your music,
this database needs to be refreshed. This can be achieved by a reboot or
by using adb to manually refresh it.
sudo dnf install adb
Connect the Android device via USB and see if it is listed.
adb devices
If it is, restart adb in TCP mode with port 5555
adb tcpip 5555
Connect to the device using its .
adb connect <ip_address>
Refresh MediaStore.
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN -d file:///data/data/com.termux/files/home/storage/music/]8;;\

1
index Normal file
View file

@ -0,0 +1 @@
]8;;\

5
public_ansi/about Normal file
View file

@ -0,0 +1,5 @@
]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html\Rsync Android]8;;\
Stuff
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$]8;;\

1
public_ansi/index Normal file
View file

@ -0,0 +1 @@
]8;;\

View file

@ -0,0 +1,8 @@
BIBLATEX AND BIBER
Biber doesnt run
Biber doenst run if the (fedora) package  libxcrypt-compat  is missing.
It will fail with the error message
biber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory]8;;\

View file

@ -0,0 +1,11 @@
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 doesnt
rasterize and scales down the pdf files.
gs -dNOPAUSE -sDEVICE=pdfwrite \
 -sOUTPUTFILE=output.pdf \
 -dBATCH 1.pdf 2.pdf]8;;\

107
public_ansi/rsync-android Normal file
View file

@ -0,0 +1,107 @@
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 Android
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).
ifconfig
Warning: 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.
whoami
u0_a700
Set a password for this user.
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 .
ssh <username>@<ip_address> -p 8022
SYNCRONISING FILES WITH RSYNC
Install  rsync  on Termux and Linux. Make sure to keep your own openssl
config.
pkg install rsync
Now 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
Refreshing the Android MediaStore
Android uses a Database to store files. In order to play your music,
this database needs to be refreshed. This can be achieved by a reboot or
by using adb to manually refresh it.
sudo dnf install adb
Connect the Android device via USB and see if it is listed.
adb devices
If it is, restart adb in TCP mode with port 5555
adb tcpip 5555
Connect to the device using its .
adb connect <ip_address>
Refresh MediaStore.
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN -d file:///data/data/com.termux/files/home/storage/music/]8;;\

View file

@ -50,6 +50,9 @@
</ul> </ul>
</nav> </nav>
<article> <article>
<p><a
href="https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html">Rsync
Android</a></p>
<h2 id="stuff">Stuff</h2> <h2 id="stuff">Stuff</h2>
<p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><munderover><mo></mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>k</mi></munderover><mi>i</mi><mo>=</mo><mfrac><mrow><mi>k</mi><mo stretchy="false" form="prefix">(</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo stretchy="false" form="postfix">)</mo></mrow><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex"> \sum_{i=1}^k i = \frac{k(k+1)}{2} </annotation></semantics></math></p> <p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><munderover><mo></mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>k</mi></munderover><mi>i</mi><mo>=</mo><mfrac><mrow><mi>k</mi><mo stretchy="false" form="prefix">(</mo><mi>k</mi><mo>+</mo><mn>1</mn><mo stretchy="false" form="postfix">)</mo></mrow><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex"> \sum_{i=1}^k i = \frac{k(k+1)}{2} </annotation></semantics></math></p>
</article> </article>

Binary file not shown.

Binary file not shown.