30 questions from the last 30 days
2
votes
0
answers
46
views
How to programatically start a drag for an Electron app on X11
I've been trying to reimplement electron-click-drag-plugin for the needs of my Electron app. But I hit a hard wall when implementing it for X11. I've successfully sent the EWMH event, but it doesn't ...
-3
votes
2
answers
82
views
Can pipe buffer limits be increased from inside a container? [closed]
In Linux, can a process inside a docker container increase a pipe buffer size beyond the maximum configured in the host OS?
I'm trying to write code to stream files between two different network ...
0
votes
2
answers
73
views
Cannot set initial app window size in javafx
I'm not able to set the initial window size. The app always displays 200x200.
public class tcase extends Application
{
@Override
public void start(Stage primaryStage)
{...
0
votes
1
answer
50
views
Call different bpf helpers depending on kernel version?
I need to get the current system time in my BTF probe. How can I call bpf_ktime_get_boot_ns() on kernels 5.8 and newer, and bpf_ktime_get_ns() on older kernels where bpf_ktime_get_boot_ns is not yet ...
Advice
1
vote
1
replies
51
views
How does getty work with systemd-logind on a linux system? What are their architectures?
I need clarification, since I fail to find a proper explanation on the internet and I don't trust ChatGPT.
What's the difference between linux getty program and systemd-logind? I understand that both ...
3
votes
1
answer
121
views
Getting alerted when N cpu cycles consumed by polling the file descriptor
The code below works if I tell it to send a signal, but that'll be a pain because I'll do this for many threads as well as the whole process. It's supposed to work without any signal or handler but ...
1
vote
0
answers
111
views
Number of branches reported by perf stat not equal to real number of test command
I test a simple program via perf stat
#include <cassert>
#include <cstddef>
#include <iostream>
int main(int argc, const char* argv[]) {
assert(argc == 3);
int64_t iters = ...
Best practices
1
vote
4
replies
144
views
What is the best approach to writing a personal config symlink management scriptfor linux?
The problem i'm trying to solve
I currently manage my configuration files with GNU stow.
To summarize the purpose of stow: If i store all of my configuration folders in one directory (wezterm/, neovim/...
-3
votes
0
answers
46
views
Printer detected via USB but not via CUPS and thus printing is failing [closed]
I am running Debian Linux (forky/testing) with kernel 6.19.11 on a 64 bit machine. I have a brother laser printer (hl2130) and printing via it was fine until the last couple of days where the message ...
-1
votes
0
answers
80
views
Want pthread_cond_timedwait alternative for CLOCK_PROCESS_CPUTIME_ID [closed]
I want a "killer" thread to wait for a duration after which it thinks it'll have something to do while other "worker" threads modify how long that will be. I'm worried about the ...
-6
votes
0
answers
128
views
OpenClaw throws GatewayClientRequestError and 500 errors when connected to Ollama on WSL2 Ubuntu [closed]
Problem Summary
I'm trying to run OpenClaw (Ollama's autonomous AI agent) with local LLMs on Ubuntu via WSL2. While OpenClaw launches successfully and connects to Ollama, it throws persistent errors ...
-7
votes
1
answer
72
views
How to prevent changes to a file even for a root script? [closed]
I have added a line to ~/.ssh/authorized_keys on a remote Debian server. Over night, the file got updated and the entry hence lost.
I know I should fix the overwrite, yet as woraround: How to prevent ...
2
votes
2
answers
276
views
+100
How to make my Timer fire in Release Build?
Context:
I am developing a game with Unreal Engine, and it runs fine on Windows in debug and release. Now I want to release a build for Linux. But my boost::asio networking is not working anymore; my ...
0
votes
1
answer
86
views
How to ignore the fd created by read_dir?
I'm trying to list all file descriptors opened by some process by accessing /proc/[process_pid]/fd
my code:
pub fn list_fds(&self) -> Option<Vec<usize>> {
let mut fd_vec:...
Advice
0
votes
1
replies
75
views
Looking for advice on choosing a stack and building a roadmap in low-level dev
Im a beginner system developer, and I want to gather everything I need to start my journey. I previously had experience in backend development with Golang, but now my direction has changed and I want ...