Category "linux"

How to pass passphrase of ssh in bash script? [duplicate]

I am discovering the bash scripting. I need to write a bash script to automatically connects my remote server with ssh. I am using MACOSX. I w

"An error occurred during the signature verification." in apt-update after adding key 3A79BD29 and sudo apt-key del <old-key> on Debian

the server I work on is a Debian 9.13 OS and "mysql Ver 14.14 Distrib 5.7.34,". I tried downloading package information from all configured sources with the fo

what is the best way to get target substring through regex in bash script

I am creating a script to automate and extract large amounts of text files; Currently, my problem is to get target id from .html files, example below: \ \ <

Connecting to a remote FTP server from Docker container running within remote Linux server

The goal of my project is to be able to schedule run a program from a linux server which connects to a remote (existing) ftp server and transfers from files fro

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