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)
81%
+7 −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 1y ago by paulsweatte‭  ·  last activity 1y ago by matthewsnyder‭

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 1y ago by TRiG‭  ·  edited 1y ago by Canina‭

xxd
71%
+3 −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...

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

50%
+0 −0
Low impact trial installation of Guix to test hardware compatibility

I like how Guix sounds based on what I've read, and I want to try it. However, my partitioning scheme is a bit complicated. With Guix it appears like my biggest concern is hardware (I will regretta...

0 answers  ·  posted 1y 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 1y ago by matthewsnyder‭  ·  closed 1y ago by Quasímodo‭

60%
+1 −0
How to fix DPI for Spotify

Spotify runs on my computer with higher DPI (bigger UI elements) than I'd like. How can I reduce it?

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y 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 ...

1 answer  ·  posted 2y ago by nteodosio‭  ·  last activity 8mo ago by mirabilos‭

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 11mo ago by Iizuki‭  ·  last activity 9mo ago by Michael‭

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 1y ago by Matthias Braun‭  ·  last activity 1y ago by Matthias Braun‭

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 1y ago by Arpad Horvath‭  ·  last activity 1y ago by matthewsnyder‭

75%
+4 −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 1y ago by matthewsnyder‭  ·  last activity 1y 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 1y ago by Iizuki‭  ·  last activity 9mo ago by Quasímodo‭

80%
+6 −0
What are the correct permissions for `~/.ssh/config`?

I got this message: Bad owner or permissions on /Users/rbiaa065/.ssh/config What should the permissions be to make ssh happy?

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

ssh
77%
+5 −0
Recursively remove files with the same name as the ones that end in `.part`

I want to remove all files with the ".part" extension in the current directory and its subdirectories, including files with the same name but different extension. Is this correct? find . -name '*...

3 answers  ·  posted 2y ago by ShadowsRanger‭  ·  last activity 1y ago by jimbobmcgee‭

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 1y ago by matthewsnyder‭

60%
+1 −0
Prettify XML in a shell

How to pretty print XML in a shell? I have command-line tool which outputs XML in a single line, totally unreadable. I would like something to pipe this into, to turn it into human readable XML wi...

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

57%
+2 −1
How to automatically change to the first matching directory using fuzzy search and cd?

I want the cd command to automatically change to the first directory that matches a fuzzy search, without prompting me to select between multiple options. This is what I've tried: cd() { loc...

1 answer  ·  posted 2y ago by ShadowsRanger‭  ·  last activity 1y ago by jimbobmcgee‭

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 1y ago by matthewsnyder‭  ·  last activity 1y 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 1y ago by Luís de Sousa‭  ·  last activity 1y ago by Mithical‭

60%
+1 −0
PipeWire separates the audio of every program, how do I combine them?

I uninstalled PulseAudio and installed PipeWire. It seems like now, every application gets an independent audio configuration. When I go into pavucontrol I see "Spotify" where I configure the volu...

0 answers  ·  posted 1y ago by matthewsnyder‭

60%
+1 −0
Lynis says my /etc/issue is weak - how to strengthen?

When hardening my system with Lynis I had information about /etc/issue and /etc/issue.net being found weak. Lynis redirects me to Enterprise, which is a paid product and a bit overkill for my home...

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

60%
+1 −0
How to create systemd unit that depends on a website being up?

I'm going to write some systemd services. All of these can only be run if a certain website is up. I thought I could create a ~/.config/systemd/user/website.service this: [Unit] Description=Confi...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by Iizuki‭

75%
+4 −0
Documentation for double asterisk glob expansion

Where can I find documentation on double asterisk in glob expansion? It is discussed in the .gitignore section of Pro Git. It works in ls **/* to list all terminal files. It is supported by py...

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

60%
+1 −0
How to create ed25519 subkey in GPG?

At the moment GPG only offers the following options when generating a new subkey the with the addkey command: gpg> addkey Please select what kind of key you want: (3) DSA (sign only) (...

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

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

ssh
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 2y ago by mcp‭  ·  last activity 1y ago by Mithical‭

60%
+1 −0
Static IP on wired LAN

I have an Arch Linux machine connected to a LAN by ethernet. The router runs OpenWRT. DHCP assigns IPs to this machine like 192.168.1.* - quite typical. I want the IP to always be 192.168.1.10. I...

2 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by matthewsnyder‭

50%
+0 −0
What is Kmail running in the background?

When I run Kmail on i3, and then close it, it appears to continue running some stuff in the background. For example, I periodically get notifications about new mail from dunst, even though I have c...

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

60%
+1 −0
An alternative to pacman sudo nag?

Some pacman functions require sudo. When I forget the sudo, you get: error: you cannot perform this operation unless you are root. I then have to press the keys: up, home, s, u, d, o, space, en...

2 answers  ·  posted 12mo ago by matthewsnyder‭  ·  last activity 11mo ago by TowerOfTurtles‭

40%
+2 −4
Why does Linux use the sudo command?

Why does Linux use the sudo command?

1 answer  ·  posted 11mo ago by catexotica‭  ·  last activity 11mo 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 1y ago by happyborg‭  ·  edited 1y ago by happyborg‭

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 1y ago by mr Tsjolder‭  ·  last activity 1y ago by matthewsnyder‭

60%
+1 −0
Why does $XDG_DATA_HOME default to ~/.local/share?

Why does XDG_DATA_HOME default to ~/.local/share? Why not something less cryptic, like ~/.data? Why did they decide use that path?

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

xdg
60%
+1 −0
After update, OpenGL does not work until reboot

Whenever I do a big system update, OpenGL stops working until the next reboot. This also prevent OpenGL apps from launching. Example: $ glxgears X Error of failed request: BadValue (integer par...

0 answers  ·  posted 1y ago by matthewsnyder‭

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

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 1y ago by matthewsnyder‭  ·  edited 1y ago by matthewsnyder‭

75%
+4 −0
How can I use SIGUSR1 or SIGUSR2 without risk of terminating the process?

SIGUSR1 and SIGUSR2 are user-defined signals. Imagine there is a tool designed to do something useful upon receiving one or the other. The problem is the default action for these signals is Term (...

1 answer  ·  posted 1y ago by Kamil Maciorowski‭  ·  last activity 1y ago by Kamil Maciorowski‭

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

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 1y ago by Karl Knechtel‭

81%
+7 −0
What partition type should be used for cross-platform FAT partitions?

Question What partition type should I use for FAT partitions such that Linux and Windows systems both recognize the drive? Notes I am partitioning the drive with fdisk and making the filesystem ...

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

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 2y ago by mcp‭  ·  last activity 2y ago by samcarter‭

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 1y ago by matthewsnyder‭  ·  edited 1y 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 1y ago by zetyty‭  ·  last activity 1y 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 1y ago by matthewsnyder‭

60%
+1 −0
Rename multiple files which have a variable suffix

I compressed some JPEGs with curtail it messed up the filenames. It was supposed to only add -min at the end but ended up adding a random string after the extension 😠: prs@PC:/DOWNLOADS/Pictures$ ...

3 answers  ·  posted 1y ago by Pr. Sunflower‭  ·  edited 1y ago by matthewsnyder‭

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 1y ago by matthewsnyder‭

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 2y ago by mcp‭  ·  last activity 1y ago by r~~‭

75%
+4 −0
Can I enter raw strings in fish to avoid escaping regexes for sed?

When running sed through fish, I often encounter a problem with regexes. Many commonly used regex control characters like []{}().+ need to be escaped, even if I type the regex in a single quoted st...

2 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by terdon‭

50%
+0 −0
How to list the first x files in each directory

MWE With the following tree: l1 └── l2 ├── d0 │   ├── f0 │   ├── f1 │   ├── f2 │   ├── f3 │   ├── f4 │   └── f5 ├── d1 │   ├── f0 │   ├── f1 ...

3 answers  ·  posted 1y ago by mcp‭  ·  last activity 1y 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 1y ago by matthewsnyder‭  ·  last activity 1y ago by matthewsnyder‭