Skip to main content

Questions tagged [linux]

NOTICE: All Linux questions must be related to programming; those that aren't will be closed. Use this tag only if your question relates to programming using Linux APIs or Linux-specific behavior, not just because you happen to run your code on Linux. If you need Linux support, you can try https://unix.stackexchange.com or the specific Linux distribution's Stack Exchange site like https://askubuntu.com or https://elementaryos.stackexchange.com/

linux
-2 votes
0 answers
35 views

Cannot create IP route for Raspberry Pi [closed]

I am trying to set up IP forwarding for my RaspberrPi, so that I can give my sensor hub internet access and be able to access it on a web server. I was following this tutorial here: https://www....
Sam's user avatar
  • 1
1 vote
0 answers
17 views

What is the correct way to use addr2line for a Linux PIE program?

We have raw addresses from a Linux program's call stack, but how do we use addr2line to convert the addresses if the program is a position-independent executable (PIE)? In Windows, we can record the ...
Myria's user avatar
  • 3,727
0 votes
0 answers
18 views

How to install a open source driver at Ubuntu? [closed]

I have a drive codec audio that is .c and .h . How i install this at Ubuntu. My version is the 22.04.3 LTS. Someone know what is the driver for nau8824 codec? I hope to install this drive at Ubuntu ...
Gabriel Martins's user avatar
0 votes
0 answers
34 views

Spring boot java Application(java version 17) is not running on tomcat 9 in Linux server

Previously, my Java backend was running with Java version 1.8. I have Tomcat 9 and Java version 11 installed on my Linux server. The backend was running perfectly with Java version 1.8 on the Tomcat 9 ...
david_23's user avatar
0 votes
0 answers
15 views

Memory limits set in your systemd slice are not being enforced correctly [closed]

I try to run process with memory and CPU limit but looks like it is not working and I keep running the process bigger than the memory limits. This is what I have: # /etc/systemd/system/group750m.slice ...
user63898's user avatar
  • 30.5k
1 vote
0 answers
50 views

How to disable segfault handler in go

I need a target executable for some test code that exits due to a SIGSEGV Right now I have some code like this: //go:generate bash -c "cc -x c <(echo 'int main() { return *(int*)0; }') -o ...
Dave Butler's user avatar
  • 1,740
-5 votes
0 answers
42 views

Appending to an Array in Bash [closed]

So I am currently working on some practice exercises for learning Bash Scripting, one of which is a brute forced way of doing calculating up to the nth Fibonacci sequence where n is an input from the ...
user26396173's user avatar
0 votes
0 answers
14 views

UriFormatException "The Authority/Host could not be parsed.", relative file URI, Linux only

I am getting this error when trying to assemble an absolute file URI, using a relative file uri in the first place, with the file: or file:./ syntax for the relative URI. Any idea why this behaves ...
Erik Hart's user avatar
  • 1,204
0 votes
0 answers
14 views

how to count traffic bytes with nf_conntrack

an arm device, not has iptables, have a bussiness process, need to count all traffic bytes of this process. my solution: get socket id, ls -lh /proc/pid/fd get port by socket id, /proc/net/tcp get ...
zhao yang's user avatar
0 votes
0 answers
11 views

MODBUS on Linux

I am currently working on a project allowing 2 pressure sensors to communicate with a Raspberry Pi's Linux based operating system. This system has two differential pressure sensors connected to an ...
TheCodingGuy's user avatar
0 votes
0 answers
11 views

Linux Mint: Why can't Flutter run adb and why does vscode keep saying flutter daemon has terminated

I'm having trouble getting flutter working on my new linux mint install. I have two problems: First problem: flutter doctor returns [☠] Connected device (the doctor check crashed) ✗ Due to an ...
Yannick Maljaars's user avatar
1 vote
1 answer
45 views

Dynamic update of plot in Matplotlib generating strange lines

I'm trying use dynamically add rectangles to a plot using Matplotlib but some weird lines are showing up in the plot. My grid is a class with init and an update function to add new rectangle shapes ...
Yuushabio's user avatar
0 votes
0 answers
30 views

Pass plain string as an argument to a command in bash script [duplicate]

I am trying to write a simple bash script for package installation using zypper. The script is supposed to read zypper package names line-by-line from packages.txt file, put them into an array and ...
Krzysztoff's user avatar
-2 votes
0 answers
24 views

Understanding the Connection and Differences between Shell, Bash, Unix, Linux [closed]

This is my first question on StackOverflow!Over the last months, I have been struggling to get my mind around the topics that I have mentioned above in the title.I have been trying to learn key-...
funky13's user avatar
0 votes
0 answers
51 views

calculating average load for specific process [closed]

I'm trying to understand how the load average in Linux is being calculated. I use top command and I get a result like, load average: 0.25, 0.67, 0.51. The values increase when a sample program of mine ...
Jelal's user avatar
  • 259
0 votes
1 answer
28 views

Linux: file locking from python script which is running inside docker container

Current situtation: I am running a docker container on a WAGO PFC200 PLC (custom embedded linux firmware). The container runs a python script which collects systeminfo like cpu load, memory usage etc. ...
Darius's user avatar
  • 1
0 votes
0 answers
14 views

Why does perf record --branch-any affect the CPU usage of the process?

The background is that I want to collect lbr events on the machine for pgo. But when I execute perf, I find that the CPU utilization of the processes running on the machine will increase. I am ...
zcfh's user avatar
  • 141
0 votes
0 answers
24 views

How to mirror TCP connections in nginx free version

Using nginx free version, on receiving a tcp connection request, is it possible to broadcast connection to list of backend servers simultaneously using streams module. Could find below post for http ...
ritesh kumar's user avatar
-1 votes
0 answers
23 views

linux send mail configuraiton [closed]

I'm trying to send html email with sendmail plugin on linux. But I need to set smtp server url how can I set while sending this mail. ( echo "To: [email protected]" echo "Subject: Test"...
Emrahall's user avatar
-2 votes
0 answers
17 views

Nagios and Ndo issue [closed]

i have a Linux server it has installed nagios and ndo2db.nagios and ndo work well but nagios log say following error ndomod: Still unable to connect to data sink. 2633 items lost, 5000 queued items ...
HiroMB's user avatar
  • 1
0 votes
0 answers
34 views

Crontab jobs don't inherit cgroups from crond, why? [closed]

I am trying to isolate cpus by cpuset cgroup, and I set the cpuset cgroup of crond to 'isolated', but the crontab job just uses the root cgroup. test program: */1 * * * * root cat /proc/self/cgroup &...
user4557212's user avatar
-2 votes
0 answers
38 views

OpenVAS / GVM installation error on kali linux 2024 (ERROR: Your GVM-23.11.0 installation is not yet complete!) [closed]

$sudo gvm-check-setup gvm-check-setup 23.11.0 Test completeness and readiness of GVM-23.11.0 Step 1: Checking OpenVAS (Scanner)... OK: OpenVAS Scanner is present in version 23.4.1. OK: Notus Scanner ...
islem kammoun's user avatar
0 votes
0 answers
25 views

liburing queue length confined to 32kb, ulimit -l = unlimited [closed]

I have configured my ulimit to unlimited but for some reason my io_uring ring length is confined to 32kb no matter what. my kernel version is 6.8 on fedora 38 I am not entirely sure if i ...
Henry Chen's user avatar
0 votes
0 answers
29 views

Apache2 - protect only directory but not subdirectory

I'm trying to host a webserver with Apache2 on Debian 12. I want to limit access to webserver/dir1 with a password promt. This already works. My issue is, that webserver/dir1/subdir1 has to be ...
T0xxic's user avatar
  • 21
-3 votes
0 answers
20 views

MFT process name [closed]

I am new to Linux and want to monitor the MFT process using centreon. Here is the check command Centreon will execute periodically on the target machine using SNMTP to retrieve data. /usr/lib/centreon/...
ayoub's user avatar
  • 1
-2 votes
0 answers
53 views

sendmail command not able to send mail [closed]

I am getting below error while running the below script, I have installed the sendmail packages. The Email Id's I used are valid. Error:- error No recipient addresses found in header Script:- if ping ...
Salman's user avatar
  • 1,795
1 vote
3 answers
42 views

Why I have to specify - sh - -c - command instead of just - command in k8s livenessProbe exec command (and potentially elsewhere)

I'm trying to exec command in livenessProbe, I have connected to the container interactively and tested the command: exit $(test $(date +%H) -eq 3 && echo 1 || echo 0) which produced the ...
Aurimas Stands with Ukraine's user avatar
-1 votes
0 answers
31 views

X11 forwarding request failed on channel 0 in the CentOS7 after updating openssh [closed]

After updating openssl and openssh, I got trouble with server. (base) ichan-yeong@ichan-yeong-ui-noteubug LAB_local % ssh -X ID@server X11 forwarding request failed on channel 0 [chanyeong:~]$ xclock ...
이찬영's user avatar
0 votes
0 answers
14 views

Unable to create file or filename of specific name in linux directory (openwrt) [closed]

Neither folders nor directories named mi_box can be created. Other filename files and directories can be created normally. File permissions are 777. The user is root. The system is based on OpenWRT ...
the_stars_wy's user avatar
-1 votes
0 answers
28 views

Custom Linux kernel compilation issue [closed]

I am compiling the Linux kernel, while after conducting make -j$(nproc) for scx-kernel-releases-6.10-rc7-scx1, I've faced the following errors: make[1]: *** [/home/mine/Downloads/scx-kernel-releases-6....
OmT's user avatar
  • 57
-2 votes
0 answers
55 views
+250

Alacritty - Can't see cursor after up launch on Ubuntu

Can't see a cursor when I launch alacritty via Linux making it unusable via a fresh install... Am running a virtualized Ubuntu 24.04 Linux through UTM on my Apple M2 Macbook Pro. Everything (...
PacificNW_Lover's user avatar
-3 votes
1 answer
29 views

How to install curl on a linux container being built by windows server

I currently have a windows build server. Unfortunately I can't change that to be linux. I require my container to have the curl command but I am unsure how to install curl while in a Windows Server. ...
Master's user avatar
  • 2,125
0 votes
0 answers
46 views

How do I keep my kernel module installed? [duplicate]

I'm quite new to Linux, so pardon me. Running Kali Linux 6.8.11-amd64. I'm following a hacking book and I've reached a section that is dedicated to rootkits. Specifically making a C program to replace ...
Spectre 3007's user avatar
-1 votes
0 answers
34 views

Using custom shutdown command string in Tomcat without modifying server.xml file

I have a kubernetes tomcat deployment and with property readOnlyRootFilesystem: true which prohibits me from modifying server.xml file. But I need to use a random shutdown port every time the tomcat ...
Shubhankar Kumar's user avatar
-2 votes
0 answers
16 views

Linux fedora option won't appear on grub boot menu after new fedora (additional) instalation [closed]

Recently I had my fedora (39) running ok, every time I booted the pc grub boot menu jumped in asking which distro I wanted to run. Everything ok. Then I created a new disk partition and installed a ...
user18672350's user avatar
0 votes
0 answers
34 views

What is the difference between return NULL and pthread_exit(NULL) while terminating the detached thread [duplicate]

I am trying to understand what happens when we return NULL from the thread and what happens when we call pthread_exit(NULL) from the thread? I am not able to understand when to use what? Can somebody ...
user2718281's user avatar
0 votes
0 answers
26 views

apt-get not working in windows teamcity build

I have a simple docker file that installs curl for my container FROM mcr.microsoft.com/dotnet/aspnet:6.0 run apt-get -y update; apt-get -y install curl WORKDIR /app COPY ["bin/Release/net6.0/&...
Master's user avatar
  • 2,125
-2 votes
0 answers
16 views

Issue with RAID Detection on Oracle Linux 9.4 after Upgrading from Oracle Linux 7.9 [closed]

Previous setup: Oracle Linux 7.9, RAID1 with 2 SSDs. Current setup: Oracle Linux 9.4 installation, only one SSD detected as a partition. Attempted to use the documentation link provided (https://docs....
Nik Wink's user avatar
0 votes
0 answers
17 views

failed authentication with kerberos

The project involves developing a secure authentication system using GSSAPI for a client-server connection, with the aim to operate everything locally on a single machine using Kerberos. The system is ...
Angelo Pagotto's user avatar
-2 votes
0 answers
22 views

kerberos authentication: Errore di autenticazione: Failed to complete GSSAPI step: 0

The project involves developing a secure authentication system using GSSAPI for a client-server connection, with the aim to operate everything locally on a single machine using Kerberos. The system is ...
tom james's user avatar
-2 votes
0 answers
18 views

Oracle Linux 9 rsa-Key [closed]

How can I determine which RSA key I have and resolve any compatibility issues with the updated security requirements? I'm trying to establish an SSH connection using an RSA key on a KVM host running ...
Nik Wink's user avatar
1 vote
1 answer
76 views

Can pthread_exit be used with noexcept functions?

I have a model where minimal work happens on main thread, and almost all work happens on worker threads. I want to ensure that the main thread NEVER dies and ALWAYS returns back to the OS. Since, all ...
Wolfie's user avatar
  • 101
1 vote
0 answers
23 views

Getting Active Directory "SecurityDescriptor" attribute in .net core on linux machine

I'm using the following c# .net core code to get the ntSecurityDescriptor attribute from Active Directory server. I'm using the Novell.Directory.Ldap library because I need this code to run on a Linux ...
Amir M's user avatar
  • 536
0 votes
2 answers
57 views

why are same Python imports on Windows so slow compared to Linux? (Ubuntu)

I am building a large Python app, and once starting it from console as python main.py it wouldn't take too long for application to start up on my Ubuntu 22.04 OS. Everything was good, and then I ...
Jokubas11's user avatar
  • 115
0 votes
0 answers
61 views

io.Copy on ssd costs too much time

Recently I developed a simple file upload server using the Go language. The key code is as follows: func saveFile(r io.Reader, n int64) error { objectID := "1cb700e18a864328a561641736af934c&...
simaocat's user avatar
0 votes
1 answer
32 views

docker kills all processes after 5 min, also fails to get created containers running

For many years, I have been running two websites without any problems, using several Docker containers on a virtual server that was once set up with CoreOS. And I never encountered a situation which I ...
kklepper's user avatar
  • 783
-2 votes
0 answers
20 views

gitlab ci\cd upload data to server stuck

enter image description here I don`t want what is heppening rsync -avz --progress -e "ssh -o StrictHostKeyChecking=no -p $DEV_SSH_PORT -i $DEV_SSH_FILE" build/ $DEV_USER@$DEV_HOST:$...
sulaymon yahyo's user avatar
0 votes
0 answers
5k views

fatal: unable to access 'http://gitlabxx.xx/xxx/xxgit/': Could not resolve host: gitlab-xxxx.xx

i have a VM where gitlab is installed, it is accessible via the browser via https://gitlab-xxxx.xx (using vpn), this domain name exist only internally (interne DNS) not outside. from the second VM i'm ...
Java user's user avatar
  • 291
-1 votes
0 answers
46 views

How does SYSCALL save the userspace RSP?

On a x86 CPU running in long mode, how is the user-mode $RSP value saved after the SYSCALL instruction by the kernel's handler function? When changing from user mode (CPL=3) to kernel mode (CPL=0), ...
quixotrykd's user avatar
-1 votes
0 answers
31 views

Java RMI issue: localhost is being resolved to random IP

I'm running a Java RMI application in which both client and server run on the same host, so that clients connects to server at localhost. After I updated my system to JRE17 (Debian bookworm armhf), I ...
ichthuss's user avatar

15 30 50 per page