Newest Questions
245,212 questions
0
votes
0
answers
4
views
Systemd service not executing on resume
Similar issue to this post: Writing a systemd service to be executed at resume
I have a service that I want executed when the computer wakes from sleep. Here is the service:
[Unit]
Description=User ...
0
votes
0
answers
24
views
Require advice on starting with Linux [closed]
I am a fresher uni student and starting out fresh with learning Linux. I have some experience on working with Python. I need some advice on beginning my journey to learn Linux: resources I can access, ...
1
vote
2
answers
68
views
Difference between these 2 different ways of extracting files from a zip archive
I am trying to unzip a set of files (3 files). These files contain a lot of random files, duplicate files etc. To do this, I am first unziping the list of the names of files into a text file, then ...
4
votes
2
answers
139
views
How to resize ext4 without adding more inodes?
On this filesystem, there are enough inodes already, I only need more filesystem size:
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/spinning-backup ...
1
vote
0
answers
27
views
Debian: sssd does not start because of permission problems of /etc/sssd/sssd.conf that are automatically set
On Debian 13 a fresh installed sssd (2.10.1) shows strange permission errors after the start using systemctl restart sssd.service:
systemd[1]: Starting sssd.service - System Security Services Daemon......
0
votes
1
answer
51
views
Do posix functions like getpeername or getsockname completely rewrite their buffers?
I am new to socket programming & I have realized that most posix functions from libc require that you pass a buffer & a length. While I can understand this helps the functions to understand ...
1
vote
0
answers
29
views
I'm trying to share a folder, but Fedora displays:- Failed to enable unit: Unit samba.service does not exist
I'm trying to follow the instructions on the Fedora site, to create a Samba share:-
sudo dnf install samba
Package "samba-2:4.23.3-1.fc43.x86_64" is already installed. Nothing to do.
sudo ...
3
votes
5
answers
192
views
How can I use sed to chain append lines from a text file, add it as a suffix to the text on the same lines numbers on another file, and so on?
I've tried using sed for this. I've tried putting the lines of interest in variables as well.
I have two examples I want to achieve for now. Lets say I have thousands of urls in a file called links....
1
vote
0
answers
15
views
Sleep or reboot kills sound, switching sound settings back and forth on the same soundcard revives it. Ideas to troubleshoot?
Problem: Sleep or restart kills all sound from the system.
Workaround: Using the system settings, switching soundcard's profile from Pro Audio to Analog Stereo Duplex and port to Line Out / headphones ...
0
votes
0
answers
17
views
Does loginctl terminate-user USER stop user's process gracefully?
In order to write to a directory, I made a user member of a group called node_exporter.
This user, called podman, had lingering enabled.
I logged out and logged in again and verified with id the new ...
1
vote
0
answers
11
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. ...
2
votes
0
answers
11
views
How can I reconfigure my keyboard layout on Arch+KDE?
Recently I got a Thinkpad T480 with a US keyboard layout and installed Arch (I know, the stereotype...), with KDE.
I mostly use Windows for work, and I'm used to using an American physical layout ...
3
votes
1
answer
48
views
Simplest way to use apt list output as argument to apt
I sometimes find myself wanting to use the output of apt list as a list of arguments to apt, i.e. a space separated list of package names.
Any time I want this I have to search for how to do it and ...
-3
votes
1
answer
27
views
How to fix the update and upgrade in ParrotOS
How do I fix this error?
GPG error: https://deb.parrot.sh/parrot parrot InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7A8286AF0E81EE4A
E: ...
3
votes
1
answer
58
views
How to find the IP address of a service listed in the "avahi-browse" output?
I can very happily list the systems on my local net with the avahi-browser command:
$ avahi-browse --all --verbose
Server version: avahi 0.8; Host name: mylinux.local
E Ifce Prot Name ...
1
vote
1
answer
17
views
No Xorg after upgrade on Debian testing/forky
After today's apt-upgrade of my Debian testing system I cannot start an (Xorg) x-session any more on a machine with Intel HD graphics and using the modesetting driver (the classic i915 does not work ...
8
votes
1
answer
371
views
What is the USER= value reported for sudo attempts?
On my Arch system, failed attempts to run sudo cause a line like this to be added to the logs (note the USER=root):
Nov 20 14:59:31 oregano sudo[191472]: bob : user NOT in sudoers ; TTY=pts/26 ; ...
0
votes
1
answer
32
views
Can I have a Systemd service unit stop only when other services have already stopped
I have 5 service units setup in systemd. I need service file 5 to only stop after 1-4 service files have stopped first. How can I make that happen.
7
votes
2
answers
646
views
Why does crontab use a wrong editor?
man crontab reads:
The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR
environment variables. After you exit from the editor, the modified ...
0
votes
1
answer
15
views
Debian as client to several different (!) LDAP servers using LDAP/NSS / nss-pam-ldapd
I want to use a Debian Stable system to authentificate to two different LDAP servers that provide user/password/group data using e.g. LDAP/NSS / nss-pam-ldapd (https://wiki.debian.org/LDAP/NSS, https:/...
0
votes
1
answer
29
views
Not able to yum/dnf gparted on centos 10
All,
I find that gparted is not downloaded on centos 10 even after installing sudo dnf install epel-release -y . Other packages also are not downloadable like gvim. Any idea what should I do?
Here are ...
0
votes
0
answers
48
views
how to convert hex memory dump to Docsis config file?
Hex memory dump is Docsis config file. Is it possible to convert this hex dump info valid Docsis config file? Preferably, using Perl and DOCSIS::ConfigFile module. (or Python scripts, python-docsis). ...
0
votes
0
answers
28
views
Linux kernel “BUG: Bad page state / Bad page cache in process python” during PyTorch distributed training (NVidia 5090 + Ubuntu 22.04)
I’m encountering a recurring kernel memory error while running heavy PyTorch training workloads .
The system eventually becomes unstable, training stops, SSH disconnects, and the machine needs a ...
0
votes
0
answers
9
views
Tablet mode: keyboard/touchpad not responsive after folding back to laptop position
I have an HP Elitebook X360, which can be folded to tablet mode.
I am running XFCE4 under GDM3 with Debian trixie.
Occasionally when I have used tablet mode, the keyboard and touchpad remain disabled ...
0
votes
0
answers
6
views
auditd rule invalid when the folder in the rule is missing - mounting disks
Goal is to use Linux's auditd to capture file copies from a folder after which a usb disk is auto mounted to, in RHEL-8.10.
Normally the usb disk is not mounted; I want to hot plug in the usb disk in ...
0
votes
0
answers
38
views
Arch Linux start script
Hi I was just wondering if this script looks ok I run it after I login thanks.
#!/bin/bash
echo "hi, starting wifi, nft and desktop"
sudo ls
sudo systemctl start wpaStart.service
sudo nft -...
0
votes
0
answers
21
views
Nvidia Settings Not Identifying Ultrawide Monitor's as Ultrawide After Update
Recently, after I updated my whole Arch config, something strange happened. My Nvidia Settings isn't showing an ultrawide option for my second monitor, despite both monitors being identical models. I'...
0
votes
1
answer
69
views
How to manage swap memory inside an encrypted LUKS LVM?
I am using Kubuntu which is Ubuntu with KDE. My swap partition is too small causing me some lag. I have 16GB Ram but it is set to 1.9GB. Attached is screen shots of my current partition. vgkubuntu is ...
0
votes
0
answers
15
views
Bind9 Queries Somtimes Fail
I migrated from a Windows DNS server to Bind9 this year. Both were configured as split DNS for local servers, and recursive for public servers (not forwarding). About once or twice a day now, I get ...
0
votes
1
answer
743
views
Why is this FAT filesystem recording access time?
FAT isn't meant to record file access time, but the FAT filesystem I have in a VeraCrypt container file does. Why is this?
This was before I opened the file /run/media/veracrypt1/test:
~ $ stat /run/...
2
votes
1
answer
34
views
ERROR activating modem: Using sim card for mobile broadband in manjaro
I have a sim card from sim.de and try to use it in my thinkpad laptop.
When I put the sim-card in it asks me for the pin. I logged the output of journalctl -u ModemManager -f
Nov 19 11:14:43 raphael-...
-1
votes
1
answer
55
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
25
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 /...
0
votes
0
answers
16
views
nixos says "wayland.windowManager.sway.config.bindswitches does not exist" even though it is clearly documented
I am trying to set up my sway configuration in home-manager on nixos, my config is as follows for sway
{ ... }:
let
laptop = "eDP-1";
in
{
wayland....
1
vote
1
answer
29
views
How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy?
How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy?
My ext4 disk was failing. I made a disk image.
I tried e2fsck and ...
2
votes
0
answers
25
views
Linux login and unlock screen by two passwords + face recognition
How to configure PAM to asks for password, and try recognize of face or input additional password.
I need to use sudo by face. Additional password is required to enhance security (nobody will run sudo ...
7
votes
4
answers
476
views
How to separate start directories and expression in `find`?
find takes an (optional) list of (what the man page calls) "starting points", i.e. directories, followed by an expression. Is there a way to cleanly separate both types of arguments so that ...
0
votes
0
answers
24
views
Docker + Create AP setup
I know this will be a bit of a stretch but...
So I'm running ArchLinux on a Desktop PC with an i5, RX 6800, and a Realtek Wifi card from TP Link.
I installed the linux wifi hotspot AUR package and ...
1
vote
1
answer
31
views
Kylin - Monitor CPU by process name
I am new to Kylin , I would like to monitor the CPU stats for a group of processes which share the same name. Let's pretend that the process name = BOB.exe
First idea is to use this type of format, ...
0
votes
1
answer
50
views
Why do environment variables in `~/.profile` appear in `systemctl --user show-environment` but not in my terminal?
I added some environment variables to my ~/.profile, for example:
export PIPX_BIN_DIR=$HOME/.pipx-global/bin
This works as expected—the executables installed via pipx are placed in the correct ...
0
votes
0
answers
25
views
More efficient way to experiment with display settings in Yocto
Having mostly used Yocto to get stuff done, rather than learning it proper, I figure I'm coming at the task of configuring display settings all wrong.
I have a custom board with a STM32MP157 and a ...
4
votes
3
answers
294
views
Headless disk-mount with user permissions
There is a headless machine, with Debian as its OS:
$ cat /etc/issue
Debian GNU/Linux 11 \n \l
$ uname -a
Linux mymachine 6.1.99 #33 SMP Tue Jan 21 11:32:39 CST 2025 aarch64 GNU/Linux
What I wish to ...
1
vote
2
answers
54
views
How to capture boot steps
I have a linux-box.
My hdd is nvme, hence boot is fast. I need to analyze each line of after grub.
Can I pass a kernel parameter to capture my boot lines?
1
vote
2
answers
143
views
How changing the terminal letters color and its whole background at the same time, using separate RGB or color codes?
It's often that when I am in a subject involving many processes of two or three kinds, I'm noticing that:
one terminal I've opened is dedicated for my subject of kind #1,
while another is opened to ...
1
vote
0
answers
24
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
42
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 ...
1
vote
0
answers
14
views
SSD benchmarking with fio - write cache confusion
I am looking at some SSDs and try to benchmark them. In particular, I wanted to see if I can reproduce the numbers in the datasheet.
Currently I am looking at a HUSSL4040BSS600 SSD which is SAS. With ...
2
votes
1
answer
197
views
Replacing the domain string in the compiled binary file with an IP address
Just in theory: is it possible to replace the domain string in the compiled binary file with an IP address by editing a binary file in place with sed? (IP address belongs to a different domain, but ...
1
vote
0
answers
36
views
How to use dm-mirror, or 'dm-raid raid1', with dmsetup only (no LVM automation)?
The goal is to create a mirror (aka raid1) device from two devices (to be mirrored), and (if needed) a third device that serves as the dirty region log / metadata / whatever. That, without using LVM ...
3
votes
1
answer
95
views
Wine cmd automatically escapes quotes, adds backslash
$ wine cmd /c 'echo "hello world"'
\"hello world\"
Where do the backslashes come from?
The command behaves differently in an interactive session:
$ wine cmd
Microsoft Windows 6.1....