Category "linux"

forked process doesn't exit when parent invoke waitpid()

In this program 2 children process are forked, then one send string to another through pipe. When communication finished, the parent get stuck in waiting the ex

How to detect if a tun/tap device already exists

I want to create a tun device with the code, so before creating it I want to check if the tun device already exists Right now I'm doing this by determining if t

Python Socket Listener error with connecting to bash reverse shell - `bash: cannot set terminal process group (1057): Inappropriate ioctl for device`

Python Socket Listener error with connecting to bash reverse shell - bash: cannot set terminal process group (1057): Inappropriate ioctl for device I am workin

MIPI dphy driver probed with Invalid resource error

Hello we have custom rk3399 based board which runs debian image that we compiled with the help of this resource : https://wiki.radxa.com/Rockpi4/dev/Debian. We

No manual entry msg - Fedora

I'm trying on to use the man pages on RHEL. Every time I'm searching for manuals, I'm getting this error message: # man ls No manual entry for ls I've tried th

Why does reading from an exited PTY process return "Input/output error" in Rust?

I'm attempting to read from a process that's backed by a PTY in Rust, but once all bytes have been read from the process then reading from the process returns a

DMAR tables address map

I wanted to understand how the DMAR range is defined in the linux. We are assigning VT-D (intel vitualization technology) bar address range 16K for each root br

Is there a maximum number of continuous pages per process in Linux? If so, how to set it to unlimited?

The following code will generate errno 12 cannot allocate memory #include <sys/mman.h> #include <stdio.h> #include <stdlib.h> #include <fcn

uninstalling LINUX on same drive of current OS

last year I had to install Linux on my laptop, however, due to some issues I couldn't install it on other drives and it was forcing me to install it on the c dr

Sed command not working based on variable

I am having problems in execution a sepefic sed command. I have a bunch of files which will be target to several "find and replace" via sed. In the file_test th

How to check if supervisor process is running or stopped using bash script

I run multiple supervisor processes sometimes due to server overload some processes Stop indefinitely until you manually restart them. Is there a way I can writ

Tensorflow ImportError: invalid ELF header

python version:3.6.9 and 64-bit At the beginning, i can't download tensorflow ,i use pip install tensorflow,then it throw error ERROR: Could not find a version

How to make a linux pc go to sleep after a period of time?

I'm running an Arch Linux KDE PC, and I like to listen to calming music before sleeping. What command/script that I can run on my PC to make the device go to sl

How can I set the crond for docker? [duplicate]

I installed cron and FROM python:3.9.5 ENV PYTHONUNBUFFERED 1 RUN apt-get update && apt-get install -y netcat && apt-get inst

Is it possible to force Compile-Only with CMake?

I've got a very huge project (~180 libs, ~1Mio LOC, CMake but exclusively developed with VS2017 + permissive, ~30 third-parties) that needs to get ported to Lin

Automatically solve rm cannot remove path : device or resource busy error

I am trying to remove a directory /path/to/dir using the rm -rf command. Unfortunately I get the error rm: cannot remove '/path/to/dir/.nfsdda293a660f276ca00000

Cannot access to WSL2 port opened via IPv6 from Windows host

I have a node-server running at WSL2 Ubuntu-20.04. netstat -tulpn in WSL shows the following ports: The ports specified as 0.0.0.0:8080 can be accessed in both

pyautogui, locate on screen doen't work in linux

I am using linux, and it returns none instead of the co-ordinates. import pyautogui as p a=p.locateCenterOnScreen('like.png',confidence=.5) print(a) Did I di

Create nginx "sites-available" and "site-enabled" files along content using terminal commands

I have been assigned a task to automate the deployment process using digital ocean droplets. I am using doctl for creating the subdomain "A" record from my term

/usr/include/GNUstepBase/GSVersionMacros.h:359:16: fatal error: 'objc/blocks_runtime.h' file not found

I am trying to build a objective-c library integrated to a swift project on linux. I have this Package.swift for my main project: // swift-tools-version:5.5 //