Category "linux"

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";

Cron job: how to run a script that requires to open display?

I want to set up a cron job to run a python script, but it gives me this error: RuntimeError: could not open display This is because I import a module that

Download a specific folder from on-prem GitLab

I have an on-prem GitLab with a huge repository with many folders. I'm trying to create a freestyle Jenkins job that would only retrieve the folder from the rep

Ubuntu 22.04 OpenVpn server error: write to TUN/TAP : Invalid argument (code=22)

I start openvpn server with openvpn --dev tun --ifconfig 172.16.0.1 172.16.0.2 --cipher AES-256-CBC on my Ubuntu 22.04 Linux Box I generate the certificates and

Ubuntu 22.04 OpenVpn server error: write to TUN/TAP : Invalid argument (code=22)

I start openvpn server with openvpn --dev tun --ifconfig 172.16.0.1 172.16.0.2 --cipher AES-256-CBC on my Ubuntu 22.04 Linux Box I generate the certificates and

While running build on Teamcity getting below error base dir does not exist

java.lang.IllegalStateException basedir does not exist. While packaging the application using maven

conky using a function call within an if statement

How do I call a function after loading it in conkyrc? For example: I'm trying to get the active interface name which is returning properly ${lua conky_findInte

Docker default-ulimit nofile setting

/etc/docker/daemon.json has the following contents { "live-restore": true, "default-ulimits": { "memlock": { "Hard": -1, "Name": "memlock",

docker copy and chown in bash script

I'm building a network with docker compose and some bash scripts and i'm having problems during the process. Basically i have a some containers and volumes. In

Converting .ova file to .vdi

I had installed mininet-wifi on virtual box via .ova file. Its operating system was lubuntu. As a result of moving and deleting, the .vdi file in the mininet-wi

What does "rc" mean in dot files

In my home folder in Linux I have several config files that have "rc" as a file name extension: $ ls -a ~/|pcregrep 'rc$' .bashrc .octaverc .perltidyrc .screen

Running executable CGI on NGINX (NOT PHP!)

I have an older web application that uses .cgi script files. These are compiled ELF binaries, directly executable on the system. I have been able to get these r

How can I add Linux source code global variable?

I face a situation where I need to declare a global variable so every file of Linux source code can reference it. As much as I know, Linux is a Monolithic kerne