Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by GeraldS‭

26 posts
75%
+4 −0
Meta Cloudflare blocks the edit of my answer

For a couple of days now I've been trying to edit this answer to include an example that was requested in the comments. Every time I try to edit it I'm presented with this: The expanded answer ...

0 answers  ·  posted 1mo ago by GeraldS‭  ·  edited 1mo ago by ArtOfCode‭

75%
+4 −0
Q&A How to automatically block IPs that try exploit URLs?

If these requests are logged into a log file you can install fail2ban and configure it to act on these log entries. You can configure it to block the requests via the local firewall for a duration ...

posted 2mo ago by GeraldS‭  ·  edited 1mo ago by GeraldS‭

Answer
71%
+3 −0
Q&A Getting a Module Error When Running Pytest Even Though the Module is Installed in the Current Virtual Environment

As a workaround, I had to uninstall pytest from the package manager and install it in the virtual environment. However, I would prefer to use the pytest from the package manager since it makes se...

posted 1mo ago by GeraldS‭

Answer
71%
+3 −0
Q&A Get notified when there are unmerged changes from origin

You can use the pre-commit hook for this. Example .git/hooks/pre-commit: #!/usr/bin/bash git fetch if [ $(git status -sb |grep -c behind) -gt 0 ]; then echo "ERROR: local repo is beh...

posted 4mo ago by GeraldS‭  ·  edited 4mo ago by GeraldS‭

Answer
71%
+3 −0
Q&A Command to display remote certificate information

You can use openssl to get the information. It is usually installed by default in every distribution. $ openssl s_client -connect codidact.com:443 -showcerts </dev/null | openssl x509 -text de...

posted 3mo ago by GeraldS‭  ·  edited 3mo ago by GeraldS‭

Answer
71%
+3 −0
Q&A How to find big files and directories?

If you don't mind installing something I recommend ncdu. It sorts the directories and files by size, you can exclude other mounts, navigate the tree directly and even delete files and folders as yo...

posted 2mo ago by GeraldS‭  ·  edited 2mo ago by GeraldS‭

Answer
66%
+2 −0
Q&A If I have /home on a separate partition, how can I move it back to the root partition?

A general overview: Log in as root directly, no sudo or su (you may need to activate it temporarily, depending on your distribution) or boot from a live system unmount /home and mount it somewh...

posted 8d ago by GeraldS‭

Answer
66%
+2 −0
Q&A How can I efficiently create a collage of video thumbnails on Linux?

Of course, being a swiss army knife ffmpeg already has this capability builtin: ffmpeg -i Example.mp4 -vf "select=not(mod(n\,20)),scale=200:-1,tile=5x4:padding=2:color=white" -vsync 0 -frames:v 1 ...

posted 1mo ago by GeraldS‭  ·  edited 1mo ago by GeraldS‭

Answer
66%
+2 −0
Q&A How to delay systemd unit at boot/login?

You can use ExecStartPre= to delay the execution of the systemd unit. Use systemctl edit myunit.service to create a drop in file and add the following lines: [Service] ExecStartPre=/bin/sleep 30...

posted 4mo ago by GeraldS‭  ·  edited 4mo ago by GeraldS‭

Answer
66%
+2 −0
Q&A Auto-enable FN-toggling for the first N FN keys

I don't think you can. AFAIK the fn key behaviour is implemented in hardware, the OS is not aware if a key has been pressed with or without fn key. You can check for a BIOS setting, but I've never...

posted 6mo ago by GeraldS‭  ·  edited 6mo ago by GeraldS‭

Answer
66%
+2 −0
Q&A What desktop environment am I running?

Login screen Check your login screen. Login Managers often give an option to select between different desktop environments. The last used entry is usually highlighted. It is possible that your ...

posted 3mo ago by GeraldS‭  ·  edited 3mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A Secondary internal disk is mounted as an external disk

Open the Disks application. Select the secondary disk and partition, and in the gears menu click on Edit Mount Options... Uncheck User Session Defaults and uncheck Show in user interface. Opt...

posted 3mo ago by GeraldS‭  ·  edited 3mo ago by Andreas witnessed the end of the world today‭

Answer
60%
+1 −0
Q&A Vanishing menus in KDE core components

Some context menus in my KDE installation show the following problem: When the menu is opened it shows normally. But as soon as I move the cursor over the menu, it becomes transparent and whate...

1 answer  ·  posted 5d ago by GeraldS‭  ·  last activity 1d ago by GeraldS‭

Question debian qt kde
60%
+1 −0
Q&A Disable ability of users to enable lingering in systemd

Can I disable the ability of regular users to enable lingering in loginctl? By default every user on a systemd enabled Linux can run loginctl --enable-linger and have a personal systemd instance s...

1 answer  ·  posted 24d ago by GeraldS‭  ·  edited 22d ago by GeraldS‭

Question systemd logind
60%
+1 −0
Q&A How can I efficiently create a collage of video thumbnails on Linux?

bash does not support floating point operations, so at least for a short video $interval will always be 0. That way you always get the same frame, which by chance probably was black for your video....

posted 1mo ago by GeraldS‭  ·  edited 1mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A How to view a TLS certificate from the command line?

You can use openssl: openssl x509 -in server.crt -text

posted 3mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A Journalctl - how to restrict search to only certain boot IDs?

Not directly, no. The argument -b only accepts a single id and using it multiple times only results in the last one being used. You can however loop easily over the file and get the output of all ...

posted 4mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A Can you reuse your home directory while distro hopping?

Permission wise you generally shouldn't have problems. Ownership in Linux/Unix uses numerical IDs, and on every major distribution the UIDs for regular users start at 1000, meaning the first user t...

posted 5mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A Dual booting without rebooting

I don't see any way to implement this. XenDesktop would have been the closest thing I can think of, but it's been discontinued years ago, and it involved VMs, which you don't want. It mapped hardw...

posted 5mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A Adding new entries to Grub with alternate kernel parameters

On Ubuntu and Debian (and their derivates) you can use the file /etc/grub.d/40_custom which is intended exactly for this: Content of /etc/grub.d/40_custom: #!/bin/sh exec tail -n +3 $0 # This f...

posted 5mo ago by GeraldS‭  ·  edited 5mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A How to make changes to logind.conf take effect?

The unit does not support reloading, but restarting the service should do the trick. sudo systemctl restart systemd-logind

posted 6mo ago by GeraldS‭  ·  edited 6mo ago by GeraldS‭

Answer
50%
+0 −0
Q&A Download a TLS certificate from the command line

You can use openssl for that. openssl s_client -connect codidact.com:443 -showcerts </dev/null | openssl x509 > codidact.pem

posted 3mo ago by GeraldS‭

Answer
50%
+0 −0
Q&A Efficiently determining disk usage of a folder (without starting from scratch every time)

ncdu does that. from ncdu --help: -o FILE Export scanned directory to FILE -f FILE Import scanned directory from FILE You can start it with any direc...

posted 4mo ago by GeraldS‭  ·  edited 4mo ago by GeraldS‭

Answer
50%
+0 −0
Q&A Disable ability of users to enable lingering in systemd

I managed to disable the feature via polkit. To do this I created two policy files: /etc/polkit-1/localauthority/50-local.d/50-disable-linger-self.pkla [disable loginctl linger self] Identity=un...

posted 22d ago by GeraldS‭

Answer
50%
+0 −0
Q&A How to identify which Docker container an overlay is for?

You can find that when you run docker inspect $CONTAINER. You can automate this with a simple loop like this: for CONTAINER in $(docker ps -qa); do docker inspect $CONTAINER |grep -q $DIRNAME...

posted 8d ago by GeraldS‭  ·  edited 8d ago by GeraldS‭

Answer