Category "linux"

Linux ffmpeg utomatic encoder selection failed for output stream

I'm having an issue with doing basically anything in ffmpeg. When I input basic ffmpeg -i filename.mp4 filename.mp3 or ffmpeg -i video.mp4 -b:a 192K -vn music.m

Compilation Failing for xalan-c in Ubuntu

I am trying to build xalan-c (version 1.12) with icu in Ubuntu but it fails. Could anyone help me with this. Environment : Ubuntu 20.04 Steps to reproduce : Cl

generate random number and fill them in array

i want to generate 10 random number between 1 and 100 and store them in an array #!/bin/bash for ((i=0; i<10; i++)) do done

Kubernetes nfs-subdir-external-provisioner stuck in ContainerCreating / Unable to attach or mount volumes: unmounted volumes=[nfs-client-root]

I'm trying to install a nfs-client-provisioner and run a mongdb with it. Unfortunately, the nfs-client-provisioner hangs in ContainerCreating and says "Warning

How to check if a filesystem supports hard links in linux?

What's going on here is I have a construct that goes something like this: if (link(source, intermediate)) { if (pathconf(dirname(source), _PC_LI

Complex keyboard input to child process in C, Linux

Ive been trying to solve this one for some time but im unable to come up with a solution. I need a child process to understand complex WASD keyboard input (with

CentOS 7 Samba Server - Integrate with Windows AD

I am deploying Samba Server on CentOS 7 using winbind. And I am joining AD using #net join ads but i am getting below error. But i am able to login domain users

Command in dockerfile doesn't take effect

Below is my dockerfile. After the dependencies are installed, I want to delete a specific binary (ffmpeg) from the node_modules folder on the container, and the

Vscode cannot connect to remote Linux (_WebSocket close with status code 1006)

Remote connection to Linux. After entering the password, there are two prompts on the right coude not fetch remote environment failed to connect to the remote e

Python Upgrading leads to terminal... not opening

I just upgraded python in ubuntu to python 3.10 to use the match/case statements, but now, my terminal won't open. Anywhere. I tired opening it on Visual Studio

How to pass blank parameters to a script called in crontab (Linux)

I am trying to pass a blank parameter using double quotes, "", but it just gets ignored. All parameters after the blank parameter end up in the wrong position i

Why doesn't my multi-process writing program trigger concurrent conflict?

I'm trying to trigger some concurrent conflicts by having several processes writing to the same file, but couldn't: #include <stdio.h> #include <stdlib

Linux script not executing properly after a reboot

I am using a raspberry pi4 with 32bit Raspbian to display some webpages. I have a script to open 2 webpages, one on each monitor. The end of the script selects

using #if to run a function

I'm trying to run the expression _setmode only if I'm using Windows, and setlocale only if I'm using Linux, but I can't manage to make them work with a simple i

How to deploy qt applications in raspberrypi 4

i want deploy qt applications in raspberrypi and share apps with other raspberrypi without instal qt. As an executable file. I tried linuxdeployqt but it error

How can I make my Rust program run at startup?

I know about how to run programs at startup on Windows, but not Linux (even though I use Linux myself). Is there a library I can use which will automatically ru

Cross-compiling the gettext library: error when relinking for armv7a

I'm trying to cross compile (for armv7a and aarch64, android) the gettext library (dependency for glib). The configuration and compilation is successful, but du

Integrating Protobuf into Unreal Engine 4 (Linux)

I'm having trouble integrating protobuf (3.20.4) into UE4 as a static library and packaging for linux. The packaging fails with these errors : undefined symbol:

Using ssh to login to linux terminal from windows and run command in a logged in shell

First of all, this may seem like a duplicate question but I have searched stack overflow/various other forum sites and still haven't managed to find a solution.

Process 'rumpostgreswk' running on linux and took 100% memory and CPU, where does it come from?

I have a question, I'm running a nodeJs server on a Digital Ocean droplet. I'm using pm2 for monitoring the application, everything looks fine. However suddenly