Questions tagged [linux]
These questions are about Linux in general – NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the “linux” tag.
39,043 questions
0
votes
0
answers
26
views
Historiographical resources about Linux [closed]
While trying to document myself about some less known Linux features I found some kernel mailing list discussions that contained a lot of advanced and counter intuitive technical knowledge, sparkled ...
0
votes
1
answer
64
views
Resolving High HostMemoryUnderMemoryPressure Alarms on Linux Server Under vm.swappiness=0 Restriction
I'm constantly receiving HostMemoryUnderMemoryPressure alarms from a high-resource Linux server, which are triggered and immediately resolved. The alarm detail indicates a high rate of major page ...
0
votes
2
answers
63
views
Is there a way to use fractional scaling below 100%
Many laptops in the educational market still have 1366x768 screens. A lot of programs and websites blindly assume a 1920x1080 screen, and leave important UI elements outside the screen (mostly dialog ...
0
votes
1
answer
50
views
FTDI or USB to I2C Chip available for Linux kernel drivers
Sorry if this has been solved, but I would like to connect some drivers on Linux over I2C, but I only have USB available.
I was going to use a FT4232 or FT260 USB to I2C; however, is there is a way to ...
4
votes
1
answer
205
views
Asynchronous execution of sudo in parallel breaks terminal
Why does the following line break the terminal when executed in a non-interactive shell, but doesn't have the same effect when executed in an interactive shell?
for i in {1..10}; do sudo -u testuser ...
5
votes
2
answers
685
views
How to check for IPv6 address collisions in Linux
I understand that IP address collisions are incredibly rare under IPv6. Most subnets are at least 64bit, meaning that the risk of true random collision is neglegable.
However there are circumstances ...
0
votes
0
answers
42
views
CUPS printer problem
Job for cups.service failed because the control process exited with exit status error failure 1 code
○ cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; ...
0
votes
1
answer
34
views
How do I get a stand-alone, offline .iso or .dmg of Opera that a 'VirtualMachine' running Linux Mint 22.2 can open/read/install?
I went directly to Opera.com and the Download for Linux did NOT have a "Download offline package" option that the other platforms listed did. The Linux Download only showed:
"Prefer ...
6
votes
1
answer
684
views
Fool a program it has a pty of specific size
I use nethack with ttyrec to archive my funny deaths.
My only issue is that nethack uses as much screen space as possible to print log massages.
I would like to limit it to only work with 80x24 ...
1
vote
1
answer
57
views
CIFS (SMB1) share mounts but cannot cat or copy to local filesystem
I am trying to connect various systems to a SMB share of a USB drive that is connected to a TP-Link router (TP-Link AC1750) and is shared as //192.168.0.1/sda1.
Using the command (run as ROOT user): ...
2
votes
6
answers
806
views
Detect if any ping succeeds
I am trying to ping several IP addresses / hostnames, and determine whether any of them respond.
Starting from this question, I'm using the echo host1 host2 host3 | xargs -n1 -P0 ping -c1 -w2 approach....
0
votes
0
answers
56
views
Is it possible to configure OpenDoas to allow multiple password attempts before failure?
I'm using doas for privilege escalation together with a command-line program that calls into either sudo or doas (OpenDoas on Linux, this program does not support BSDs) for authentication when it ...
-4
votes
1
answer
68
views
Understanding File Permission Differences in UNIX/Linux [duplicate]
What is the difference between chmod 755 and chmod 775?
1
vote
1
answer
47
views
rsnapshot @CMD_CP@
rsnapshot / rsnapshot.conf.default.in now has quite a few settings of the form @setting@, but there's no indication anywhere what those settings decode to. For example @CMD_CP@ doesn't seem to be ...
0
votes
0
answers
30
views
qemu-system-mips kernel loops indefinitely on serial output
I'm exploring qemu system emulation with custom-built Linux kernels, starting with mips. To start, I'm trying to get to the point of the kernel simply panicking before I add a rootfs, but I can't even ...
1
vote
1
answer
54
views
U-Boot signature verification using ECDSA fails
I'm trying to use ECDSA (prime256v1) for signature verification in U-Boot (git tag "v2025.10"). I used the sample configuration from Verified Boot on the Beaglebone Black as a template. ...
-1
votes
1
answer
82
views
Is RAM + SWAP > 4GB possible on arm32?
On x86, the solution would be either PAE, but yet better is to use a 32-bit system with a 64-bit kernel.
The physical memory of the planned 32-bit ARM system is only 3GB. I would like to increase it, ...
0
votes
0
answers
42
views
How can I automatically set some CPU parameters (via `/sys/devices/system/cpu/...``) when the system boots?
DISTRO: Fedora 41 KDE
GOAL: Im trying to automatically set some cpu parameters (per-CPU max frequency, governors, energy policy, etc.) during my boot process. I wrote a script to do this (it lives at /...
1
vote
0
answers
39
views
Why does Linux CFS need a periodic timer interrupt more frequent than the time slice?
OSTEP says
Note that CFS utilizes a periodic timer interrupt, which means it can only make decisions at fixed time intervals. This interrupt goes off frequently (e.g., every 1 ms), giving CFS a chance ...
0
votes
1
answer
48
views
Curiosity: it looks like a second Power-on self test or init (like the BIOS POST does at boot) is happening after the GRUB O.S. selection? What is it?
Glad to a new keyboard and a mouse that have plenty of lights now, I've noticed this:
When I turn on my computer the BIOS Power-On Self Test (POST) happens. And I can see that my mouse and keyboard ...
0
votes
1
answer
43
views
Why SMTP command is running always?
Almost always I can see many smtp processes in ps aux command output like this:
postfix 924674 0.4 0.0 44460 9212 ? S 18:54 0:00 smtp -t unix -u -c
postfix 924675 0.2 0.0 44460 ...
0
votes
1
answer
95
views
Linux - how to hibernate and then start the computer again?
I have a system where I dual-boot linux and windows. When I switch between them, I usually do the following:
Hibernate the old os
Press the power button
Select the new os in grub
However, I would ...
1
vote
0
answers
39
views
How to step over an "int 3" on x86_64 with KVM?
On the x86 platform, the int 3 instruction causes a breakpoint trap. For KVM, the Virtual CPUs can be configured to exit to the hypervisor on this trap, by enabling the flags KVM_GUESTDBG_ENABLE and ...
0
votes
0
answers
55
views
SSH Timeout when trying to connect to Oracle Cloud
I made a Compute Instance with Oracle Cloud because I'm trying to run a python code 24/0. I have tried connecting to it all day with no results. Here's what went off in the PowerShell:PS C:\Users\...
0
votes
0
answers
76
views
Swap full but all process terminated : does Linux free "orphans" pages when needed?
this is the first time I encounter a swap issue, I'm lost about how Linux is supposed to behave. I have a RHEL virtual machine running a batch processing RAM intensive application (100+GB RAM, 1GB ...
0
votes
1
answer
57
views
Kernel message "unchecked MSR access error: RDMSR from ... microcode_loader_disabled..." in Linux 6.6.113 on AMD Geode CPU
I got confused when the dmesg output of an embedded system started with these messages:
[ 0.000000] unchecked MSR access error: RDMSR from 0x8b at rIP: 0xc156f2b0 (microcode_loader_disabled+0x3b/...
4
votes
1
answer
651
views
Hardware encryption on Samsung SSD using Debian
I want to benefit from HW encryption on a Samsung SSD, meaning I want the SSD controller to handle decryption/encryption. I have 2 SSDs that i want to use, one with Windows, one with Debian.
Steps I ...
0
votes
1
answer
49
views
How to block network access for a specific command in a limited K8s container (no CAP_NET_ADMIN / iptables)?
I need to safely run open-source tools inside a Linux container that may contain sensitive data. To prevent any potential data exfiltration, I want to block only this specific tool from accessing the ...
4
votes
0
answers
95
views
Diagnosing failure to properly suspend in Linux
In trying to figure out why my laptop was losing so much battery charge when closed, I'm seeing logs that suggest it's not staying in suspended state at all. I'm looking for help diagnosing why this ...
0
votes
1
answer
43
views
GUI app showing CPU/GPU frequency graph in time & stress CPU & GPU and/or fan speed (Throttling troubleshooting)
Looking for a GUI app that has the features below:
Can show CPU cores frequency graphs in time (both average or per core works)
Can stress/load all the CPU cores for a significant amount of time (...
1
vote
2
answers
52
views
Relay IP between hosts
This might be a trivial question:
I have two hosts A and B that can access the internet behind NATs.
Their NATs do not allow for hole-punching or any other way to connect them directly.
Host C is a ...
1
vote
0
answers
58
views
SSH from Windows to Linux, when something is piped into it, gets stuck and stop showing STDOUT
I'm an SSH scripting novice, so I'm trying to understand whether I'm just doing it wrong or there is an issue.
Background: I'm trying to connect VSCode RemoteSSH to HuggingFace Space dev mode and ...
0
votes
0
answers
64
views
How to create one or more virtual displays with dynamic resolution (like VMware) on Linux desktop?
I'm developing a remote cloud linux desktop application.
Desktop Linux
Client ----req----> on the Cloud
such as Amazon.
Client can change the ...
0
votes
1
answer
47
views
CUPS shows connection page after selecting local printer
I'm trying to set up a wireless print server for my Zebra LP2844, using a Raspberry Pi 3B. I'm a complete newbie so I've been following [this] [https://youtu.be/P3XRi-CD1a0?si=dZn_Wm8ekS8z0soQ&t=...
0
votes
1
answer
83
views
Bash Script Linux - combines a QUIET function with other functions without hiding some of them
#!/bin/bash
DefaultColor="\033[0m"
GREEN="\033[32m"
RED="\033[31m"
PURPLE="\033[35m"
YELLOW="\033[33m"
CYAN="\033[36m"
CmdOk="\033[...
9
votes
2
answers
2k
views
Which Linux file system should I use for compatibility with Windows programs?
I'm new to Linux, yet am now committing to Linux, probably formatting HDDs to run the ext4 file-system, for (almost) all work. I need to keep one Windows machine running an NTFS file-system for a few ...
1
vote
1
answer
69
views
In Linux, how to access the perf info on the CPU-specific PMU events in C/C++ without third party libraries?
Linux perf list shows a long list of PMU events on my Intel CPU, which are not defined in linux/perf_event.h. For example:
$ perf list
...
mem_uops_retired.load_latency_gt_8
But /usr/include/linux/...
1
vote
1
answer
74
views
Why is there a discrepancy between the stack address in /proc/PID/maps vs. /proc/PID/stat?
Why does there appear to be a discrepancy between a process stack address within /proc/PID/maps compared to the stack start address within /proc/PID/stat, where the latter is a smaller subset of the ...
0
votes
0
answers
40
views
using a ViewSonic IFP6550-3 screen (HDMI) on a Linux laptop
My laptop runs Linux/Debian/Testing. Its model is an ACER AN517-51-72CQ
I am teaching Linux (at green-up-academy.com) with it. Running Xorg if that matters.
How to configure so that a ViewSonic ...
1
vote
1
answer
64
views
Discrepancies for entries for the same map in different /proc/*/smaps files
The snippet below:
shows statistics for what appears to be the exact same memory mapping: same device number, same inode, same offset, same length (0x7f8656e78000-0x7f8656cbb000 = 0x7f2f4ef6a000-...
1
vote
0
answers
71
views
Linux mount fails but GRUB/Windows work
I have Thinkpad T470s with Team Group MP33 512GB (SM2263XT controller, firmware S1218A3) nvme ssd disk which stopped working in Linux after a system update around 2 weeks ago. The drive works fine in ...
3
votes
2
answers
214
views
Syntax Error on ssed for Regex Subroutine definitions
I'm stuck with this error without clue or reference how to solve it:
I have this list on text.txt
Angie Apple
Angie Banana
Angie Tomato
Angie Peach
Angie Onion
I'm running substitution through ssed (...
1
vote
0
answers
32
views
fanotify for mandatory access control
Seeing as fapolicyd uses fanotify to prevent the execution of programs, is it possible to use fanotify to for security? Like, a program can be checked which file it's accessing and then deny if it ...
0
votes
2
answers
109
views
Cleaning-up previous kernel RPMs after reboot
I have a few RHEL 8/9 boxes with a cron job that updates them automatically every week.
The reboots are done manually from time to time and I would like to write a script to simplify the removal of ...
1
vote
0
answers
63
views
Remove missing drive from a btrfs partition that can be mounted only read-only
I have a btrfs volume, containing three devices: sda1, sdb1, sdc1.
The data is single, the metadata is raid1.
The hard drive /dev/sda is failing, so I can't mount my partition with -o degraded,rw; it ...
1
vote
1
answer
36
views
Configuring Procmail with CRM114
I would like to configure the mail command with procmail in order to filter spam with CRM114 and I cannot seem to find enough information on the subject. I have set up mailx with external mail and ...
0
votes
1
answer
59
views
rsync with --include-from breaks hardlinks (evec with -H)
I'm trying to copy a bunch of files (around 50000) from an include-file list. THe include-file has relative path to the files on the source folder.
I'm using the following command :
rsync -avPilHAXWE \...
1
vote
1
answer
92
views
Bluetooth speaker/headphones stop playing when Bluetooth keyboard is connected
A little background:
I have a Lenovo ThinkPad T480s with an old Bluetooth module. I wanted to upgrade because, when connecting more than two devices at the same time, the mouse was lagging, and I ...
2
votes
2
answers
87
views
Find laptop internal keyboard Controller model/vendor/Product #
Update 2: Found below in dmesg for a single Fn key press/release (even on released this month Ubuntu 25.10):
[ +4.340795] atkbd serio0: Unknown key pressed (translated set 2, code 0xf8 on isa0060/...
0
votes
1
answer
48
views
Can I combine raid1 and dup BTRFS profiles?
In essence I want to have two mirror devices but also two copies of the data on each device.
Will something like this work and behave as I expect?
btrfs balance start convert=raid1,dup,soft /mnt/sdxn/