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
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 9mo ago by Karl Knechtel‭  ·  last activity 8mo ago by Mithical‭

60%
+1 −0
How to bypass SSH destination host key fingerprint check?

When you first connect to a host, ssh asks you about saving its fingerprint. If you do, on subsequent connections it will check the fingerprint and refuse to connect if it changed. I get that this...

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

ssh
60%
+1 −0
How does the root user locate executables?

A little while ago I was helping someone with running Python in a virtual environment, as root, for some specific purpose. I determined easily enough that this requires explicitly specifying the pa...

1 answer  ·  posted 7mo ago by Karl Knechtel‭  ·  last activity 7mo 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 24d ago by Iizuki‭

66%
+2 −0
How to decrease image size from commandline

Problem I'd like to be able to decrease images, particularly jpg and png's, either to a percentage of the original file, or a specified size in bytes. MWE decrease --size=900KB -o image_small....

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

50%
+0 −0
Dnsmasq vs. dnscrypt-proxy

I am trying to run a DNS server on my LAN. I set it up where: Dnsmasq is the "initial" server that clients see Dnsmasq resolves internal domains, and handles overrides (such as if I want to blo...

0 answers  ·  posted 8mo ago by matthewsnyder‭

60%
+1 −0
Postgres 15.3 fails to create new tablespace (could not set permissions)

I am unable to create new tablespaces on a fresh Postgres 15.3 installation on Ubuntu 22.04. I tried the following so far: re-install Postgres fully loosen file system permission disabled SELi...

0 answers  ·  posted 10mo ago by Luís de Sousa‭  ·  last activity 8mo ago by Mithical‭

80%
+6 −0
How to RTFM well to get a CLI command

I've been met with the phrase RTFM often. I recognize its value. However, the manual pages are often hard to understand and written by people who know so much about the topic at hand that they don'...

2 answers  ·  posted 6mo ago by LAFK‭  ·  last activity 4mo ago by matthewsnyder‭

50%
+0 −0
How to add a new drive to a BTRFS filesystem?

BTRFS is capable of spanning over multiple drives. How to add one more to an existing filesystem?

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

60%
+1 −0
GUI apps stop working until next boot after some system upgrades

My system occasionally has an issue that looks like this: I run pacman -Syu Many things get updated Many GUI apps (including all display managers and Xorg) start refusing to run and throw up O...

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

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‭

77%
+5 −0
What unexpected things can happen if a user runs commands expecting a text file on input lacking a file-final newline?

It is often taught that in Unix/Linux text files should end with newline characters. The reason given (orally) to me by various sources was that "some commands (such as wc) assume or require a newl...

2 answers  ·  posted 10mo ago by Lover of Structure‭  ·  last activity 10mo ago by tripleee‭

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 1y ago by mcp‭  ·  last activity 11mo ago by matthewsnyder‭

80%
+6 −0
Looking for a way to sync dotfile content between different machines without introducing security issues

I switch between three computers and have never been able to keep my dotfiles in sync. I cannot put them into source control because they contain sensitive data. So, my question is: how do I share ...

3 answers  ·  posted 6mo ago by paulsweatte‭  ·  last activity 4mo ago by matthewsnyder‭

33%
+0 −2
Is PipeWire easier to use than PulseAudio? [closed]

I have always found PulseAudio to be difficult to use and overcomplicated. Recently I also discovered that it is written by Lennart Poettering, whom I dislike. I am now very motivated to use someth...

0 answers  ·  posted 10mo ago by matthewsnyder‭  ·  closed 10mo ago by Quasímodo‭

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‭

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‭

60%
+1 −0
Is it safe to completely take over ~/.config/systemd/user?

~/.config/systemd/user intended purely for units created and managed by the user manually, or are there any automated processes that expect to control it? For example, do packages or programs ever...

0 answers  ·  posted 4mo ago by matthewsnyder‭

60%
+1 −0
How do I find files?

How can I search for files on my system? Ideally, I would like to search by various criteria, like date, name, extension, etc.

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

60%
+1 −0
Starts systemd service and follow log

I can start services with systemctl start. I can see logs with systemctl status or journalctl. But by the time I run the second the process has already started. I'd like to start a service and imme...

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

50%
+0 −0
Run command with Key Combination in Gnome

Is there a way in Ubuntu (22.04) to run a given bash command for a given Key combination in Gnome (42.9)? This Ubuntu is running in Hyper-V on a Win10 host. (I would like to run the setxkbmap us a...

1 answer  ·  posted 6mo ago by Arpad Horvath‭  ·  last activity 6mo ago by matthewsnyder‭

60%
+1 −0
How to open a port in firewalld?

How to open a port when using firewalld as the system firewall?

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

50%
+0 −0
How do you eval SSH agent output in fish?

SSH agent prints some envar commands for sourcing in a shell. However, these are bash-style, and I use fish. Fish barfs at the bash syntax. How can I fix it?

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

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 11mo ago by happyborg‭  ·  edited 9mo ago by happyborg‭

77%
+5 −0
Copy to clipboard from terminal with Vim bindings

Question How do I copy to clipboard from terminal with yy, assuming it's configured to use Vim bindings? I am using zsh with bindkey -v. MWE Enter something on the commandline (without pressi...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 8mo ago by Mithical‭

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
50%
+0 −0
Do you still need to update archlinux-keyring before pacman -Syu?

For some time pacman used to have a problem where: Occasionally Arch maintainers introduce new GPG keys They start signing packages with the keys Your local pacman doesn't receive these until ...

0 answers  ·  posted 8mo ago by matthewsnyder‭

60%
+1 −0
How to prevent keyboard layout modifications from affecting external keyboards

Using For the console: /etc/vconsole.conf ---- KEYMAP=dvorak For X Session: .xinitrc ---- setxkbmap -layout us -variant dvorak & Problem For the console, it applies the dvorak lay...

0 answers  ·  posted 6mo ago by mcp‭  ·  edited 6mo ago by mcp‭

50%
+0 −0
Why does a reverse hexdump truncate the message?

$ echo "4c 6f 72 65 6d 20 69 70 73 75 6d 20 64 6f 6c 6f 72 20 73 69 74 20 61 6d 65 74 2c 20 63 6f 6e 73 65 63 74 65 74 75 72 20 61 64 69 70 69 73 63 69 6e 67 20 65 6c 69 74 2c" | xxd -r orem ipsum...

1 answer  ·  posted 9mo ago by TRiG‭  ·  edited 9mo ago by Canina‭

xxd
60%
+1 −0
How to identify and separate standalone applications from libraries in Linux package lists?

I want to generate a list of trending Arch/AUR packages that focuses on user-facing applications rather than background libraries and dependencies. I wrote a script that uses the data from pkgstat...

1 answer  ·  posted 7mo ago by ShadowsRanger‭  ·  last activity 7mo ago by alx‭

50%
+0 −0
How can I change the timeout after too many incorrect login attempts?

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

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

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‭

57%
+2 −1
Download packages for full system upgrade without installing

I noticed that downloading all the pacman packages for a full system install takes a lot of time, so I want to create a systemd time that will periodically download them for me. That way, most of t...

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

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‭

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‭

50%
+0 −0
How do you terminate a DHCP lease in OpenWrt?

I am testing some DHCP stuff, and I want to manually end a lease so I don't have to wait hours for them to expire. How can I do this with OpenWrt?

1 answer  ·  posted 8mo ago by matthewsnyder‭  ·  last activity 8mo 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 11mo ago by matthewsnyder‭  ·  last activity 11mo ago by r~~‭

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 6mo ago by Iizuki‭  ·  last activity 1mo ago by Iizuki‭

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 7mo ago by alx‭  ·  last activity 7mo ago by Kamil Maciorowski‭

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‭

60%
+1 −0
Do I have to update Guix frequently like Arch?

Guix is a rolling release distro. Another well known rolling release distro is Arch Linux. In Arch, you are expected to frequently do system updates. Partial updates are not supported. In my exper...

0 answers  ·  posted 8mo ago by matthewsnyder‭  ·  edited 8mo ago by matthewsnyder‭

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‭

75%
+4 −0
How to convert PDF to docx

How can I convert PDF to docx using the terminal or a Linux app? The output docx must be formatted with editable text. Some alternative solutions I've seen online using soffice and abiword output...

2 answers  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by samcarter‭

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 11mo ago by matthewsnyder‭  ·  last activity 8mo ago by Mithical‭

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
50%
+0 −0
How to change keyboard layout without a DE?

I am running X on Arch Linux without a desktop environment, only i3. Sometimes I need to switch between typing in different languages. How do I switch my keyboard layout?

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

60%
+1 −0
How to start MariaDB (or MySQL) server on a WSL using systemctl?

When I try to start MariaDB server (same problem with MySQL) on a fresh Debian 11 install in a Windows Subsystem Linux (WSL) I got the following error: $ sudo systemctl start mariadb System has n...

2 answers  ·  posted 10mo ago by zetyty‭  ·  last activity 10mo ago by matthewsnyder‭

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~~‭

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
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‭