90s-style #1
16 changed files with 291 additions and 7 deletions
26
Makefile
26
Makefile
|
|
@ -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
5
about
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
[22m[23m[36m[49m[4m[29m]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html\Rsync Android[0m]8;;\
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mStuff[0m
|
||||||
|
|
||||||
|
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$[0m]8;;\
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
2
about.md
2
about.md
|
|
@ -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
8
articles/latex-endeavors
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[1m[23m[39m[49m[24m[29mBIBLATEX AND BIBER[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mBiber doesn’t run[0m
|
||||||
|
|
||||||
|
Biber doens’t run if the (fedora) package [22m[23m[31m[47m[24m[29m libxcrypt-compat [0m is missing.
|
||||||
|
It will fail with the error message
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mbiber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory[0m]8;;\
|
||||||
11
articles/random-linux-utils
Normal file
11
articles/random-linux-utils
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[1m[23m[39m[49m[24m[29mMERGE PDFS[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mUsing Ghostscript[0m
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mgs[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-dNOPAUSE[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-sDEVICE[0m[22;23;24m[90;22;23;24m=[0m[22;23;24m[0m[22;23;24mpdfwrite [0m[22;23;24m[31;22;23;24m\[0m[22;23;24m
|
||||||
|
[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-sOUTPUTFILE[0m[22;23;24m[90;22;23;24m=[0m[22;23;24m[0m[22;23;24moutput.pdf [0m[22;23;24m[31;22;23;24m\[0m[22;23;24m
|
||||||
|
[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-dBATCH[0m[22;23;24m[0m[22;23;24m 1.pdf 2.pdf[0m[22;23;24m[0m[0m]8;;\
|
||||||
107
articles/rsync-android
Normal file
107
articles/rsync-android
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
[1m[23m[39m[49m[24m[29mSETUP TERMUX[0m
|
||||||
|
|
||||||
|
Install Termux using F-Droid.
|
||||||
|
|
||||||
|
Update software repos.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mpkg[0m[22;23;24m[0m[22;23;24m update[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Grant file access permissions using.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mtermux-setup-storage[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mESTABLISHING AN SSH CONNECTION[0m
|
||||||
|
|
||||||
|
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 [22m[23m[31m[47m[24m[29m rsync [0m or [22m[23m[31m[47m[24m[29m ssh [0m.
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mConfiguring Android[0m
|
||||||
|
|
||||||
|
Install the openssh server on Termux.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mpkg[0m[22;23;24m[0m[22;23;24m install openssh[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Start the ssh server daemon.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24msshd[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Get the ip address of the Android machine (in the Hotspot).
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mifconfig[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mWarning: cannot open /proc/net/dev (Permission denied). Limited output.[0m
|
||||||
|
[22m[23m[31m[49m[24m[29mlo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m inet 127.0.0.1 netmask 255.0.0.0[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)[0m
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mrmnet0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1280[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m inet 10.200.157.166 netmask 255.255.255.0 destination 10.200.157.166[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)[0m
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mwlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m inet 10.42.0.200 netmask 255.255.255.0 broadcast 10.42.0.210[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)[0m
|
||||||
|
|
||||||
|
In this case 10.42.0.200.
|
||||||
|
|
||||||
|
The ssh server should now be running and listening on port 8022. You can
|
||||||
|
check by running
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mnmap[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-Pn[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24mip_address[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
For me [22m[23m[31m[47m[24m[29m <ip_address> [0m whould be 10.42.0.200.
|
||||||
|
|
||||||
|
Get the username.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mwhoami[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mu0_a700[0m
|
||||||
|
|
||||||
|
Set a password for this user.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mpasswd[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mConnecting to Android via ssh[0m
|
||||||
|
|
||||||
|
Make sure you have an ssh key pair on the Linux system. If not generate
|
||||||
|
one using [22m[23m[31m[47m[24m[29m ssh-keygen [0m.
|
||||||
|
|
||||||
|
Now connect to Android by [22m[23m[31m[47m[24m[29m ssh [0m.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mssh[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24musername[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m[22;23;24m@[0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24mip_address[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m[22;23;24m -p 8022[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mSYNCRONISING FILES WITH RSYNC[0m
|
||||||
|
|
||||||
|
Install [22m[23m[31m[47m[24m[29m rsync [0m on Termux and Linux. Make sure to keep your own openssl
|
||||||
|
config.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mpkg[0m[22;23;24m[0m[22;23;24m install rsync[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Now on your Linux machine, syncronise your Music library with rsync.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mrsync[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-av[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-e[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[36;22;23;24m"ssh -p 8022"[0m[22;23;24m[0m[22;23;24m ~/Music [0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24musername[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m[22;23;24m@[0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24mip_address[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m[22;23;24m:/data/data/com.termux/files/home/storage/music[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mRefreshing the Android MediaStore[0m
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24msudo[0m[22;23;24m[0m[22;23;24m dnf install adb[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Connect the Android device via USB and see if it is listed.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24madb[0m[22;23;24m[0m[22;23;24m devices[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
If it is, restart adb in TCP mode with port 5555
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24madb[0m[22;23;24m[0m[22;23;24m tcpip 5555[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Connect to the device using its .
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24madb[0m[22;23;24m[0m[22;23;24m connect [0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24mip_address[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Refresh MediaStore.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24madb[0m[22;23;24m[0m[22;23;24m shell am broadcast [0m[22;23;24m[33;22;23;24m-a[0m[22;23;24m[0m[22;23;24m android.intent.action.MEDIA_SCANNER_SCAN [0m[22;23;24m[33;22;23;24m-d[0m[22;23;24m[0m[22;23;24m file:///data/data/com.termux/files/home/storage/music/[0m[22;23;24m[0m[0m]8;;\
|
||||||
1
index
Normal file
1
index
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
[0m]8;;\
|
||||||
5
public_ansi/about
Normal file
5
public_ansi/about
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
[22m[23m[36m[49m[4m[29m]8;;https://nevereverever.de/eh/eh/eh/eh-eh/rsync-android.html\Rsync Android[0m]8;;\
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mStuff[0m
|
||||||
|
|
||||||
|
$$ \sum_{i=1}^k i = \frac{k(k+1)}{2} $$[0m]8;;\
|
||||||
1
public_ansi/index
Normal file
1
public_ansi/index
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
[0m]8;;\
|
||||||
8
public_ansi/latex-endeavors
Normal file
8
public_ansi/latex-endeavors
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[1m[23m[39m[49m[24m[29mBIBLATEX AND BIBER[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mBiber doesn’t run[0m
|
||||||
|
|
||||||
|
Biber doens’t run if the (fedora) package [22m[23m[31m[47m[24m[29m libxcrypt-compat [0m is missing.
|
||||||
|
It will fail with the error message
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mbiber: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory[0m]8;;\
|
||||||
11
public_ansi/random-linux-utils
Normal file
11
public_ansi/random-linux-utils
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[1m[23m[39m[49m[24m[29mMERGE PDFS[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mUsing Ghostscript[0m
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mgs[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-dNOPAUSE[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-sDEVICE[0m[22;23;24m[90;22;23;24m=[0m[22;23;24m[0m[22;23;24mpdfwrite [0m[22;23;24m[31;22;23;24m\[0m[22;23;24m
|
||||||
|
[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-sOUTPUTFILE[0m[22;23;24m[90;22;23;24m=[0m[22;23;24m[0m[22;23;24moutput.pdf [0m[22;23;24m[31;22;23;24m\[0m[22;23;24m
|
||||||
|
[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-dBATCH[0m[22;23;24m[0m[22;23;24m 1.pdf 2.pdf[0m[22;23;24m[0m[0m]8;;\
|
||||||
107
public_ansi/rsync-android
Normal file
107
public_ansi/rsync-android
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
[1m[23m[39m[49m[24m[29mSETUP TERMUX[0m
|
||||||
|
|
||||||
|
Install Termux using F-Droid.
|
||||||
|
|
||||||
|
Update software repos.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mpkg[0m[22;23;24m[0m[22;23;24m update[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Grant file access permissions using.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mtermux-setup-storage[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mESTABLISHING AN SSH CONNECTION[0m
|
||||||
|
|
||||||
|
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 [22m[23m[31m[47m[24m[29m rsync [0m or [22m[23m[31m[47m[24m[29m ssh [0m.
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mConfiguring Android[0m
|
||||||
|
|
||||||
|
Install the openssh server on Termux.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mpkg[0m[22;23;24m[0m[22;23;24m install openssh[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Start the ssh server daemon.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24msshd[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Get the ip address of the Android machine (in the Hotspot).
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mifconfig[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mWarning: cannot open /proc/net/dev (Permission denied). Limited output.[0m
|
||||||
|
[22m[23m[31m[49m[24m[29mlo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m inet 127.0.0.1 netmask 255.0.0.0[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)[0m
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mrmnet0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1280[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m inet 10.200.157.166 netmask 255.255.255.0 destination 10.200.157.166[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)[0m
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mwlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m inet 10.42.0.200 netmask 255.255.255.0 broadcast 10.42.0.210[0m
|
||||||
|
[22m[23m[31m[49m[24m[29m unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)[0m
|
||||||
|
|
||||||
|
In this case 10.42.0.200.
|
||||||
|
|
||||||
|
The ssh server should now be running and listening on port 8022. You can
|
||||||
|
check by running
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mnmap[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-Pn[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24mip_address[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
For me [22m[23m[31m[47m[24m[29m <ip_address> [0m whould be 10.42.0.200.
|
||||||
|
|
||||||
|
Get the username.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mwhoami[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[22m[23m[31m[49m[24m[29mu0_a700[0m
|
||||||
|
|
||||||
|
Set a password for this user.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mpasswd[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mConnecting to Android via ssh[0m
|
||||||
|
|
||||||
|
Make sure you have an ssh key pair on the Linux system. If not generate
|
||||||
|
one using [22m[23m[31m[47m[24m[29m ssh-keygen [0m.
|
||||||
|
|
||||||
|
Now connect to Android by [22m[23m[31m[47m[24m[29m ssh [0m.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mssh[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24musername[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m[22;23;24m@[0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24mip_address[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m[22;23;24m -p 8022[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mSYNCRONISING FILES WITH RSYNC[0m
|
||||||
|
|
||||||
|
Install [22m[23m[31m[47m[24m[29m rsync [0m on Termux and Linux. Make sure to keep your own openssl
|
||||||
|
config.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24mpkg[0m[22;23;24m[0m[22;23;24m install rsync[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Now on your Linux machine, syncronise your Music library with rsync.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24mrsync[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-av[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[33;22;23;24m-e[0m[22;23;24m[0m[22;23;24m [0m[22;23;24m[36;22;23;24m"ssh -p 8022"[0m[22;23;24m[0m[22;23;24m ~/Music [0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24musername[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m[22;23;24m@[0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24mip_address[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m[22;23;24m:/data/data/com.termux/files/home/storage/music[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
[1m[23m[39m[49m[24m[29mRefreshing the Android MediaStore[0m
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[34;22;23;24msudo[0m[22;23;24m[0m[22;23;24m dnf install adb[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Connect the Android device via USB and see if it is listed.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24madb[0m[22;23;24m[0m[22;23;24m devices[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
If it is, restart adb in TCP mode with port 5555
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24madb[0m[22;23;24m[0m[22;23;24m tcpip 5555[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Connect to the device using its .
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24madb[0m[22;23;24m[0m[22;23;24m connect [0m[22;23;24m[90;22;23;24m<[0m[22;23;24m[0m[22;23;24mip_address[0m[22;23;24m[90;22;23;24m>[0m[22;23;24m[0m
|
||||||
|
|
||||||
|
Refresh MediaStore.
|
||||||
|
|
||||||
|
[0m[0m[22;23;24m[0m[22;23;24madb[0m[22;23;24m[0m[22;23;24m shell am broadcast [0m[22;23;24m[33;22;23;24m-a[0m[22;23;24m[0m[22;23;24m android.intent.action.MEDIA_SCANNER_SCAN [0m[22;23;24m[33;22;23;24m-d[0m[22;23;24m[0m[22;23;24m file:///data/data/com.termux/files/home/storage/music/[0m[22;23;24m[0m[0m]8;;\
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
BIN
public_html/eh/eh/eh/eh-eh/images/shark-top-small.xcf
Normal file
BIN
public_html/eh/eh/eh/eh-eh/images/shark-top-small.xcf
Normal file
Binary file not shown.
BIN
public_html/eh/eh/eh/eh-eh/images/shark_top.xcf
Normal file
BIN
public_html/eh/eh/eh/eh-eh/images/shark_top.xcf
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue