Run Waydroid in fullscreen on Linux Mint with Gnome

Waydroid looked like excellent option to run Android apps on my Lenovo X240 running Linux Mint.

Because Waydroid is reliant on Wayland you need to use either KDE, Gnome or Sway Desktop Environment.

I am running Gnome and Waydroid works perfectly, but I wanted it to run in fullscreen. Unfortunately Waydroid key mapping is conflicting with Gnome F11 key to go fullscreen, so first thing you need to do is to re-map Gnome fullscreen key to something like Shift+F11 which can easily be done with gnome tweaks.

But once you get your Android app to run “fullscreen” you will notice that actual size of the drawn surface is still the one window started with:

erol@x240mint:~$ sudo waydroid shell wm size 
Physical size: 1366x697

I wanted it shown in 1368×768 which is my native display resolution. To do this open terminal while Waydroid is running and do the following:

erol@x240mint:~$ waydroid prop set persist.waydroid.width 1366
erol@x240mint:~$ waydroid prop set persist.waydroid.height 768
erol@x240mint:~$ waydroid session stop

Now next time you run your Android app it is going to be rendered in native resolution.

erol@x240mint:~$ sudo waydroid shell wm size 
Physical size: 1366x768

Upgrade flaresolverr docker container

Today I noticed CAPTCHA was not getting resolved in Jackett but without obvious reason. I thought that flaresolverr rlease I was using was outdated so I wanted to try to update it to latest one. First I have checked what I have running:

# docker ps
CONTAINER ID   IMAGE          COMMAND                  CREATED        STATUS        PORTS                    NAMES
f144c092302c   a88ebf3195a5   "/usr/bin/dumb-init …"   4 months ago   Up 10 hours   0.0.0.0:8191->8191/tcp   flaresolverr

Pulled new image:

docker image pull ghcr.io/flaresolverr/flaresolverr:latest

Checked if the images are there:

# docker images
REPOSITORY                          TAG       IMAGE ID       CREATED        SIZE
ghcr.io/flaresolverr/flaresolverr   latest    5d07ec0ae1eb   4 weeks ago    574MB
ghcr.io/flaresolverr/flaresolverr   <none>    a88ebf3195a5   4 months ago   569MB

Stop and delete the container:

docker stop f144c092302c
docker rm f144c092302c

Once container has been stopped and deleted. I have started a new instance:

docker run -d   --name=flaresolverr   -p 8191:8191   -e LOG_LEVEL=info   --restart unless-stopped   ghcr.io/flaresolverr/flaresolverr:latest

Check if new container is running:

# docker ps
CONTAINER ID   IMAGE                                      COMMAND                  CREATED         STATUS        PORTS                              NAMES
e8ec7ca07cf3   ghcr.io/flaresolverr/flaresolverr:latest   "/usr/bin/dumb-init …"   3 seconds ago   Up 1 second   0.0.0.0:8191->8191/tcp, 8192/tcp   flaresolverr

Cleanup of the unused image:

# docker images
REPOSITORY                          TAG       IMAGE ID       CREATED        SIZE
ghcr.io/flaresolverr/flaresolverr   latest    5d07ec0ae1eb   4 weeks ago    574MB
ghcr.io/flaresolverr/flaresolverr   <none>    a88ebf3195a5   4 months ago   569MB

# docker image rm a88ebf3195a5

# docker images
REPOSITORY                          TAG       IMAGE ID       CREATED       SIZE
ghcr.io/flaresolverr/flaresolverr   latest    5d07ec0ae1eb   4 weeks ago   574MB

Midnight commander mc not showing in default colors in GNU screen

If you are using GNU screen and you notice that while MC is showing in default blue color for root but not for the user the easy fix would be to try this:

TERMCAP='' /usr/bin/mc --skin=default

If this works for you and mc is showing in color then you can setup an alias in your .bashrc like:

alias mc='TERMCAP="" /usr/bin/mc --skin=default'

do the reload of .bashrc with:

source .bashrc

Then the next time you run mc from with your user it should be displayed in default color instead of black and white.

PHPMailer plugin in Organizr is not working

Even if you disabled TLS in the Organizr configuration page, if your mail server advertises that it supports TLS PHPMailer will try to use it, which will fail.

In order to resolve this edit file api/plugins/php-mailer.php and add after line 127 following:

$mail->SMTPAutoTLS = false;

Now sending emails should work without TLS usage.