Category "linux"

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 //

CGROUP, Not found the cpu.weight in /sys/fs/cgroup/

I can't find /sys/fs/cgroup/cpu.weight, I only have cpu.pressure and cpu.stat and without the `cweight my minikube on docker doesn't work. How can I configure i

How can I get random numbers between 1-7 in kernel using get_random_bytes()?

int random_ticket; get_random_bytes(&random_ticket, sizeof(random_ticket)); I tried to do it like this but I think this method gives random numbers between

c - using nl80211 without libnl or libnl-genl?

I'm hoping to just use the header in the kernel, linux/nl80211.h to get the channel my network device is on. I'm on a very restricted system where building has

How to make the zenity --notification button execute a command

I'm trying to make the "Do default action" actually do something, and I've been experimenting with zenity --notification --listen, but no matter in what order o

Compile Apache without SSL

Without going into reasons why, I need to compile Apache on Redhat without OpenSSL. I am using the following to compile Apache 2.4.53 ./configure --prefix=/opt/

UnauthorizedAccessException when accessing a Windows file share from .NET Core app

I have an application written in .NET 5 ( soon to be .NET 6 ) that allows users to access files stored on a bunch of different user defined Windows network shar

How to use vsomeip with multiple VLANs

I have multiple VLANs in which different services over vsomeip are offered/requested. How would I setup vsomeip to achieve that? Is it possible to use one vsome

Got error 'Primary script unknown' with Apache alias outside document root

I've setup an Apache alias on a subdomain, which points to a directory outside the document root like this: Alias / /home/keyhelp/www/webmail/plugins/xcalendar/

Encrypting a video file with the 3DES algorithm

I am encrypting a video file using 3DES algorithm and ffmpeg library.In my program, I use two channels, each connected to its own instance of FFmpeg. Basically,

update-alternatives: warning: force to reinstall /usr/local/bin/pip3.10 because pip linkgroup is invalid

I got following message when I try to do something with pip. Wybór Ścieżka Priorytet Status --------------------

How to tag and store files, by metadata, in Python?

I want to build a manual file tagging system like this. Given that a folder contains these files: data/ budget.xls world_building_budget.txt a.txt b.exe

Building a switch user tool: How to gain root permissions without dependencies

I've been trying to make my own sudo program in Python, but I don't want to have any dependencies (like su or pkexec). How would I gain root access? Ideas: Have

Make can't find boost header in docker container

I'm trying to build a simple client server connection in docker with boost sockets. When I compile the files on ubuntu without docker it works. But when I try r

System() function is hang in linux

Situation: In my project, I want modify OVS source code to perform some my functions. I want when OVS receive a specific packet, it will add a flow to userspace

Dockerfile RUN command multiple inputs

I have a Dockerfile using which I am trying to build an image. I wish to have multiple inputs fetched from the user from STDIN, when the build runs. To get star

Add a waiting point in a heredoc block running on a remote server

I am trying to add a waiting point to my code which can then be resumed/unblocked manually. Sadly it is not working as expected. I guess due to how heredoc work

Bash -a vs bash && [duplicate]

I have this bash statement: if ls > /dev/null 2>&1 -a ls > /dev/null 2>&1; then echo "true"; else echo "false";