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

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‭

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‭

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

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

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

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

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‭

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‭

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

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

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

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

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‭

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‭

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‭

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‭

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‭

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

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‭

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‭

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‭

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‭

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‭

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‭

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 3y ago by deleted user  ·  edited 2y ago by Canina‭

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‭

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‭

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‭

80%
+6 −0
Does /proc/config.gz always contain all supported options of a kernel?

Assuming I have a running Linux system that has the /proc/config.gz file: Does the (unpacked) file always contain all of the options the particular kernel supports, including commented out like: ...

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

84%
+9 −0
What are phased updates, and why does Ubuntu use them?

So I ran into that weird "packages being held back" problem while updating my system using apt. After some research, it appears to be the result of "phased updates". What are phased updates, any...

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

66%
+2 −0
Set compose key to Shift + AltGr

I have upgraded Xubuntu from 20.04 to 22.04 and my compose key, which defaulted to Shift + AltGr, was disabled. It is no longer available in the keyboard settings GUI either. How can I set the com...

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

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

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 2y ago by alx‭  ·  edited 2y ago by alx‭

40%
+2 −4
How to give password in shell script?

That's my Bash script: #!bin/sh cd qpixel sudo systemctl enable mysql mysql -u root -p rails s When it executes the line mysql -u root -p it will ask for password. To do so, I have tried...

1 answer  ·  posted 3y ago by deleted user  ·  edited 2y ago by fedorqui‭

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

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

66%
+2 −0
How to make vi-mode bindings in terminal copy to clipboard

If I want to yank my last command I can UP yy, but this does not copy to the system clipboard. How do I configure my terminal to copy to the system clipboard so I can paste into other programs? ...

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

66%
+2 −0
Bind brightness/volume and other special Fn keys in a tty

I am running Debian stretch on a Lenovo laptop with only a window manager (i.e. no desktop). Out of the box, this configuration of Debian ignores the keys with special Fn functions, such as volum...

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

81%
+7 −0
What does a minimal /etc/hosts need to contain?

I run an environment that, until recently, did all local name resolution by putting names in /etc/hosts. I'm in the process of replacing that with local DNS. The DNS part works fine, and now I'm tr...

1 answer  ·  posted 2y ago by ajv‭  ·  last activity 2y ago by dsr‭

77%
+5 −0
Installing Ruby on MacOS 12.2 (or 11.6) produces compilation errors in the downloaded source; how do I fix?

A project I want to work on requires Ruby. I was directed to RVM or rbenv. I tried rbenv first because it has Mac instructions, ran into failures, uninstalled it and installed RVM, and still ran ...

1 answer  ·  posted 3y ago by Monica Cellio‭  ·  edited 2y ago by Monica Cellio‭

77%
+5 −0
Capture separate _and_ combined stdout/stderr

Using BASH, how can I redirect stdout and stderr each, to two separate files, simultaneously? That's a mouthful, let me clarify a little: I have a hypothetical script that may/will generate outpu...

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

50%
+0 −0
Automated wifi 'scavenging', daemon recommendation?

I have a RPi in the car that I need to act as a mobile AP. I need it to provide a consistent, unchanging ESSID (in AP mode) using the onboard wlan0 for all devices that stay in my car. Dashcams, t...

0 answers  ·  posted 2y ago by re89j‭

80%
+6 −0
A shell script that can run under different shells

I have a shell script with a syntax compatible to both bash and zsh, except for a section that has zsh specific syntax that throws syntax errors if sourced from bash. Is there an easy way to escap...

2 answers  ·  posted 3y ago by 4015.alt‭  ·  last activity 2y ago by mjy‭

75%
+4 −0
Desktop Multiplexer for Linux? (GNU Screen for GUI apps)

GNU Screen and Tmux allow you to run command-line programs on a server, and 'disconnect' from them but let them keep running remotely. This is great if your primary computer is a laptop and it has...

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

42%
+1 −2
sensors to histogram

I would want to... ... turn my sensors output into a live histogram. How to? Any available script already written? (✿◠‿◠)

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

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 3y ago by re89j‭  ·  edited 3y ago by Canina‭

80%
+6 −0
Why is Pause/Break key is immediately released? Can that be fixed?

Since the Pause key is useless, I tried to map it to a modifier key. What is straightforward for other keys turned out not to work fine for Pause. By inspecting the output of xev -event keyboard |...

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

66%
+2 −0
Scalable fonts are not loaded into the X server database

I have some old X11 applications complain that they cannot find a ISO8859-2 font. So I executed grep -r 8859-2 /usr/share/fonts/ and, to my surprise, found many matches, for example ==> /us...

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

71%
+3 −0
What does capital T mean in the output of 'ls -l'?

I had a nightly cronjob start throwing errors about "inappropriate permissions..." rsync: [generator] failed to set permissions on "/data2/home/redacted/alsoredacted/opt/dell/srvadmin/var/log/open...

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