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

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

arch-linux configuration x11 keyboard
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 1y ago by matthewsnyder‭  ·  last activity 1y ago by r~~‭

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

arch-linux keyboard gnome keyboard-layout
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‭

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

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

debian ubuntu mysql-server mariadb-server wsl
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‭

arch-linux sound
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‭

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

arch-linux sound
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‭

debian mysql-server
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 2y ago by Kamil Maciorowski‭  ·  last activity 2y ago by Kamil Maciorowski‭

kill signals race-condition
77%
+5 −0
Reverse shell with named pipe and netcat

This blog post describes a privilege escalation, exploiting tar's --checkpoint-action option. The privilege escalation is used to solve a TryHackMe challenge. The root user calls tar via cron whi...

1 answer  ·  posted 3y ago by Matthias Braun‭  ·  last activity 2y ago by Kamil Maciorowski‭

shell networking
83%
+8 −0
Are there any legitimate uses for newlines in filenames?

Unix is very permissive with filenames, and this can sometimes lead to a bunch of annoying corner cases when printing files. A well known example is when you put a newline in a filename, and it bre...

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

filesystem
77%
+5 −0
Adding Python 3.11 to `$PATH`

I built Python 3.11 from source (from GitHub python/cpython branch "3.11"). Here is what I did (after downloading the repo as ZIP) cd Downloads 7z x cpython-3.11.zip cd cpython-3.11 chmod +x c...

2 answers  ·  posted 2y ago by HGStyle‭  ·  last activity 2y ago by terdon‭

path python software-installation
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 2y ago by matthewsnyder‭  ·  last activity 2y ago by terdon‭

shell sed fish quotes regex
75%
+4 −0
Retrieve changes that closed a Debian bug

If a Debian bug number is referenced in the changelog of an uploaded package, it is automatically closed with a generic message: We believe that the bug you reported is fixed in the latest versi...

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

debian
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 2y ago by matthewsnyder‭  ·  last activity 2y ago by terdon‭

arch-linux packages
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 2y ago by matthewsnyder‭

arch-linux updates opengl
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 3y ago by CanisSomnolentus‭  ·  last activity 2y ago by jimbobmcgee‭

networking
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 2y ago by jimbobmcgee‭

find remove
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 2y ago by jimbobmcgee‭

shell-scripting cd fzf
75%
+4 −0
When should you install windows dlls for wine with winetricks?

I noticed in winetricks that it can install windows dlls to the wine folder. It even gives an option to install almost all of them at once. When should someone install these instead of staying with...

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

windows wine winetricks
60%
+1 −0
When a command takes filenames as argument, how can I avoid creating temporary files?

Suppose I have a command that takes filenames as arguments, like: diff foo.txt bar.txt What if instead of actual files, I want to use the results of a command in each? I can use temporary files: ...

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

shell-scripting
80%
+6 −0
How do I view fonts?

How can I view font files, like .ttf, in Linux? I'd like to see a sample of the font (quick brown fox...) and metadata about it (like exact name).

2 answers  ·  posted 2y ago by matthewsnyder‭  ·  last activity 2y ago by andrew.46‭

arch-linux fonts
60%
+1 −0
How do I fix a "FrankenDebian"?

I'm trying to help fix a Debian installation that has ended up with a mix of Debian release repositories, aka a "FrankenDebian". This one has the bullseye and unstable repositories listed in /etc/a...

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

debian packages
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 2y ago by matthewsnyder‭  ·  edited 2y ago by matthewsnyder‭

wine games
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 2y ago by matthewsnyder‭

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

wine
77%
+5 −0
How to convert Flac to Mp3 with FFmpeg?

I have a directory filled with Flac audio files and I would like to convert them all to Mp3. How do I go about this using FFmpeg? I am using the git FFmpeg and Slackware -current.

2 answers  ·  posted 2y ago by andrew.46‭  ·  last activity 2y ago by matthewsnyder‭

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

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

zsh vim terminal cursor
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 2y ago by mcp‭  ·  edited 2y ago by Quasímodo‭

console x11 keyboard
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 2y ago by re89j‭  ·  last activity 2y ago by re89j‭

libvirt virtualization storage
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 2y ago by mcp‭  ·  edited 2y ago by mcp‭

image png jpg compression
22%
+0 −5
Privacy focused Linux distro [closed]

Suggest me the most security and privacy focused Linux distro within three of them given below. Fedora Qubes OS Whonix. Please help me to choose. Thank you.

0 answers  ·  posted 2y ago by abarajithanjudith‭  ·  closed 2y ago by ArtOfCode‭

linux security Fedora
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‭

docx pdf file-conversion
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 2y ago by Trevor‭  ·  last activity 2y ago by r~~‭

gnome
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 3y ago by re89j‭  ·  last activity 2y ago by bgstack15‭

rsyslog syslog logging
75%
+4 −0
Disable transient symbols for compose and dead keys in GTK programs

An article in the GTK blog explains the situation very well, but here is my go at it. In my keyboard layout, accents are handled as dead keys, so to insert "ë", first I type ¨ and then e. Nothing ...

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

keyboard-event input-method gtk
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 2y ago by Dead_Bush_Sanpai‭  ·  edited 2y ago by Dead_Bush_Sanpai‭

networking
66%
+2 −0
How to append commands to startx from console

MWE startx && xrandr-invert-colors Problem It seems that anything after startx does not get issued in the resulting X session. I'd like to make a bash function that sets up my monito...

2 answers  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by celtschk‭

console x11 startx bash-function x-session
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‭

linux windows fdisk fat filesystem
66%
+2 −0
How to install printer driver for Canon PIXMA TR4522 printer in Arch Linux

I have used printers before in Arch Linux, but I can't figure out how to print with a Canon PIXMA TR4522 printer. More specifically, I am having trouble finding the correct driver. I have installe...

1 answer  ·  posted 3y ago by Trevor‭  ·  edited 2y ago by Trilarion‭

arch-linux printer
50%
+0 −0
Intel® Centrino® Advanced-N 6205 not found in Debian

I was installing Debian. But, I know that I have installed wireless connection system manually in Debian. are e needs non-free firmware files to operate. The firmware can be h as a USB stick o...

2 answers  ·  posted 4y ago by deleted user  ·  edited 2y ago by Canina‭

debian wifi firmware
66%
+2 −0
"A server is already running" error in rails

..$ rails s => Booting Puma => Rails 5.2.6 application starting in development => Run `rails server -h` for more startup options A server is already running. Check /home/istiak/ruby/q...

2 answers  ·  posted 3y ago by deleted user  ·  edited 2y ago by Trilarion‭

ruby-on-rails server
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 2y ago by Quasímodo‭  ·  last activity 2y ago by Quasímodo‭

.deb dpkg
80%
+6 −0
How do I deal with a "pending update to "snap-store" snap, close the app to avoid disruption" notification in Ubuntu 22.04?

For several days now, I've been getting a notification telling me that there's a pending update to the "snap-store", and to close the app to avoid disruption. I first got this notification while...

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

ubuntu