Small Hacks

yt-dlp with default challange settings

# Install deno JS engine
curl -fsSL https://deno.land/install.sh | sh
# Make sure deno is correctly configured
deno --version
# Create yt-dlp config
mkdir -p ~/.config/yt-dlp
nano ~/.config/yt-dlp/config

Add the default options:

--remote-components ejs:github
--remote-components ejs:npm

Handle power button without GUI

File nano /etc/systemd/logind.conf, option HandlePowerKey=poweroff

Resolve perl locale warning

When locales in Debian is not configured, you get something like the following error when installing packages via apt:

apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = (unset),
        LC_NUMERIC = "de_DE.UTF-8",
        LC_COLLATE = (unset),
        LC_TIME = (unset),
        LC_MESSAGES = (unset),
        LC_MONETARY = "de_DE.UTF-8",
        LC_ADDRESS = "de_DE.UTF-8",
        LC_IDENTIFICATION = "de_DE.UTF-8",
        LC_MEASUREMENT = "de_DE.UTF-8",
        LC_PAPER = "de_DE.UTF-8",
        LC_TELEPHONE = "de_DE.UTF-8",
        LC_NAME = "de_DE.UTF-8",
        LANG = "C.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").

To solve this, execute this command:

dpkg-reconfigure locales

Select your locals and set a default. The error message should go away afterwards.

This page was last edited on 2026-11-12 10:27

Powered by Wiki|Docs

This page was last edited on 2026-11-12 10:27

Bjørn Singer
Private wiki!

Powered by Wiki|Docs