227,292 questions
Tooling
0
votes
8
replies
66
views
Which services are typically required to scale a LAMP stack for high-traffic production environments?
I am designing a LAMP-based application expected to handle high concurrent traffic (e.g., thousands of requests per minute). The core stack includes Linux, Apache, MySQL, and PHP.
Based on documented ...
Best practices
1
vote
2
replies
71
views
How does one enforce/who should enforce (app developer? library developer?) how multiple C++ libraries should or should NOT be loaded together?
I googled and studied a lot, but I can't find clarity yet.
I'm trying to understand the correct engineering approach for a Linux ELF / shared-library versioning problem in a C++ ecosystem.
Suppose I ...
-1
votes
0
answers
50
views
Linux DRM (Direct Rendering Mmanager) dumb-buffer creation issue [closed]
On dumb-buffer creation according to example:
struct drm_mode_create_dumb creq;
struct drm_mode_destroy_dumb dreq;
struct drm_mode_map_dumb mreq;
uint32_t fb;
int ret;
void *map;
/* create dumb buffer ...
Best practices
0
votes
8
replies
85
views
HDMI output direct from GPU memory
What Linux subsytem should be used for fast (60 fps, FullHD) direct draw content from GPU memory (OpenGL ES rendered content) on screen via HDMI? Is Direct Rendering Manger (DRM) enough for solving ...
Best practices
0
votes
2
replies
34
views
Isolating packages without using vbox/docker/timeshift
My goal is to not let some system packages leave clutter on my system, and I am pretty low on disk space, so I'd like to avoid using vbox, docker or timeshift for this purpose. These packages are ...
Advice
1
vote
6
replies
92
views
Is it safe to directly dereference mmap'ed I/O memory in userspace (e.g., via UIO)?
I have a question regarding memory-mapped I/O access in Linux, particularly in the context of device drivers and userspace frameworks like UIO.
When writing a Linux kernel device driver (especially on ...
-1
votes
0
answers
51
views
Is there a way to convince the Web Serial API to enumerate/talk to linux pseudo terminals (pty)? [closed]
I've written a service which can multiplex a physical serial port (eg. /dev/ttyACM0) into multiple pseudo terminals (eg. /dev/pts/9). Utilities like screen and minicom can talk to the pseudo terminals ...
-5
votes
0
answers
69
views
Unable to start ai tool - LM Studio as a daemon & I don't know how to register new service under init.d default list [closed]
All whatever I tried regarding making LM Studio to run as a service in my Linux Machine
$ lms server start
Waking up LM Studio service...
node:events:496
throw er; // Unhandled 'error' event
...
3
votes
1
answer
167
views
What's wrong with this minimal static ELF executable made by GNU ld with a linker script with only a .text section?
The ELF executable at the end of this question (base64'd) is the result of an experiment with trying to cut the program headers down to the absolute minimum. As far as I am aware, it should be ...
0
votes
0
answers
78
views
In shell pipes, maintaing resilience against orphaned process and buggy applications [duplicate]
Note: The question is not a duplicate of Getting ssh to execute a command in the background on target machine. The other question relates to background processes that may be sent the hangup signal.
...
0
votes
0
answers
52
views
Display an help for my scripts from command-line [duplicate]
I'd like to display an help for my scripts just like with other linux commands:
./ScriptWithHelp.sh --help
where ScriptWithHelp.sh contains:
if echo $1 | grep -q "--help"
then
echo "...
-6
votes
1
answer
79
views
Removing texts in between strings [closed]
I inspected ddcutil detect --verbose and put it in a variable. The output would look like the following:
Invalid display
I2C bus: /dev/i2c-9
...
This monitor does not support DDC/CI. (I2C slave ...
0
votes
0
answers
26
views
Switch InputMethod by awt.InputContext fail on linux
I recently have a problem of switching input method in my swing application running on linux, the following is my background:
OS: ubuntu22.04
Desktop: Gnome, X11
InputMethod framework: ibus 1.5.26
...
1
vote
1
answer
58
views
Unexpected behavior with tcsh. Why is the exit statement ignored here?
Does this look like expected behavior?
[jlong1s@testlogin01 ~]$ ps
PID TTY TIME CMD
3602516 pts/3 00:00:00 tcsh
3603415 pts/3 00:00:00 ps
[jlong1s@testlogin01 ~]$ /usr/...
Advice
0
votes
3
replies
78
views
How to use linux epoll et mode
I'm trying to understand how to use linux epoll et mode to work. Here's the source code of the ET Server. My question is: is this ET mode support multithread "as default"? I mean: If in ...