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)
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 10mo ago by matthewsnyder‭  ·  last activity 9mo 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 10mo ago by ShadowsRanger‭  ·  edited 10mo 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 9mo ago by matthewsnyder‭  ·  last activity 9mo 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 9mo ago by zetyty‭  ·  edited 9mo 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 9mo ago by matthewsnyder‭  ·  edited 9mo 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 9mo ago by mr Tsjolder‭  ·  last activity 9mo 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 8mo ago by matthewsnyder‭  ·  last activity 8mo 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 8mo ago by matthewsnyder‭  ·  last activity 8mo 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 8mo ago by matthewsnyder‭  ·  last activity 8mo 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 8mo ago by matthewsnyder‭  ·  last activity 8mo 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 7mo ago by alx‭  ·  edited 7mo 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 7mo 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 7mo ago by Karl Knechtel‭  ·  last activity 7mo 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 6mo ago by Arpad Horvath‭  ·  edited 6mo 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 5mo ago by alx‭  ·  last activity 5mo 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 5mo ago by matthewsnyder‭  ·  edited 5mo 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 4mo ago by Iizuki‭  ·  last activity 4mo 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 3mo ago by Karl Knechtel‭  ·  edited 3mo 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 3mo ago by matthewsnyder‭  ·  last activity 2mo ago by matthewsnyder‭

66%
+2 −0
Find out which process is using a port

Sometimes your programs fail because the network port they are trying to use is already in use by some other process. How to find out what this other process is?

1 answer  ·  posted 2mo ago by Iizuki‭  ·  last activity 2mo ago by Canina‭

66%
+2 −0
How to debug audio issues with JACK on Linux

I am trying to debug an issue with audio playback in MuseScore. During this process, I realised that I had/have no clue about audio playback in Linux (or in general for that matter). I already le...

0 answers  ·  posted 2mo ago by mr Tsjolder‭  ·  edited 2mo ago by mr Tsjolder‭

66%
+2 −0
What are the %U and %u parameters in desktop files?

Desktop files always have either %u or %U as an argument for the program being launched. E.g. here's a line from my firefox.desktop: Exec=/usr/lib/firefox/firefox %u What does it mean?

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

66%
+2 −0
Solr crashes on startup with segmentation fault

I am trying to run Solr 9.5.0 on Windows Subsystem For Linux 2. It crashes with a Segmentation Fault and does not start. I can run it on Windows without an issue. Java version on WSL2: 17 Java ve...

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

66%
+2 −0
How do you generate arbitrary random numbers from /dev/random?

Suppose I want to get random numbers from /dev/random with basic CLI tools. Is there a way to do it, that's easier to type and read than python -c 'import random; print(100 + 200*random.random())'?...

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

66%
+2 −0
==> WARNING: Possibly missing firmware for module: 'foo'

When I create the initramfs, I sometimes see messages like: ==> WARNING: Possibly missing firmware for module: 'xhci_pci' I get many for different modules. What do they mean? Should I in...

1 answer  ·  posted 1mo ago by matthewsnyder‭  ·  last activity 25d ago by Iizuki‭

62%
+3 −1
init process play a role in the booting of Linux

How does the init process play a role in the booting of Linux?

1 answer  ·  posted 3mo ago by trueframe‭  ·  last activity 2mo ago by Mithical‭

62%
+3 −1
How to edit file from less

MWE touch d less d # jump to editing d without leaving less Question Is there a way to edit a file from viewing it in less? Jumping straight into Vim would be preferred, but an answer for e...

1 answer  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by celtschk‭

60%
+1 −0
Vim key bindings not working in terminal python interpreter

MWE To reproduce: Add bindkey -v to your ~/.zshrc. Invoke python interpreter: python. Type something into the prompt without hitting ENTER: this = "this" + "that". Press ESC and try any vim ...

1 answer  ·  posted 1y ago by mcp‭  ·  edited 7mo ago by mcp‭

60%
+1 −0
xrandr rotate not filling external monitor

Problem I can rotate output, but it does not fill screen. Instead it rotates in place so that the right side of the screen goes off the monitor. xrandr --output HDMI-2 --auto --mode 1920x1080 --...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by mcp‭

60%
+1 −0
How can you create a separate home partition using LVM?

I'm currently using Fedora 34 and want to install Fedora 35 while keeping around just my home folder. Currently I don't have a separate home partition, but I read online that it's easy to make one ...

1 answer  ·  posted 2y ago by true_blue‭  ·  edited 2y ago by true_blue‭

60%
+1 −0
Simplest way to change cursor to indicate vim mode

Question What is the simplest way to change the cursor to indicate vim mode when using zsh? Notes I want it to show as a vertical line in insert mode and a block in normal mode. This is the cur...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by GoldenGold‭

60%
+1 −0
Dynamic IP & lease loss - "callback" mechanism?

I'm playing with NAT, and have a script now that, at startup of my little Linux machine, creates some DNAT rules, which take one incoming special port, and forward that to another interface with a ...

1 answer  ·  posted 2y ago by CanisSomnolentus‭  ·  last activity 11mo ago by jimbobmcgee‭

60%
+1 −0
Preserve the sources extracted by dpkg-source so as to save time

It takes a long time to build even the source package for a PPA of a huge project, and while the build isn't finished my computer is under heavy load so I can barely navigate a browser. The frustra...

1 answer  ·  posted 1y ago by Quasímodo‭  ·  last activity 1y ago by Quasímodo‭

60%
+1 −0
Who creates subdirs under `/run`?

A system daemon needs to create several files under /run/program-name/ (and possibly other subdirs of that). They are the PID file, and at least one Unix socket file (but maybe more). The FHS spe...

1 answer  ·  posted 1y ago by alx‭  ·  edited 1y ago by alx‭

60%
+1 −0
Running `bashcompinit` in zsh to enable use of bash completion specifications gives "command not found"

I'd like to use the answers in this post while using zsh: compgen -c # will list all the commands you could run. compgen -a # will list all the aliases you could run. compgen -b # will list a...

0 answers  ·  posted 1y ago by mcp‭  ·  edited 1y ago by Canina‭

zsh
60%
+1 −0
how to manipulate Gnome's "Top Bar"/"Activities Bar"/"Top Panel" using GDK

I am using Linux and Gnome. Using GDK, I would like to programmatically manipulate the Top Bar (i.e., the bar at the top of the screen with "Activities", the time, etc.). Here is a picture of it: ...

1 answer  ·  posted 1y ago by Trevor‭  ·  last activity 1y ago by r~~‭

60%
+1 −0
`nmcli` missing laptop wireless device after everything work right

My device is Thinkpad E40 with openSUSE Leap 15.4. I've use this device under this OS weeks ago and didn't happen this problem. After normally running, wlan0 device not show in nmcli and my wirele...

0 answers  ·  posted 1y ago by Dead_Bush_Sanpai‭  ·  edited 1y ago by Dead_Bush_Sanpai‭

60%
+1 −0
How to reduce DPI of external monitor using xrandr

Have I have the DPI on my laptop set in .Xresources with Xft.dpi: 192. I am outputting to the external monitor with: xrandr --output HDMI-2 --auto --rotate left --right-of eDP-1 Want I want ...

0 answers  ·  posted 1y ago by mcp‭  ·  last activity 9mo ago by Mithical‭

60%
+1 −0
How to use Avro in Linux?

I am using Manjaro(Arch-based Linux). And, I had installed Avro using the following command by getting help of the documentation yay -S ibus-avro-git Avro is software using that software user w...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by deleted user

60%
+1 −0
Reducing Noise from yum-cron when repos are out of date

I have a few CentOS servers that I want to stay automatically up to date with yum-cron, and I want to get emails when there are problems but I do not want to get so many emails about repos being ou...

0 answers  ·  posted 2y ago by re89j‭  ·  edited 2y ago by Canina‭

60%
+1 −0
How do I prevent remote syslog events from printing locally?

I have a GNU/Linux host that I use to aggregate syslog events from a few switches, printers, and generally less versatile hosts on my LAN. I set up rsyslog years ago to listen on UDP:514 and save ...

1 answer  ·  posted 2y ago by re89j‭  ·  last activity 1y ago by bgstack15‭

60%
+1 −0
Trying to print with CUPS from Chromebook through Debian box to USB printer

Hi everyone, First post! I'm trying to be able to print from a client machine over my lan to an older HP Laserjet 1012 connected via USB to a Debian box. It prints fine directly. I've gone thro...

0 answers  ·  posted 2y ago by kserwick‭  ·  edited 2y ago by kserwick‭

60%
+1 −0
With a V4L2-compatible webcam, how to see its video feed for the purpose of adjusting aiming?

I have ordered (but am still waiting for it to arrive) a USB-connected webcam that is supposed to be V4L2 compatible. Once it arrives, I'm obviously going to want to mount it such that it provides...

1 answer  ·  posted 2y ago by Canina‭  ·  last activity 2y ago by Quasímodo‭

60%
+1 −0
What are IUSE flags?

Every Gentoo user knows USE flags. Occasionally I stumble upon IUSE flags, for example, man emerge mention them in the description of an option: --newuse, -N ... USE flags may be toggled by yo...

1 answer  ·  posted 2y ago by Quasímodo‭  ·  edited 2y ago by Quasímodo‭

60%
+1 −0
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

I have installed mysql-server on Ubuntu 20.04 then I tried to sign into mysql-server using sudo mysql -u root but I have got Error: Can't connect to local MySQL server through socket '/var/run/mys...

2 answers  ·  posted 3y ago by Kevin M. Mansour‭  ·  last activity 3y ago by Kevin M. Mansour‭

60%
+1 −0
Manually trigger cron jobs

Do any of the cron implementations allow you to manually trigger cron jobs (stuff in your crontab) right now, in the exact same manner as they would have when triggered on their usual schedule, exc...

0 answers  ·  posted 23d ago by matthewsnyder‭

60%
+1 −0
Moving the filesystem root to a different partition and booting from it

My primary drive is partitioned basically like so (only roughly to scale): / /home junk v v v |xx###############...

1 answer  ·  posted 14d ago by Karl Knechtel‭  ·  last activity 13d ago by Iizuki‭

60%
+1 −0
Does Fedora have cutting edge features, and what makes it so?

I saw another post recommend using Fedora if you want cutting edge features. Is Fedora really a "cutting edge" distro? I am not very familiar with Fedora, I know it's a community counterpart to R...

0 answers  ·  posted 3d ago by matthewsnyder‭  ·  edited 3d ago by matthewsnyder‭

60%
+1 −0
How to refresh lvm-backed virtual disk in libvirt

How can I grow a libvirtd VM's LVM-backed virtual disk online, without rebooting the vm. My host has an LVM VG for VMs. Each VM disk is an LV to the host. It's easy to grow the VG by adding a PV...

1 answer  ·  posted 1y ago by re89j‭  ·  last activity 1y ago by re89j‭

60%
+1 −0
Why is there a mono version of Inconsolata?

After installing the InconsolataGo font from the Arch package extra/ttf-inconsolata-go-nerd, I see there is an Inconsolata Nerd Font, Regular and an Inconsolata Nerd Font Mono, Regular. Both are mo...

0 answers  ·  posted 11mo ago by matthewsnyder‭