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.

Manually add files and folders to ownCloud

There are many ways to add files to your ownCloud:

  • FTP Upload
  • SCP Upload
  • Local disk to ownCloud disk transfer
  • USB disk to ownCloud disk transfer.

But it can be pretty slow and painful process if you are adding large number of files.

Easier way is to copy the files directly to your ownCloud data directory and scan them in order to be properly added and indexed by ownCloud.

First in order to do that you need to find the “occ” command which is usually found in the root of your owncloud web directory for example /www/owncloud/occ.

Then you copy your files and folders to the data directory where your personal files are located, it could be something like /owncloud/[USERNAME]/files/.

When your files are in the new location then you need to start the scan:

sudo -u www-data php /var/www/owncloud/occ files:scan --all

Depending on the amount of files you are adding this can take some time, and will print out the results when finished.

That’s it your files and folders are now manually added to your ownCloud.

Use wget to download entire web site for local browsing

wget \
     --recursive \
     --no-clobber \
     --page-requisites \
     --html-extension \
     --convert-links \
     --restrict-file-names=windows \
     --domains www.ffd2.com \
     --no-parent \
         http://www.ffd2.com/fridge/chacking/

This command downloads the web site http://www.ffd2.com/fridge/chacking/.

The options are:

  • –recursive: download the entire Web site.
  • –domains www.ffd2.com: don’t follow links outside www.ffd2.com.
  • –no-parent: don’t follow links outside the directory fridge/chacking/.
  • –page-requisites: get all the elements that compose the page (images, CSS and so on).
  • –html-extension: save files with the .html extension.
  • –convert-links: convert links so that they work locally, off-line.
  • –restrict-file-names=windows: modify filenames so that they will work in Windows as well.
  • –no-clobber: don’t overwrite any existing files (used in case the download is interrupted and resumed).