Category "linux"

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

Cannot access to WSL2 port opened via IPv6 from Windows host

I have a node-server running at WSL2 Ubuntu-20.04. netstat -tulpn in WSL shows the following ports: The ports specified as 0.0.0.0:8080 can be accessed in both

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