How to stop terminal from handling `Super+.`
ProblemI have Super+. mapped to Switch to workspace on the right in gnome settings keyboard shortcuts. It works everywhere except when focus is on the termin...
View ArticleWhat is the most accurate CLOC (count lines of code) program?
I searched for "what is the most accurate lines of code counter linux", but didn't get relevant results. This tcount CLOC project says that it's so...
View ArticleSecondary internal disk is mounted as an external disk
I just installed an SSD into my motherboard's third M.2 slot. After I booted up the computer, the secondary disk is now displayed like an externally connected one. There's an icon for it on the ...
View ArticleWhat desktop environment am I running?
I'm a complete beginner, and just installed Linux for the first time. I chose a popular distribution, but I've run into some issues, or have a few questions. However, I don't know if I have Gnom...
View ArticleFind path to an executable
How to find the exact path to an executable file present in your PATH. I.e. commands you can call by just their names.E.g. what executable gets called when I type fin...
View ArticleCommand to show GPU model
Looking for a command to show the model(s) of the system's GPU(s). It doesn't matter if it shows other related info too, as long as the model doesn't get buried.
View ArticleDuplicated instance of VSCodium in Awesome WM with Tyrannical
I'm using Awesome WM (v4.3) with the Tyrannical plugin on Debian 12 and I observe an unexpected behavior of...
View ArticleHow to move a BTRFS filesystem to another drive?
How to migrate a single device BTRFS filesystem to a new drive? I don't want to send individual subvolumes, but instead the entire filesystem with its subvolume layout intact. Changing the files...
View ArticleHow to use several keyboard layouts with Awesome WM?
I can't set two keyboard layouts with Awesome WM (v4.3) on Debian 12.Using the following configuration (in rc.lua config file of Awesom...
View ArticleSupervisor: display, prefix and color output from child programs
I want to run programs foo and bar with supervisord. Both programs produce a continuous stream of occasional output (stdout and stderr) as they run.When I run ...
View ArticleVulkan errors from headless chromium
Headless chromium gives me many errors:$ chromium codidact.com --headless [0914/093555.796025:ERROR:angle_platform_impl.cc(44)] Display.cpp:1086 (initialize): ANGLE Display::in...
View ArticleHow to switch between keyboard layouts with a keyboard shortcut in Awesome WM?
ContextI can't switch between keyboard layouts with Alt+CapsLock with Awesome WM (v4.3) on Debian 12.I would like to use a French layout ...
View ArticleHow to automatically block IPs that try exploit URLs?
I have a static website I serve with Caddy. The Caddy is inside a container.I notice that occasionally I get malicious requests, looking at the paths requested. Some examples are: ...
View ArticleHow to get number of files in directory
How do you find out the number of files in a directory from the command line?
View ArticleHow to find big files and directories?
You've just run df -h and are shocked how little disk space you got left. You'd like to find where all the space has gone.How to find big(est) files and directories on your...
View ArticleHow can I use Remote Desktop to connect to a sleeping Ubuntu machine and wake...
I have a laptop running Ubuntu 24.04.1 LTS that I would like to access with Remote Desktop (or VNC)[1] from a Mac. I found the Ubu...
View ArticleGetting a Module Error When Running Pytest Even Though the Module is...
Hello everyone,I am encountering an issue when running pytest in my virtual environment. Although I have installed the required modules in my virtual environment using pip, I am still g...
View ArticleHow can I efficiently create a collage of video thumbnails on Linux?
I want to create a collage of 20 screenshots from a video, arranged in a 5x4 grid, regardless of the video’s length. How can I do this efficiently on a Linux system?Specifically, I’d li...
View ArticleHow to extract .tar.gz archive?
.tar.gz is a pretty common archive format. How to extract it's contents? "Unzipping" it in the command line.
View ArticleDisable 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 pers...
View ArticleWhat does ${2-} mean in bash?
I came across this in a bash script:excludes+=("${2-}")<...
View ArticlePartially moving /home to a new partition, leaving some content behind
I have a partition and directory structure that looks like:small partition: / usr var ... # etc. large partition: /home shared other_stuff ...
View ArticleHow does the OOM Killer stop its victim process?
Suppose the machine is short on memory and the OOM Killer has selected a target process to shut down ...
View ArticleHow do I solve the error 'Dependencies installation failed'?
How do I solve the error 'Dependencies installation failed' when installing a program using an installer in Bottles?I'm using Bottles 51.15.
View ArticleIf I have /home on a separate partition, how can I move it back to the root...
Some Linux users prefer to have /home mounted on a separate partition from the filesystem root, while others prefer a unified partition. I can find plenty of tutorials out there for...
View ArticleHow to identify which Docker container an overlay is for?
Docker stores data under directories like /var/lib/docker/overlay2/xyz123. These sometimes grow very large, and Docker does not provide good instructions for how to easily manage th...
View ArticleHow to enable SysRq key?
I want my SysRq key to be fully functional.When I look in sudo sysctl -a I see kernel.sysrq = 1 in the output. This tells me it should be working.To t...
View ArticleVanishing menus in KDE core components
Some context menus in my KDE installation show the following problem:When the menu is opened it shows normally.
View Articlehow to use %F in a file URI in a .desktop file
I'm trying to create a .desktop file which opens a file, either inside a Vim server named "VIM" if that server exists, or otherwise using the normal Vim .desktop file. My .desktop file is below...
View ArticleHow to determine compute module model over rpiBoot
Hi, i need to setup a script to validate the raspberry hardware connected to a desktop PC, and im not sure how to go about it.We are in an environment where we need to flash an OS + som...
View ArticleRunning an executable through a symlink, at the target's location
I have this test setup:$ cat first #!./second one two three $ cat second #!/usr/bin/env python import sys for line in open(sys.argv[1]): print(line, end='')
View ArticleHow to convert a markdown file to PDF?
How to convert a markdown file to PDF? The final PDF output should represent the rendered markdown file. Bonus points if the method also preserves colored emojis.Both CLI and GUI soluti...
View ArticleWhere did xterm's ctrl-middle-mouse-button menu go?
I'm using xterm version 395-1, on Arch Linux, with i3 window manager. I like xterm because it's fast, and I can configure things like "what characters are in a word when you double click on a wo...
View Articlestrongswan can't find "trusted RSA public key"
I am trying to connect to a VPN server (that I don't control) using IKEv2 and strongswan. The connection fails with [IKE] no trusted RSA public key found for 'xxx.xxx.xxx....
View Articlehow to create a clickable link to an executable in the terminal
My goal is to create a clickable link in the terminal that opens an executable. I'm trying to do this using thefile: URI. For example, I want to open Blender whose executable is
View Articleclick and open a URI link from a terminal in Docker
I am using Docker on Windows (from Powershell) to run a container that runs Rocky Linux. I can run GUI applications (e.g., xeyes) from the container by running VcXsrv on Windows, an...
View ArticleHow can I simply persist functions written in the current terminal session...
Suppose I write a Bash function at the command line:$ hello-world() { echo "Hello, world!"; }and I revise (perhaps hitting up-arrow to retrieve it from comma...
View ArticleCheck if piped-in process is blocked on input
Suppose I am the author of a shell utility called bar. One common use case is in pipelines like foo | bar, where foo sometimes runs interactively. I want t...
View ArticleHow to connect to Zigbee devices?
I think I finally found a topic the Arch wiki doesn't cover :)I have a Zigbee USB dongle and some Zigbee-capable wireless devices. The dongle is supposed to create a network to which th...
View ArticleHow to reset time in Ubuntu after replacing CMOS battery?
How to reset time in Ubuntu after replacing CMOS battery?
View ArticleWhy does nvidia CTK config need to be manually generated at each boot?
For certain GPU-accelerated tasks, such as Docker containers using GPU, I need to run the following on every boot:sudo nvidia-ctk cdi generate --output /var/run/cdi/nvidia.yaml ...
View ArticleDolphin Flatpak is not displaying the Aspect Ratio of video files
Hello everyone 👋The problemI have ~200 video files (.MP4) that I would like to organise based on their dimensions.However, the Dolphin File Manager (that I installed...
View ArticleHow to increase the volume for all audio streams >100%?
RationaleOccasionally, audio from a very useful proprietary application is too quiet to be audible. This is impossible to remediate at the application level because: ...
View ArticleHow do I enable audio access for Flatpak applications?
I'm trying to make OpenRGB display a light show based on the music playing, however, audio device selection is unavailable in the application, and upon checking its permissions with flatpa...
View ArticleUnderstanding semicolons in Bash functions
I know I can write a function at a Bash command line like so:$ test() { echo 'test' ; }I also found that I can write the } on a separate line, a...
View ArticleLatin American keyboard layout on IBus for Debian Bullseye doesn't work;...
The following question was asked by SE user RAKK. The original source can be found
View ArticleHow to get the kernel version?
How to get the version of the currently running Linux kernel?I'm looking for a commandline solution, but feel free to post GUI solutions as well.
View ArticleOpen Konsole as new tab
I want to issue a command[1] to open a certain folder in a new tab of the currently running Konsole instance (if any).Ther...
View Articlehow to use chromium's --proxy-server option
I'm trying to use a proxy server with chromium but I can't get it to work. I'm using Arch Linux. Here are the steps I'm following:I find a proxy in the UK on the
View ArticleWhy is my Firefox window appearing underneath the application sidebar after...
After running software updates on Ubuntu 22.04.05, my Firefox (137.0) window is suddenly behaving strangely; after I lock and unlock my computer, the window for some reason appears behind my app...
View Article