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 »
Q&A

General Q&A about Linux and Unix-like operating systems

Filters (None)
71%
+3 −0
Why is libvkd3d1 not upgrading on my system? (lubuntu 20.04 LTS)

Why is libvkd3d1 not upgrading on my system? (lubuntu 20.04 LTS) When I run sudo apt update, apt flags libvkd3d1 and libvkd3d1:i386 as upgradable, but sudo apt upgrade does nothing and reports tha...

1 answer  ·  posted 2y ago by Darth_Muldoon‭  ·  last activity 2y ago by Canina‭

71%
+3 −0
Treat underscores as word boundaries in terminal using vim mode

Question How do you specify underscores as Vim word boundaries when using vim mode in either bash or zsh? MWE w on this_word should place the cursor on the underscore. A second w should place th...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 7mo ago by r~~‭

71%
+3 −0
Is this a robust way to distinguish explicitly installed packages from those pulled in as dependencies?

When exploring the commands from this answer to my previous question, I found that the ist of packages includes a lot that were automatically installed due to dependencies. Obviously I'm interested...

1 answer  ·  posted 3y ago by celtschk‭  ·  last activity 3y ago by Peter Taylor‭

71%
+3 −0
Why does the file command fail to recognize non-text files as such?

POSIX defines Text file as A file that contains characters organized into zero or more lines. The lines do not contain NUL characters and none can exceed {LINE_MAX} bytes in length, inclu...

2 answers  ·  posted 3y ago by Quasímodo‭  ·  last activity 3y ago by LawrenceC‭

71%
+3 −0
What does `emerge --update --newuse --deep @world` have to do with package removal?

In Debian-based distributions, one can update the system with apt upgrade and cleanup unused dependencies with apt autoremove. Period. On Gentoo that is apparently not as straightforward. From G...

0 answers  ·  posted 2y ago by Quasímodo‭  ·  last activity 7mo ago by Mithical‭

71%
+3 −0
How to use a detected USB RNDIS gadget as network adapter

I have a RaspberyPi module, with USB connected to another module computer (as USB host) running Linux. The RasPi is configured as USB ethernet gadget. Once I boot the RasPi, and enter dmesg on th...

1 answer  ·  posted 2y ago by sktpin‭  ·  last activity 2y ago by sktpin‭

71%
+3 −0
Get current server of pacman

How do I get the URL of the remote repository that pacman uses to download packages? I know that I can tell pacman which server to use by editing /etc/pacman.d/mirrorlist. But in my case, all of t...

1 answer  ·  posted 2y ago by Matthias Braun‭  ·  edited 2y ago by Matthias Braun‭

71%
+3 −0
How to persist keyboard repeat rate and delay for external devices

Problem I want to set a global keyboard rate for both the X session and the console that persists for external keyboards, across plug-ins and removals. To my understanding, Xorg and console sett...

0 answers  ·  posted 1y ago by mcp‭  ·  edited 1y ago by Quasímodo‭

71%
+3 −0
Storage usage by media type

Question How can I view storage usage breakdown by media type? MWE Notes Commandline would be great, but open to anything.

0 answers  ·  posted 12mo ago by mcp‭  ·  last activity 10mo ago by matthewsnyder‭

71%
+3 −0
How do you troubleshoot bwrap/wine sandboxes for Windows games?

I use Wine to play Windows games. As is well known: Wine is not a sandbox Windows games are proprietary blobs and can contain malware Windows malware can potentially harm Linux through Wine ...

1 answer  ·  posted 10mo ago by matthewsnyder‭  ·  last activity 10mo ago by r~~‭

71%
+3 −0
Why do many Windows games fail when the network is sandboxed?

I run Windows games with Wine, and use bwrap to sandbox them. I've noticed that passing --unshare-net to disable the network breaks many, many games (they fail to start with no obvious error messag...

0 answers  ·  posted 10mo ago by matthewsnyder‭  ·  last activity 7mo ago by Mithical‭

71%
+3 −0
How to debug NetworkManager issue after suspend/resume in Ubuntu 22.04

****Since upgrading to Ubuntu 22.04 recently, immediately after a reboot I have WiFi to an internet hotspot as I did prior to upgrading. After suspend then resume, the network is no longer working...

2 answers  ·  posted 10mo ago by happyborg‭  ·  edited 8mo ago by happyborg‭

71%
+3 −0
Increase incorrect login attempts before locking account

When I enter the login password incorrectly 3 times, my computer locks me out from attempting a login for 10 minutes. How can I increase the number of attempts?

2 answers  ·  posted 8mo ago by matthewsnyder‭  ·  last activity 8mo ago by r~~‭

71%
+3 −0
How can I show hidden files and folders (with leading dot in name) on the desktop (actual desktop, not a window)?

I am using Linux Mint 20.3, with Cinnamon as a window manager. I have a folder named .pytest_cache on my Desktop: $ ls -1A | grep '^\.' .pytest_cache I know that if I open a Nemo window, navi...

0 answers  ·  posted 8mo ago by Karl Knechtel‭  ·  last activity 7mo ago by Mithical‭

71%
+3 −0
Internet connection and touchpad not working on Ubuntu 22.04 after a force shut down

After a force shutdown on Ubuntu 22.04, installed on a Lenovo Legion 5, the OS seems to have lost its ability to recognize the built-in touchpad or to connect to the internet. For the backstory......

1 answer  ·  posted 7mo ago by Mithical‭  ·  last activity 7mo ago by matthewsnyder‭

71%
+3 −0
How to get a new IP address from DHCP?

How do I make my computer request a new IP from DHCP? I am using Arch with NetworkManager.

1 answer  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by matthewsnyder‭

71%
+3 −0
What are the concrete security risks of forcibly terminating a process?

I'm using the Gnome System Monitor in Linux Mint. Whenever I attempt to "End" or "Kill" a process, I am given this warning via a modal dialog (emphasis mine): Killing a process may destroy data,...

1 answer  ·  posted 7mo ago by Karl Knechtel‭  ·  last activity 7mo ago by matthewsnyder‭

71%
+3 −0
How to overwrite each line of STDOUT with the next one?

I wrote a filter program to overwrite each line with the next one. $ cat /usr/local/bin/ovr #!/bin/sh sed '2,$s/^/\x1B[1A\x1B[K/'; Here's the behavior: $ echo | ovr $ echo 'foo' | ovr ...

3 answers  ·  posted 6mo ago by alx‭  ·  last activity 6mo ago by Kamil Maciorowski‭

71%
+3 −0
How to invert command exit code?

How to apply a logical not to a shell command, e.g. in a Bash script? So if the command exited with 0 (success) I would like it to be changed to a non-zero value, and if it exited with a non-zero ...

1 answer  ·  posted 5mo ago by Iizuki‭  ·  last activity 10d ago by Iizuki‭

71%
+3 −0
How to find your public IP address from command-line?

ip a command will conveniently show the addresses assigned to your network interfaces, but oftentimes this is not what the internet sees your machine as. So how to find your public IP address from...

3 answers  ·  posted 3mo ago by Iizuki‭  ·  last activity 1mo ago by Michael‭

71%
+3 −0
How do you remap mouse buttons?

How can I remap buttons on my mouse, especially for more exotic ones like MMO mice?

3 answers  ·  posted 2mo ago by matthewsnyder‭  ·  last activity 4d ago by Michael‭

71%
+3 −0
How to count the lines of a file?

How to get the number of lines in a file? I.e. for a file like this: Line one Line 2 Final line I would like to do something like this: $ count-lines /path/to/the/file/above 3

2 answers  ·  posted 1mo ago by Iizuki‭  ·  last activity 1mo ago by Michael‭

71%
+3 −0
How do I diagnose TLS errors?

For reasons of my own, I have services on my LAN which use HTTPS and I create my own certificates for these. Over the years, the usage of TLS has evolved considerably. Many features that were once...

1 answer  ·  posted 25d ago by matthewsnyder‭  ·  last activity 23d ago by Michael‭

71%
+3 −0
NetworkManager can't open certificate file when trying to connect to VPN

I want to connect to my university network via OpenVPN under Fedora GNOME. I imported the openvpn configuration provided by the university in the Network Manager GUI and specified the user certifi...

0 answers  ·  posted 22d ago by adonias‭  ·  edited 19d ago by Quasímodo‭

71%
+3 −0
What is cat abuse/useless use of cat?

Sometimes I share Unix commands online, and people chastise me for "useless use of cat" (UUOC) or "cat abuse". My cat is quite comfy and doing very well, thank you. What are they talking about?

4 answers  ·  posted 6d ago by matthewsnyder‭  ·  last activity 5h ago by catexotica‭

cli
71%
+3 −0
What are non-POSIX shells and what's the point of them?

I've been learning some Linux and I finally feel like I can find my way around the command line. But now I hear people say there are other, "non-POSIX" kinds of shell, with different semantics. Wha...

1 answer  ·  posted 6d ago by matthewsnyder‭  ·  last activity 5d ago by matthewsnyder‭

66%
+2 −0
<!nocheck> meaning in Build-Depends

Trying to understand what exactly <!nocheck> does next to a package in build-depends (for example, Perl). Debian Wiki says: Terms can be negated by using an exclamation mark as a prefix ...

0 answers  ·  posted 1y ago by nteodosio‭

66%
+2 −0
How do I use Proton without Steam?

I can easily run Windows games with wine by running: wine game.exe However, if I want to use Proton I have to run Steam, add the game as a non-Steam game, and run it that way. Since Proton is ...

1 answer  ·  posted 10mo ago by matthewsnyder‭  ·  edited 10mo ago by matthewsnyder‭

66%
+2 −0
How to install mysql-server on Debian?

With Debian 12, it seems that mysql-server is not available in the "default" package distribution and thus, cannot be installed with sudo apt install mysql-server or sudo apt-get... (I know that ma...

1 answer  ·  posted 9mo ago by zetyty‭  ·  last activity 9mo ago by matthewsnyder‭

66%
+2 −0
How do I make media keys work with PipeWire?

My keyboard has keys for mute, volume up, volume down. In i3wm, I used to have these bound with: bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +10 --max-volume 100 ...

1 answer  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 7mo ago by Mithical‭

66%
+2 −0
How is the IPv6 link-local address calculated?

I was told that an IPv6 link-local address — typically starting with fe80:: — is derived from the interface's MAC address. Here are some instruction on how to do the conversion. But the conversion...

1 answer  ·  posted 9mo ago by Matthias Braun‭  ·  last activity 9mo ago by Matthias Braun‭

66%
+4 −1
Simplest way of stripping leading/trailing whitespace from file or program output

What is the simplest shell idiom for stripping leading and trailing whitespace from a file or program output? Ideally I am looking for the equivalent of trim or strip methods in some languages. Th...

3 answers  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 8mo ago by AdminBee‭

66%
+2 −0
Getting a Module Error When Running Pytest Even Though the Module is Installed in the Current Virtual Environment

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 getting a M...

0 answers  ·  posted 9mo ago by ShadowsRanger‭  ·  edited 9mo ago by ShadowsRanger‭

66%
+2 −0
How do I set up my own DNS on my LAN, with delegation of public domains?

I want to have a local DNS server on my home LAN, say at 192.168.1.123. All of my machines will use 192.168.1.123 as their only DNS server when connected to my home network. By default, my DNS ser...

1 answer  ·  posted 8mo ago by matthewsnyder‭  ·  last activity 8mo ago by Canina‭

dns
66%
+2 −0
How to change the keyboard layout with Gnome and Arch linux?

My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language". Note that I am also open to a "working" solution on any other d...

2 answers  ·  posted 8mo ago by zetyty‭  ·  edited 8mo ago by matthewsnyder‭

66%
+2 −0
What does the "Valid" column mean in the output of "faillock"?

I was looking into unlocking my login after too many incorrect password attempts. I found this post about it. Doing faillock -user $(whoami) --reset did indeed unlock the login. However, what exac...

1 answer  ·  posted 8mo ago by matthewsnyder‭  ·  edited 8mo ago by AdminBee‭

66%
+2 −0
How to change the default app for opening directories in Gnome?

I somehow managed to unknowingly change the default app for opening directories on my laptop. E.g. when I use the option open containing folder in a program like Evince, my editor (vscode) opens u...

2 answers  ·  posted 8mo ago by mr Tsjolder‭  ·  last activity 8mo ago by matthewsnyder‭

66%
+2 −0
Highlight regions in an image with CLI

I have an image (a photo) and I want to highlight certain parts of this. I want to do this from the CLI. I am planning to store the pixel coordinates of polygon vertices in a file, and when I run ...

2 answers  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by samcarter‭

66%
+2 −0
Run a command *later*

How can I run a command later? I'm looking for a CLI way to schedule a command to be run later. I know that I could create a systemd timer, install it, activate it... That is too much work. I want...

2 answers  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by Canina‭

66%
+2 −0
Where does GtkFileChooserDialog store bookmarks?

I have some bookmarked folders in GtkFileChooserDialog. I want to add these to my dotfiles. Where are the bookmarks stored?

1 answer  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by Quasímodo‭

66%
+2 −0
Are NixOS and Guix analogous projects?

From what I can tell, both NixOS and Guix are built around a package manager which, instead of installing package into the "common environment" as is traditional, isolates them to mitigate issues a...

1 answer  ·  posted 7mo ago by matthewsnyder‭  ·  last activity 7mo ago by r~~‭

66%
+2 −0
How to see all header fields of an email in mutt?

Neomutt (and probably Mutt too, but I didn't try) seems to be hiding header fields from email, such as the Message-ID field, and fields that are added by SMTP servers when they receive the message....

1 answer  ·  posted 6mo ago by alx‭  ·  edited 6mo ago by matthewsnyder‭

66%
+2 −0
How can I get a Flatpak dependency graph?

flatpak uninstall --unused currently tells me that there is Nothing unused to uninstall. This seems wrong to me, based on the list of packages I see vs. the "root" packages I explicitly installed p...

0 answers  ·  posted 6mo ago by Karl Knechtel‭

66%
+2 −0
Higher-order functions in Bash?

Say I have some Bash function my-func, that expects a filename and does some processing on the corresponding file. For demonstration purposes, my-func() { cat "$1"; } If I want to apply that fu...

1 answer  ·  posted 6mo ago by Karl Knechtel‭  ·  last activity 6mo ago by Kamil Maciorowski‭

66%
+2 −0
Alternating 2 keyboard layouts with Key Combination

Sorry it was a typo, _ instead of -, that caused the problem. I want to have a key combination to alter the keymaps. It worked with one for us and one for hu, but now I want to use one key combina...

1 answer  ·  posted 5mo ago by Arpad Horvath‭  ·  edited 5mo ago by Arpad Horvath‭

66%
+2 −0
Run pipeline in the background from git hook

I'm trying to run a pipeline to update a PDF after every push to the 'main' branch. I want it to be atomic, so it doesn't touch the existing PDF until it has finished, so I need to use sponge(1) (...

1 answer  ·  posted 4mo ago by alx‭  ·  last activity 4mo ago by alx‭

66%
+2 −0
Modern and practical way to schedule tasks on a Linux machine that is not always on

What is a modern and practical way to handle scheduling tasks on a Linux desktop? Modern means basic features should not rely on obscure or convoluted commands and standards Practical means you...

3 answers  ·  posted 4mo ago by matthewsnyder‭  ·  edited 4mo ago by matthewsnyder‭

66%
+2 −0
Show a timestamp on the right side of prompt when executing a command in ZSH

How to configure ZSH shell to print a timestamp on the right hand side of the prompt line when executing a command? I don't want to display the time prior to executing a command. Here's about how ...

1 answer  ·  posted 3mo ago by Iizuki‭  ·  last activity 3mo ago by Iizuki‭

zsh
66%
+2 −0
Can rsync handle moves and renames?

Suppose I have a directory structure like ├── src │   ├── folder_a │   │   ├── file_w │   │   └── file_x │   ├── folder_b │   │   ├── file_y │   │   └── file_z and I back it up using rsyn...

1 answer  ·  posted 2mo ago by Karl Knechtel‭  ·  edited 2mo ago by Karl Knechtel‭

66%
+2 −0
What is synchronization in Wine?

Wine has options for "Synchronization", like "Esync" or "Fsync". What do these actually do? What is the purpose of such an option? What is the impact to normal usage of a Windows program in Wine?

1 answer  ·  posted 2mo ago by matthewsnyder‭  ·  last activity 1mo ago by matthewsnyder‭