Category "linux"

Failed compile delegate Raspbian

i trying to compile the latest ver of Delegate on my rpi3 with this tuto (i use raspbian): https://its-more.jp/delegate/ftp/pub/DeleGate/INSTALL.htm but i have

Deploy Strapi on AWS - ERROR: "Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?"

I'm trying deploy Strapi on AWS, but when I'm launching pm2, then I'm getting error: "Knex: Timeout acquiring a connection. The pool is probably full. Are you m

How to use sed to remove the last n lines of a file

I want to remove some n lines from the end of a file. Can this be done using sed? For example, to remove lines from 2 to 4, I can use $ sed '2,4d' file But

libudev-dev is not installed in debian

I have to install pcsc-lite 1.8.13 on my debian-sid operating system. When I run :/configure, I encounter "install libudev-dev" error. I have installed libud

How to emulate TrustZone in QEMU?

I'm trying to emulate TrustZone features in Qemu. I've found two links that seems explain this process. The First Reference doesn't attach the image kernel tha

How to read a sector using a bio request in Linux kernel

How do I create my own bio request to read a sector from the disk drive ? I am trying the following but it freezes the system. static void read_bio() { st

How to show a Message Dialog in GTK using GTK# (Mono)

I would like to show a dialog inside my GTK# application (I'm using MonoDevelop). Sorry for the silly question, but I'm pretty new to GTK and Linux in general.

How to list pipes used by a process with a bash command

Is there a way to list pipes used by a running linux process (e.g. given its pid or process name) and to determine their used capacity? Something like: lspip

Run multiple python scripts concurrently

How can I run multiple python scripts? At the moment I run one like so python script1.py. I've tried python script1.py script2.py and that doesn't work: only t

Nginx RTMP not recording

I already setting up Nginx RTMP in ubuntu linux hosted by DigitalOcean. And currently running my laravel web application in localhost mode in my desktop. Everyt

Commands to control the volume of a connected bluetooth device in Linux? [closed]

Let's say I have paired and connected a Bluetooth headset successfully to my Linux system. I know I can check my Bluetooth device MAC id from

How do I access the `addr2line` functionality within my C++ program?

I need to get the information provided by addr2line (source file and line from backtracing a function call) from within a C++ program. I know I can call addr2li

How to change the starting directory of a tmux session?

The directory where you start a tmux session in will be the directory that all new windows will start at. My question is, how can you change this starting dir

Configuring for a compiler different than the default while running configure

I am compiling the glibc library. Before I could do that, I need to run configure. However, for compiling glibc, I need to use the gcc compiler which is not the

Segmentation fault in calling Python script from C++

Summary: I am getting a segfault when calling an embedded Python script, which somehow only happens when the script is called the second time around. Hello the

Linux - Command a2ps For PDF File

it is possible to print a PDF file with the a2ps command? If someone could give me an example set?

Java - Azure Application Insights Dynamic Tracing not working with docker images

Azure Functions has dynamic tracing functionality for Java with App Insights. Where it collects metrics against several libraries. Full list here. As per this,

can we use poll function with unnamed pipes?

I am trying to write a program where i need to monitor ends of unnamed pipe for certain events. Can I use unnamed pipes with poll function? If yes, can you plea

How to check if a file is empty in Bash?

I have a file called diff.txt. I Want to check whether it is empty. I wrote a bash script something like below, but I couldn't get it work. if [ -s diff.txt ] t

Linux: buddy system free memory

Could anyone explain this code? page_idx = page_to_pfn(page) & ((1 << MAX_ORDER) - 1); page_to_pfn() have already return the page_idx, so what does