Category "linux"

Decoding output from Valgrind

I'm trying to understand the output from Valgrind having executed it as follows: valgrind --leak-check=yes "someprogram" The output is here: ==30347== ==30347=

How can I setup network traffic alerts on a Linux machine using Prometheus?

I am using Prometheus to monitor network traffic on Linux machines. I see several useful metrics like node_network_receive_bytes_total, node_network_transmit_by

Not able to create flutter linux desktop application snapcraft build

I have developed a Linux desktop application with the help of flutter but now I am facing an error when I am trying to create the snapcraft build in #Flutter Pr

How Do I Clear The Credentials In AWS Configure?

I have deleted the AWS credentials in sudo nano ~/.aws/config. But, the credentials are still in aws configure. Is there a way to reset aws configure with clear

simple_read_from_buffer/simple_write_to_buffer vs. copy_to_user/copy_from_user

I recently wrote a module implementing these functions. What is the difference between the two? From my understanding, the copy_..._user functions are more sec

How to remove setgid (linux/unix)?

I just changed my file permissions using $ sudo chmod g+s filename and my file permissions turned from drwxr-xr-x to drwxr-sr-x. How do I remove it?

gensim error : no module named gensim

I trying to import gensim. I have the following code import gensim model = gensim.models.Word2Vec.load_word2vec_format('./model/GoogleNews- vectors-negative

how to compare only date from a model's datetimefield with current date?

I want to use Model.objects.filter(datetime_lte=datetime.datetime.now.date()) How exactly can I achieve this? I am using django 1.6.5. I want only records of cu

WebDriverException: no chrome binary at /usr/bin/google-chrome-stable or chrome binary not found

I am executing selenium test via Jenkins server in AWS Ubuntu. I was getting chrome binary not found error so I set chrome binary in my code. System.setPrope

How to measure the stack size of a process?

How do I find the stack size of a process ? /proc/5848/status gives me VmStk but this doesnt change No matter how much ever while loop and recursion I do in m

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