Skip to main content

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
0 votes
0 answers
17 views

Calling outer program which accesses I2C device with system( ) in Linux, does not work

first at all, I list the environment below. Hardware: Raspberry Pi Zero 2w OS: Raspberry Pi OS (Legacy) Lite USED Interface: UART, I2C The scenario is that I wrote a UART server in C to receive ...
Min from TW's user avatar
0 votes
0 answers
34 views

Reduce CPU usage for cargo run

During cargo run, rustc by default takes up all CPU resources. Is it possible to limit CPU usage? For example, cpulimit -l 40 works for cargo, but rustc processes still use 100% of the CPU. Fedora ...
Artem Baranov's user avatar
-1 votes
0 answers
7 views

Elasticsearch on CentOS 7 not starting because of Unit elasticsearch.service has failed

I'm trying to setup Elasticsearch 7.8.0-x86_64 on centOS 7, I installed the Java, then install ES with rpm and configure the elasticsearch.yml to add cluster and node names. Then I adjust the heap ...
Abdul Rehman's user avatar
  • 5,524
0 votes
0 answers
15 views

How can I limit the number of blocks written or read in a Write_10 or Read command?

Here is the problem: My usb storage device has a 64kB (limited by hardware) buffer used to cache reads/writes which means it can only cache up to 128 blocks(512B) of memory. The SCSI Write-10 command ...
user26314708's user avatar
0 votes
3 answers
44 views

Is string.indexOf() treated the same on Linux vs Windows?

I'm not an experienced JavaScript programmer. This is my first project using JS. I'm developing on Linux and am at the point for my first release. Running the project on a Windows machine I came ...
Marshall's user avatar
-2 votes
0 answers
24 views

How to enable screen blanking when running gui on boot on raspberry pi using systemd? [closed]

I am running a python tkinter gui that I need to launch on boot. I am using a raspberry pi 4b running Debian bookworm with the official 7" touchscreen. I have successfully used systemd to launch ...
wakwak's user avatar
  • 1
-4 votes
0 answers
19 views

Unsupported file ./docker-desktop-amd64.deb given on commandline [closed]

i was having some issue when i try to install docker using CLI. It tells me that there is another docker installed in my KDE, which i'm not clearly understand. So, pls help to find out i try but it ...
Mu'azu S. Ahmed's user avatar
-2 votes
0 answers
17 views

Run Linux with jq then trowaway with docker [closed]

I found Unable to download the jq package : So made a docker file: FROM alpine RUN apk update && apk add wget RUN wget https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 &...
tgkprog's user avatar
  • 4,519
0 votes
0 answers
17 views

Trying to install Nanoc (with Ruby) on Fedora Linux, but getting an error I can't decipher

I try to install Nanoc on Fedora Linux. I've successfully installed Ruby using dnf install ruby Checked it with ruby -v and made sure rubygems is installed. Also checked version to verify ...
zektiv's user avatar
  • 1
0 votes
0 answers
8 views

RTCWake does not respect Epoch time [closed]

Background: I have a small Debian server that is intended to wake up on Wednesdays at 22:55, do a job then go to sleep. Rinse and repeat. To accomplish this I have a cronjob setup according to this ...
mongoose88's user avatar
0 votes
1 answer
11 views

compiling SWUpdate into a toolchain

I am attempting to compile SWUpdate into my cross-toolchain to use its API within my C++ projects. However, I'm encountering some issues during the build process. When I run make -j16, I get the ...
Joshua Strutton's user avatar
-3 votes
0 answers
21 views

Why is Nginx listening to both port 8080 and 8081 on my mac? [closed]

When I try to access http://localhost:8080/ and http://localhost:8081/ on my browser, they both will show Nginx homepage. I tried nginx -s stop and made sure ps -ef | grep nginx has nothing except the ...
Andrew Liu's user avatar
-2 votes
1 answer
29 views

Unable To Create Bottle | Bottles Linux [closed]

Details Was creating a bottle when it said Unable to create bottle Log Generating bottle configuration… The Wine config is being updated… Wine config updated! Running as Flatpak, sandboxing userdir… ...
Aydiniyom's user avatar
-2 votes
0 answers
21 views

Linux command to recursively move a dir [closed]

I'm trying to move: $ mv -r mail_project_start/ .\ .\..\ (two levels above). But I'm wrong.
dani's user avatar
  • 5
0 votes
0 answers
20 views

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver on KDE Neon

Overview So I have installed nvidia-driver-470 using sudo apt-get install nvidia-driver-470 which is recommended by the official website for my GT 730 GPU. Keep in mind I'm a newbie to Linux since I ...
Aydiniyom's user avatar

15 30 50 per page