Category "linux"

modify ld library search path on cluster (no root access)

I am compiling gcc 8.5 from source on a linux cluster in my home directory (no root access). I have exported -L/MYHOME/lib/' to CFLAGS, LDFLAGS, LD_LIBRARY_PATH

linux socket lose data when a delay is added before read

I am learning linux socket programming, I expect that server can read data, even I add a delay but it just drops the buffer data, and receive the recent data, t

StackOverflowError was thrown building HeroControllerScope, flutter

I have a very large project in flutter which is connected with back4app i did some little changes last, it was working good today am trying to open my project i

Problems when installing python3-dev

This problem has been torturing me for 2 days, and without python3-dev I can't pip install any module, can someone tell how could I solve this? The following

Duplicate process without fork

In linux embedded system I can see in ps 2 processes of the same binary(pid1=X, pid2=Y) those processes don't have threads(/proc/X/task and /proc/Y/task don't e

Can anyone help me with this crontab?

We want to download the stock price of Tesla every day, using the package "quantmod" in R. We managed to write the function that downloads the last available st

Open a new terminal tab and run a command inside, only after open tab

I'm trying to create a script to open a new tab at my rails project and run rails s inside this tab, to already start my server. My command: xfce4-terminal --ta

bash script youtube filtering

The goal is to be able to send video urls to two metube dockers. One just for YouTube and one for everything else but YouTube. This script is going to go in my

AOSP build error: unrecognized module type "hidl_package_root"

I'm keep getting that error in soong, while trying to build aosp. When I type make, this is the output: PLATFORM_VERSION_CODENAME=R PLATFORM_VERSION=R TARGET_

Trying to delete all shared memory and semaphore arrays in ipcs but get permission denied?

Can't find this anywhere online but when trying to delete semaphore arrays and shared memory using ipcrm -m id. I get this error permission denied for id (<i

Finding all views/namespace urls in a Zope3 system?

I have a Zope3 system with some custom code for a paperless office system. The developers have since folded up shop and I need to make some changes to what I b

Finding all views/namespace urls in a Zope3 system?

I have a Zope3 system with some custom code for a paperless office system. The developers have since folded up shop and I need to make some changes to what I b

Simulate Bluetooth "Out of range" scenarios for test automation

I've an Android phone which needs to be paired with an embedded device (Qt based application on Linux) which we test. I've automated the basic scenarios using A

How to check if /tmp and /proc filesysystems are mounted in a chrooted environment?

I have already tried mounting the filesystems without checking like this: sudo -- mount -t proc /proc $chroot_dir/proc sudo -- mount --bind /tmp $chroot_dir/tmp

Show call stack in Bash

To start with, I do not know if this is something trivial and common knowledge; I don't know, so am asking here. I am running a 3rd party app and trying to nai

Query RTC and NTP time in Linux?

The way the Linux kernel handle time is somewhat complicated as it uses different source of time, and regularly resynchronize everything. There are command-line

Why can low priority processes affect the latency of an high priority process?

I have tested the rt process's latency by cyclictest. And found that when I launch a few lower priority rt processes(priority is 40) the high priority rt proces

How to configure an I2c Controller in the PS of the Zynq 7000 as a slave from Linux

I am using a zed board with a Zynq 7000 on it. The end goal is to have the I2c-0 controller in the physical PS of the Zynq7000 to act as an I2c slave device. I

Listening-in tty in Linux

I try to find an easy way to listen to the exchange with the desired tty in Linux. A have hardware device whose interface is exposed as /dev/ttyAMA0 and some d

How to know if htpdate has synchronized system clock?

On my linux system, I use ntp to synchronize the system clock. I also installed htpdate to synchronize it when ntp is not available. To know if ntp has synchron