From 0c6db1064a33fc1edb07a970d3fd687db184ff47 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 7 Dec 2024 10:52:28 +0100 Subject: [PATCH] adds draft page and posts (pixel, disksize vm, libretranslate) --- content/notes/google-pixel/index.md | 50 ++++++++++++++ .../72-increase-disksize-of-a-vm/index.md | 40 ++++++++++++ .../2024/73-install-libretranslate/index.md | 65 +++++++++++++++++++ 3 files changed, 155 insertions(+) create mode 100644 content/notes/google-pixel/index.md create mode 100644 content/posts/2024/72-increase-disksize-of-a-vm/index.md create mode 100644 content/posts/2024/73-install-libretranslate/index.md diff --git a/content/notes/google-pixel/index.md b/content/notes/google-pixel/index.md new file mode 100644 index 0000000..9d9c234 --- /dev/null +++ b/content/notes/google-pixel/index.md @@ -0,0 +1,50 @@ +--- +title: Google Pixel +date: 2024-12-01T16:47:49+0100 +lastmod: 2024-12-07T09:52:28+0000 +tags: + - draft_post + +#showDate: false +showReadingTime: false +showWordCount: false +showPagination: false +#showAuthor: false +showBreadcrumbs: true + +feed_exclude: true +# site_exclude: true + +draft: true +--- + +Howdy, thanks for stopping by. + +## A quick note, not sure where to file that for now... + +> Thanks for sharing your experience using GrapheneOS like a normie would use a +> Pixel (or any Android phone). The comparison is interesting. Where did you find +> Device Health Services ? I wasn't able to find it on my device. While I +> understand the point of testing usability with popular proprietary services it +> would be nice having your thought on some open source alternatives. I would +> suggest you to run these for maybe a week and write an update on this setup +> with more privacy in mind using them and seeing the impact on usability. +> +> GBoard -> OpenBoard (or FlorisBoard but in beta) +> Messages -> QKSMS (or Simple SMS Messenger or GOS stock app) +> Phone -> Koler (or Simple Dialer or GOS stock app) +> Clock -> Stock GOS app (or Simple Clock) +> Contacts -> Simple Contacts (or stock GOS app or Connect You) +> Files -> Stock GOS Files (or Material Files or Simple File Manager) +> Photos -> Simple Gallery (or Aves) +> GMail -> Honestly idk what to recommend, a GMail account on FairEmail or K-9 (soon Thunderbird Mobile) or a complete alternative such as Proton Mail or TutaNota +> Camera -> Stock GOS Camera (everyone knows you won't get as good results compared to the Google Camera) +> +> There is plenty more open source alternatives but I wrote the "big names" +> because most people will use these and not another app with 80 stars on GitHub +> (even there is great "competitor") + +Found [on reddit](https://www.reddit.com/r/GrapheneOS/comments/12wzowt/comment/jhhtpw7/) + +This is basically my journey from iPhone 14 Pro(iOS) to Pixel 9 Pro (GrapheneOS). +Sounds like a plan. diff --git a/content/posts/2024/72-increase-disksize-of-a-vm/index.md b/content/posts/2024/72-increase-disksize-of-a-vm/index.md new file mode 100644 index 0000000..34fdb97 --- /dev/null +++ b/content/posts/2024/72-increase-disksize-of-a-vm/index.md @@ -0,0 +1,40 @@ +--- +title: 72 increase disksize of a vm +summary: +date: 2024-12-05T22:11:24+01:00 +lastmod: 2024-12-07T09:52:28+0000 +categories: + - amateur-radio + - computerstuff +tags: + - draft_post + +# showBreadcrumbs: true +# showDate: false +# showReadingTime: false +# showWordCount: false +# showPagination: false + +# feed_exclude: true +# site_exclude: true + +# some help +# +# highlighting with highlights +# +# use table, as inline creates a padding around +# and it pushes the text more to the right side (end of screen) +# +# ~~~html {linenos=table,hl_lines="3-6"} +# ~~~html {linenos=inline,hl_lines="1,3-6"} + +draft: true +--- + +- shutdown VM +- `qemu-img info -f raw vdisk1.img` +- `qemu-img resize -f raw vdisk1.img +40G` +- start Vm and login in terminal +- `sudo parted /dev/vda resizepart 2 100%` +- `sudo btrfs filesystem resize max /` +- reboot diff --git a/content/posts/2024/73-install-libretranslate/index.md b/content/posts/2024/73-install-libretranslate/index.md new file mode 100644 index 0000000..bbc6e0b --- /dev/null +++ b/content/posts/2024/73-install-libretranslate/index.md @@ -0,0 +1,65 @@ +--- +title: 73 install libretranslate +summary: +date: 2024-12-07T07:22:28+01:00 +lastmod: 2024-12-07T09:52:28+0000 +categories: + - amateur-radio + - computerstuff +tags: + - draft_post + +# showBreadcrumbs: true +# showDate: false +# showReadingTime: false +# showWordCount: false +# showPagination: false + +# feed_exclude: true +# site_exclude: true + +# some help +# +# highlighting with highlights +# +# use table, as inline creates a padding around +# and it pushes the text more to the right side (end of screen) +# +# ~~~html {linenos=table,hl_lines="3-6"} +# ~~~html {linenos=inline,hl_lines="1,3-6"} + +draft: true +--- + +upgraded VM to 4 cores and 8GB RAM + +(also had to increase /tmp folder for pip installation of libretranslate: + +tmpfs /tmp tmpfs size=6G,nr_inodes=10k 0 0) + +sudo useradd --create-home --home-dir /var/lib/libretranslate libretranslate + +paru -S python-libretranslate-git cmake + +sudo su - libretranslate + +python -m venv venv + +source venv/bin/activate + +pip3 install --prefer-binary libretranslate + +argospm update + +for lang in $(argospm search | grep -E "^translate-.._en.*"| awk '{ print $2 }' | xargs); do echo argospm install translate-${lang}\_en; done + +(remove echo from command to finally execute; the command shows a list of install commands) + +now edit mastodon conf to use libretranslate + +cd /var/lib/mastodon + +add to .env.production + +ALLOWED_PRIVATE_ADDRESSES=127.0.0.1 +LIBRE_TRANSLATE_ENDPOINT=http://127.0.0.1:5000