Questions tagged [linux]

NOTICE: All Linux questions must be related to programming; those that aren't will be closed. Use this tag only if your question relates to programming using Linux APIs or Linux-specific behavior, not just because you happen to run your code on Linux. If you need Linux support, you can try https://unix.stackexchange.com or the specific Linux distribution's Stack Exchange site like https://askubuntu.com or https://elementaryos.stackexchange.com/

linux
63,738 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
51 votes
1 answer
919 views

Qt5 VideoOverview example does not work. Any solution?

I am stuck for a month with a video example given in Qt Video Overview. I tried that code, but I only got a blank square (QWidget). I am using GStreamer0.10 for media playback over Qt5. I also played ...
user avatar
46 votes
2 answers
2k views

Generated system.img not running on emulator

I wanted to build a custom ROM for Android TV. I have followed the steps given on the Android Source Code - AOSP website and downloaded the source using the commands below: repo init -u https://...
krupal.agile's user avatar
33 votes
1 answer
1k views

Open .NET Core 2.0 dump in lldb on Linux - which lldb version?

I'm trying to open a .NET Core 2.0 dump on Ubuntu 16.04, following instructions from http://blogs.microsoft.co.il/sasha/2017/02/26/analyzing-a-net-core-core-dump-on-linux/ Dump is created from ...
Pavel Tupitsyn's user avatar
21 votes
0 answers
843 views

Linux timer hangs sometime and stops at 1ns

I have an embedded board with PowerPC 5200 running Realtime Linux with version 2.6.33. My application is using one high-resolution timer in Linux for alarms. This timer sometimes didn’t expire. The ...
Vijay Katoch's user avatar
20 votes
2 answers
2k views

Error building Ionic app: Failed to execute aapt (CordovaLib:processDebugResources)

I'm trying to use Ionic framework to build hybrid mobile apps but I'm facing the following problem since a few days. When I want to build the application (which is actually a blank project), the ...
Jerome's user avatar
  • 201
19 votes
0 answers
236 views

PredectionIO via vagrant : pio-start-all: command not found

I've been struggling for weeks just trying to install PredictionIO. Today I came across a new "easy" method for installing via vagrant: https://www.sitepoint.com/predictionio-bootstrapping-a-movie-...
Mohamed  Kira's user avatar
18 votes
2 answers
620 views

Raspberry Pi 2 - Distortion while moving objects in Portrait mode

I am currently working on a Kiosk system based on the Raspberry Pi 2 running Raspbian which runs a Java app. Everything works perfectly well, except for a distortion on the screen which appears while ...
DrenImeraj's user avatar
17 votes
2 answers
2k views

How to boot headfull (vs headless) android emulator via SSH

Via remote viewer VNC I can boot android emulator on remote machine emulator -avd emu1 but via SSH on remote machine I get error emulator: INFO: QtLogger.cpp:68: Warning: could not connect to ...
the_prole's user avatar
  • 8,655
16 votes
2 answers
5k views

'configure: error: cannot compute sizeof (long long)' on scientific linux when installing ruby

I'm trying to update my version of ruby, running on Scientific Linux, but the command: $ rvm install ruby-2.1.6 fails with this error: checking size of long long... configure: error: in `/localdisk/...
Eilidh Troup's user avatar
15 votes
0 answers
10k views

Disabling GPU Acceleration in Cypress

I'm running Cypress in a Docker container in Jenkins. This is my Dockerfile: #Base image taken from:https://github.com/cypress-io/cypress-docker-images FROM cypress/browsers:node14.17.0-chrome91-ff89 #...
Tommy VDFN's user avatar
15 votes
1 answer
975 views

How to show a console window when debugging a C# app through WSL in Visual Studio?

I've followed the instructions shown here to get WSL running, and I can successfully debug my C# application on Windows in a Linux environment. The problem is that by default, there is no console ...
akvgergo's user avatar
  • 176
15 votes
0 answers
2k views

jackd cannot use real-time scheduling within docker container

I cannot for the life of me figure out how to get jackd to run with realtime priority within a docker container. My goal is to get SuperCollider audio streaming over the internet using webrtc with ...
po.studio's user avatar
  • 4,087
15 votes
1 answer
1k views

Get X/Y position of caret (input text cursor) under Xorg?

I'd like to display a popover right above where the user is typing, in any Linux app (GTK, Qt, Electron, etc.), running on X. I figured out creating the popover, now I'm trying to figure out how to ...
nkkollaw's user avatar
  • 2,019
15 votes
1 answer
7k views

SYSV vs. Linux/GNU ELF formats

The question is in the context of the following question: Why are libraries not found, even though they are clearly on the -L path? . It seems that my libraries and my object file have a different ELF ...
Michael's user avatar
  • 7,617
15 votes
1 answer
26k views

Docker run "error while creating mount source path '[...]': mkdir [...]: permission denied"

I'm trying to mount a directory in Docker run: docker run --restart always -t -v /home/dir1/dir2/dir3:/dirX --name [...] But I get the error: error while creating mount source path '/home/dir1/dir2/...
Izik's user avatar
  • 838
14 votes
0 answers
6k views

Determine TSC frequency on Linux

Given an x86 with a constant TSC, which is useful for measuring real time, how can one convert between the "units" of TSC reference cycles and normal human real-time units like nanoseconds using the ...
BeeOnRope's user avatar
  • 62.5k
14 votes
1 answer
5k views

ffmpeg error: cur_dts is invalid

I'm trying to record video and audio from my webcam with the following command: ffmpeg -f v4l2 -input_format mjpeg -s uhd2160 -i /dev/video0 -f pulse -channels 1 -i default video.mpg but it seems to ...
Caballero's user avatar
  • 11.9k
14 votes
2 answers
6k views

OSX equivalent bluetoothctl command

When I use linux, i have a CLI ther eis bluetoothctl which I could use. Is there an equivalent one for MacOS? I am using OSX El Capitan. Thank you!
Nicky Lim's user avatar
  • 139
13 votes
0 answers
12k views

How to manually install VS Code Server (without VS Code trying to install again)?

I try to run my Visual Studio code in a container using "Remote-Containers: Reopen in Container". For this I have the following folder structure: .devcontainer/ devcontainer.env devcontainer.json ...
mgross's user avatar
  • 622
13 votes
1 answer
14k views

Supervisor FATAl Exited too quickly (process log may have details(About inet_http_server and unix_http_server)

I wrote a Django project and I use supervisor with gunicorn /etc/supervisor/conf.d/weather.conf [group:weather_station] programs=site [program:site] directory=$PROJECT command=/home/nhcc/.local/...
Jonathan Cheng's user avatar
12 votes
2 answers
1k views

Call matlab shared library from dotnet core on linux

I am trying to call a shared library created with MathWorks MATLAB Compiler SDK from C# (.NET Core) running on a Linux container. I have a matlab .m file that I've compiled into a .dll using the ...
Dennis Dunn's user avatar
12 votes
3 answers
10k views

golang mkdir /usr/local/go/pkg/mod permission denied

OS: Windows 11 WSL2; IDE: Goland Latest I am trying to open my IDE Goland, but I get this error when the IDE tries to index my project. warning: GOPATH set to GOROOT (/usr/local/go) has no effect go: ...
niepl's user avatar
  • 181
11 votes
0 answers
11k views

Error while loading libatk-bridge-2.0.so.0

I have created a NodeJS app which is using Puppeteer. Locally (Windows) it is working totally fine, but when I wanted to deploy the app on a shared hosting platform (Linux Server), I got the following ...
Kathleen Wrede's user avatar
11 votes
0 answers
1k views

send errors from "docker build" directives to stderr instead of stdout?

When building a docker images, errors that are caused by RUN commands are printed to stdout instead of stderr. For example: If I run the command flooby on my shell, the fact that it fails because the ...
sixty4bit's user avatar
  • 7,718
11 votes
0 answers
1k views

How can I spawn processes without fork() in Python 2.7?

Python 3.4+ added multiprocessing.set_start_method('spawn') which allows to create processes that don't share memory with the main process. I'm trying to get this behavior in Python 2.7. Are there any ...
danijar's user avatar
  • 33.4k
11 votes
0 answers
715 views

"catch" can't catch exception from library

I have this method in library: #include <stdexcept> mytype* myfunc() { throw std::runtime_error("is uncatchable"); } and this in int main() of executable process which links library. try ...
Arkady's user avatar
  • 2,122
11 votes
0 answers
15k views

perf have no permission to collect stats

When I use perf to collect system stats, like this sudo perf record -a -g -F 997 -p pid sleep 30 then I got Error: You may not have permission to collect stats. Consider tweaking /proc/sys/kernel/...
bloomstar's user avatar
  • 111
11 votes
1 answer
5k views

freeglut (something): failed to open display ''

I compiled a C++ code under Linux (Ubuntu) and everything is fine as far as I connect a monitor to my PC. My code shows some graphics and then it saves their screenshots. The runtime graphic is not ...
ar2015's user avatar
  • 5,838
11 votes
0 answers
5k views

ZOE ERROR (from /usr/lib/snap/snap): error opening parameter file

I package electron app on ubuntu 14.04 LTS using snapcraft.I build it by refering this link.Package was build successfully but when i install the package using following command sudo snap install ...
Pitabas Prathal's user avatar
11 votes
0 answers
5k views

Aria2 max-connection not working

I installed aria2 (1.18.1) in my ubuntu. but the problem is it can not increase download connection. aria2c -x 10 http://mirror.sg.leaseweb.net/speedtest/100mb.bin [#fe34b4 2.1MiB/95MiB(2%) CN:4 DL:...
TonyStark's user avatar
  • 379
11 votes
2 answers
8k views

How can enable udev sync successfully in docker?

I have downloaded and install the static-linked docker 1.6.1 from this site, and run it on RHEL 7.1: [root@localhost bin]# ./docker -d WARN[0000] Udev sync is not supported. This will lead to ...
Nan Xiao's user avatar
  • 17.1k
11 votes
2 answers
9k views

X11 Dependency, Compile Dbus without X11, starting only Shell C++ Applications Raspbian Linux

Hello Dear SO Community :) I am trying to get DBus working on my Raspberry Pi. The example code from libdbus-c++-1 is working fine when i am in the Pi Desktop environment -> (startx) My researches ...
Dogan's user avatar
  • 181
11 votes
0 answers
997 views

Can Doxygen be coerced into creating decent man pages?

I started out looking for a way to generate man pages from source code. I now have Doxygen setup, and it generates awesome HTML pages which are organized, helpful, etc. But... it seems Doxygen sucks ...
Stéphane's user avatar
  • 19.9k
11 votes
1 answer
2k views

Why arm-linux-gnueabi-gcc and not arm-none-eabi-gcc when compiling Linux kernel and uBoot?

I have some experience compiling bare metal code for ARM cortex-m devices as well as the Linux kernel, uBoot, and applications for the Beaglebone Black (BBB) (more featured ARM with MMU, for those ...
Joshua DeWeese's user avatar
10 votes
1 answer
2k views

gunicorn Flask application hangs in Docker

I have a Flask application that I run through gunicorn (on a Dell latitude 5410 laptop with Ubuntu 20.04) and I configured the Docker to run it as suggested in this wonderful guide. Here is my boot.sh:...
cccnrc's user avatar
  • 1,207
10 votes
0 answers
770 views

How to Send "CTRL+C" / SIGINT signal to Gradle JavaExec task type forked JVM?

I have the following Gradle task task bootup(type: JavaExec) { dependsOn build classpath = sourceSets.main.runtimeClasspath main = 'org.example.ServerLauncher' args 'hello' maxHeapSize '512m'...
sampath.xyz's user avatar
10 votes
1 answer
1k views

.Net Core DebugDiag Equivalent

For .Net 4.6.x, I have heavily relied upon DebugDiag 2 Anytime Production applications had high CPU issues, deadlocks, etc, I would use that tool to capture dumps of w3svc and it prints out a nice ...
bladefist's user avatar
  • 1,084
10 votes
0 answers
6k views

docker non-root bind-mount permissions, WITH --userns-remap

all: flailing around trying to get bind-mount permissions working. My goal is to bind mount a volume in a container, so that: (a) the container does NOT run the entry point as root user (b) the ...
user1680772's user avatar
10 votes
1 answer
4k views

Libtool: link: unable to infer tagged configuration

I am trying to cross-compile linphone for ARM. I configure it using ./configure --host=arm-linux-gnueabi --with-gnu-ld --disable-static --disable-glib --with-osip=/home/user/linphone_wheezy --with-...
Arshan's user avatar
  • 744
10 votes
0 answers
14k views

Why dd returns bad address error with /dev/mem?

I run an embedded linux-3.10.29 on a PowerPC board (big-endian). To debug my ethernet controller, I need to check some system registers. The SoC system registers lies at address 0xe0000000 (3584M). So ...
m-ric's user avatar
  • 5,731
10 votes
1 answer
5k views

Plink timeout and proxy under linux

I have made a script in bash which create a connection to a list of server. After each connection, if it succeed, i execute a command. Connections are under a loop. For know i use Plink. My script ...
Mageni's user avatar
  • 101
10 votes
0 answers
9k views

Detecting if the monitor is powered off

I have a kiosk type application and I need to be notified if the LCD TV is powered off so I can chastise someone. I'm running Ubuntu 10.10 with nVidia video cards and the nVidia drivers. The TVs are ...
Matt Gorecki's user avatar
10 votes
1 answer
4k views

How do I install only mongodb-org-shell and not mongodb in alpine?

How can I install just a mongo client shell on docker alpine using which I can connect to mongodb on another server? This is to reduce the size of my image.
Flake's user avatar
  • 1,406
9 votes
1 answer
2k views

How to check if process runs within a docker container (cgroup v2 linux host)

How to check if a process is running from within a Docker container? I'd like a method that works reliably, and that is future-proof. This was already asked and answered at How to determine if a ...
elboulangero's user avatar
9 votes
0 answers
2k views

Is it possible to run an ARM64 vagrant instance on the x86_64 host

I'm trying to run an ARM64 Ubuntu VM on an x86_64 host with vagrant for development purposes. I searched the vagrant box on their website only found this one: https://app.vagrantup.com/boxes/search?...
xiaogw's user avatar
  • 695
9 votes
1 answer
3k views

Building OpenSSH for Android

NOTE: I went through most of the other posts, they all use an older version of the NDK which would not be ideal for my usecase. I want to build OpenSSH 8.2 for Android. Here is the script I made to ...
Belval's user avatar
  • 1,306
9 votes
0 answers
617 views

subprocess.Popen hangs for ~70 seconds using Python3?

In my program I have this utility function for executing commands in shell, here's a simplified version of it: def run_command(cmd): s = time.time() print('starting subprocess') proc = ...
Bob Sacamano's user avatar
9 votes
0 answers
10k views

SSH Tunnel - channel 2: open failed: administratively prohibited - Ubuntu 18.4 VM

I need to run an android project from a remote location to the Appetize.io simulators. The simulator provides an ssh command to do it. Every time I tried to connect, it outputs the following error: ...
Ruben A. Chevez's user avatar
9 votes
0 answers
829 views

EGL and OpenGL only produces black screen

I have written the attached example program that uses GTK2 in conjunction with EGL and OpenGL. On my system this works fine. On the PC of friend it only will produce a black window and I cannot put my ...
Nidhoegger's user avatar
  • 5,111
9 votes
1 answer
696 views

is_writable returns false for NFS-share, even though it is writable for the user www-data

I have a relative folder 'files/crm-upload', where i want to upload files. My code checks, whether is_writable() is true and only proceeds if this is the case. The folder is mounted as a NFS share ...
Sentenza's user avatar
  • 1,279

1
2 3 4 5
1275