diff --git a/articles/rsync-android.html b/articles/rsync-android.html index ab718b6..d9c9594 100644 --- a/articles/rsync-android.html +++ b/articles/rsync-android.html @@ -126,8 +126,12 @@ id="toc-connecting-to-android-via-ssh">Connecting to Android via ssh
  • Syncronising files with -rsync
  • +id="toc-syncronising-files-with-rsync">Syncronising files with rsync +
    @@ -189,6 +193,25 @@ class="sourceCode sh">
    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/
    diff --git a/articles/rsync-android.md b/articles/rsync-android.md index 073d627..97a63f4 100644 --- a/articles/rsync-android.md +++ b/articles/rsync-android.md @@ -96,3 +96,32 @@ 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 ``` + +## 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. + +```sh +sudo dnf install adb +``` + +Connect the Android device via USB and see if it is listed. +```sh +adb devices +``` + +If it is, restart adb in TCP mode with port 5555 +```sh +adb tcpip 5555 +``` + +Connect to the device using its . +```sh +adb connect +``` + +Refresh MediaStore. +```sh +adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN -d file:///data/data/com.termux/files/home/storage/music/ +``` diff --git a/images/shark-top-small.png b/images/shark-top-small.png new file mode 100644 index 0000000..56e8624 Binary files /dev/null and b/images/shark-top-small.png differ diff --git a/public_html/eh/eh/eh/eh-eh/images/shark-top-small.png b/public_html/eh/eh/eh/eh-eh/images/shark-top-small.png new file mode 100644 index 0000000..56e8624 Binary files /dev/null and b/public_html/eh/eh/eh/eh-eh/images/shark-top-small.png differ diff --git a/public_html/eh/eh/eh/eh-eh/rsync-android.html b/public_html/eh/eh/eh/eh-eh/rsync-android.html index ab718b6..d9c9594 100644 --- a/public_html/eh/eh/eh/eh-eh/rsync-android.html +++ b/public_html/eh/eh/eh/eh-eh/rsync-android.html @@ -126,8 +126,12 @@ id="toc-connecting-to-android-via-ssh">Connecting to Android via ssh
  • Syncronising files with -rsync
  • +id="toc-syncronising-files-with-rsync">Syncronising files with rsync +
    @@ -189,6 +193,25 @@ class="sourceCode sh">
    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/
    diff --git a/public_html/eh/eh/eh/eh-eh/style.css b/public_html/eh/eh/eh/eh-eh/style.css index d17ebe0..e6e14cc 100644 --- a/public_html/eh/eh/eh/eh-eh/style.css +++ b/public_html/eh/eh/eh/eh-eh/style.css @@ -62,8 +62,8 @@ body { justify-content: space-between; text-align: left; border: 4pt ridge var(--border); - background: url("images/sand.png"); - background-size: 25%; + background: url("images/shark-top-small.png"); + background-size: contain; } #page-header li { @@ -122,8 +122,8 @@ body { #page-footer { border: 4pt ridge var(--border); - background: url("images/sand.png"); - background-size: 25%; + background: url("images/shark-top-small.png"); + background-size: contain; display: flex; justify-content: center; } diff --git a/shark-top-small.png b/shark-top-small.png new file mode 100644 index 0000000..2d98d9c Binary files /dev/null and b/shark-top-small.png differ diff --git a/shark-top-small.xcf b/shark-top-small.xcf new file mode 100644 index 0000000..bd0e140 Binary files /dev/null and b/shark-top-small.xcf differ diff --git a/shark-top-smalll.xcf b/shark-top-smalll.xcf new file mode 100644 index 0000000..5339a57 Binary files /dev/null and b/shark-top-smalll.xcf differ diff --git a/shark.pdf b/shark.pdf new file mode 100644 index 0000000..1a2b4a3 Binary files /dev/null and b/shark.pdf differ diff --git a/shark_top-0.png b/shark_top-0.png new file mode 100644 index 0000000..bc7bcb3 Binary files /dev/null and b/shark_top-0.png differ diff --git a/shark_top-1.png b/shark_top-1.png new file mode 100644 index 0000000..86a16fd Binary files /dev/null and b/shark_top-1.png differ diff --git a/shark_top.xcf b/shark_top.xcf new file mode 100644 index 0000000..cbf6098 Binary files /dev/null and b/shark_top.xcf differ diff --git a/style.css b/style.css index d17ebe0..e6e14cc 100644 --- a/style.css +++ b/style.css @@ -62,8 +62,8 @@ body { justify-content: space-between; text-align: left; border: 4pt ridge var(--border); - background: url("images/sand.png"); - background-size: 25%; + background: url("images/shark-top-small.png"); + background-size: contain; } #page-header li { @@ -122,8 +122,8 @@ body { #page-footer { border: 4pt ridge var(--border); - background: url("images/sand.png"); - background-size: 25%; + background: url("images/shark-top-small.png"); + background-size: contain; display: flex; justify-content: center; }