Category "linux"

How to generate trace on armv8 Linux - CoreSight ETM - NVIDIA DRIVE AGX

I'd like to analyze worst case execution time of the programs. For this, there is a tool and expecting trace output of the program(specifically CoreSight - Embe

Terminate sudo python script when the terminal closes

How can I tell if the terminal running my python script was closed? I want to safely end my python script if the user closes the terminal. I can catch SIGHUP wi

IP tables TEE command changes source mac address

I am trying to forward/clone traffic from my host machine to my docker container using IPtables command. I am able to receive traffic inside my container via ip

Processing text in bash - extracting the volume of a program from pactl sink-inputs output

Looking for a way to extract the volume from pactl list sink-inputs Output example: Sink Input #67 Driver: protocol-native.c Owner Module: 1

list of logged in unique users in linux

I am working in linux environment as a non root user. I am using users command to get the logged in users users But it returns the user names multiple times

How to use Different Java versions eclipse in Linux mint?

I have many Java versions installed on my laptop. $ sudo update-alternatives --config java [sudo] password for naruto: There are 3 choices for the alternative

how to fix startup script for aws ec2, to display hello world, other meta data from 169.254.169.254

I am setting up new EC2 instances, and I want to be able to see hello world, the AZ and the IP address displayed. It only shows the apache start page. I have

CMake set environment variable

According to the CMake documentation https://cmake.org/cmake/help/v3.3/command/set.html One can do set(ENV{<variable>} <value>) but this gives the

configure: error: cannot run C compiled programs

I'm trying to install different software onto my Raspberry Pi with Debian Wheezy OS. When I run try to configure software I'm trying to install I get this outpu

how to fix startup script for aws ec2, to display hello world, other meta data from 169.254.169.254

I am setting up new EC2 instances, and I want to be able to see hello world, the AZ and the IP address displayed. It only shows the apache start page. I have

Qt serial communication using UART RS232C

I want to connect qt and a device using UART cable (RS232C) in linux. I´m writing code, making ui and operating, but it does not work. I want to connect

PyInstaller executable with panda3d throws exception

I am having an issue with a program, which uses panda3d. It works perfectly when executed as a pythonscript, but the version, which is compiled (or rather packa

relocation error when implementing my own elf loader

I am currently implementing an elf loader to emulate binaries with the unicorn engine. To avoid implementing my own dynamic linker, I load the ld-linux-x86-64.s

Couldn't build application native image with GraalVM

I have built an API in Micronaut and trying to deploy in it GCP Cloud Run as a native graalVM image This is my Dockerfile # Stage 1: Build the JAR FROM gradle:j

Only homepage url is working in django app. Other urls are not working

My Django app is working on shared Linux hosting but only homepage is working. When I try to access other pages 404 error occurs. I believe urls.py is causing p

Why does ld need /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 while its default dynamic linker is /lib64/ld-linux-x86-64.so.2?

In x86-64 target Debian, most of the programs are link against shared objects with the /lib64/ld-linux-x86-64.so.2. And there is also one in /lib/x86_64-linux-g

VI editor - saving filename in :wq

After typing whatever that I need in VI, i wanted to save it to a file with :wq filename. But if I have type in the wrong filename , there is no way for me to

How to edit ELF files in Linux?

I have written two similar C programs. How can I make the outputs of both code same by editing one of the ELF files not the actual code? /** * prg1.c */ #includ

command blkid don't show my partitions UUID

I'm using Ubuntu. command blkid or blk /dev/sda2 in LPIC-1 module 104.3 (mounting and unmounting). but these commands don't show me the expected results. blkid

Running docker shiny app on my own domain

I have a VPS Linux (Ubuntu) server with specific IP and I would like to run my shiny app on my own domain http://my_domain.com. Therefore, I have built a docker