As of May 31, 2023, we have updated our Code of Conduct.

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/

Filter by
Sorted by
Tagged with
1 vote
1 answer
11 views

What is the best way to suspend a child process when the parent process is suspended in a bash script?

Question Say I have a bash script test.sh with the following content: python test.py How can I modify the bash script so that it also suspend the python process once it received SIGTSTP itself? ...
QZ Shao's user avatar
  • 11
0 votes
0 answers
6 views

What should I expect Python's curses library's getch function to return for Alt+F1?

I need to accept Alt+F-key's in my application. The application needs to run on Windows and Linux. I'm using the following code to test what getch receives when I press Alt+F1: import curses def main(...
FrederikVds's user avatar
-1 votes
0 answers
9 views

Root volume partition and increase space without losing the data [closed]

We have this scenario : I to increase the disk space of one of our VM, Disk details : root@Test-01:~# blkid /dev/vda2: UUID="0eae0eb4-92ed-45ec-aa99-6d606f17e70a" TYPE="swap" ...
sam23's user avatar
  • 55
1 vote
0 answers
16 views

Java Xml Transformer does not close opened files leading to "Too many open files error" on Linux OS

We are working on a Java 8 legacy software. We are using xslt transform to present .xml files in .html format. Our issue is that our .xsl styleSheet file imports some other .xsl file. (All the code ...
TonioLeParigo's user avatar
0 votes
0 answers
8 views

Add user in the docker to specific group, but not working

I create the user "ros" inside the docker and add it in group "sudo", as shown in the docker script below. FROM ubuntu:20.04 [...] RUN useradd --create-home --shell /bin/bash -G ...
Brad's user avatar
  • 21
-1 votes
0 answers
19 views

How can I fix the error in the code written in asm language?

nasm test.asm -f elf64 ld test.o ./a.out Segmentation Fault section .text global _start _start: mov rbp,rsp ;save stack pointer sub rsp,8000 ;reserve 1000 times 64bit value ...
rawI4's user avatar
  • 1
0 votes
0 answers
34 views

How can I compile Java code against a JAR in a specific location using javac?

I am trying to compile a .class from my .java source code, using a JAR I have downloaded locally to a download directory in my project directory tree. I am using this JAR. The .jar file exists where I ...
Shane Bishop's user avatar
  • 3,755
-1 votes
0 answers
20 views

Outgoing FTP connections time out

I'm setting up a server on AWS, with Amazon Linux 2023. Not my first time doing this, but I noticed a problem I never had before: outgoing FTP connections from this server don't work. $ curl -v -l ftp:...
Mike Baranczak's user avatar
0 votes
0 answers
13 views

No audio on a chromebook running Linux

Just today, I converted my Chromebook (dell 3100 2-in-1) to a Linux device, I installed WattOS r12 on it. The only issue with it is: the audio is broken! It has a DA7219 audio device, can't find any ...
iogamesplayer's user avatar
0 votes
0 answers
6 views

Why does midnight commander only show a black screen on Mac OS M1 with zsh, and take minutes to load?

if I go to the folder, then when I try to start midnight commander, it is not displayed, but only a black screen i used mac os m1 and zsh. in the end it loads but very long about minutes uninstall ...
flyonch's user avatar
1 vote
1 answer
50 views

Trying to create a whois in python but it doesn't run

For some reason, the output returns like this instead of how it should be: Listed; one under the other; organized. Reference: consulta.py from socket import socket, AF_INET, SOCK_STREAM from sys ...
Gustang's user avatar
  • 21
0 votes
0 answers
12 views

How to change/set the SONAME during compilation?

I'm compiling libcurl and I would like to be able to change the SONAME to "libcurl.so.4.8" during compilation. What is happening is that the SONAME is set to libcurl.so.4, as I have two ...
Peter Parker's user avatar
-1 votes
0 answers
11 views

How can I stop the grub command line appearing on startup after deleting Ubuntu and boot directly to Windows? [closed]

I recently have deleted Ubuntu now whenever I boot the grub line command appears, I was able to boot into windows using the following commands insmod part_gpt insmod chain set root=(hd0,gpt1) ...
NASSIM's user avatar
  • 1
0 votes
1 answer
10 views

systemd-run memory limit is not shown in /proc/meminfo, is there another way?

I'm trying to write a program that waits when it sees it's memory is becoming full. It finds out what the current available memory is using /proc/meminfo. Now I'm trying to test it by running systemd-...
Oreborous's user avatar
  • 312
2 votes
1 answer
48 views

How does a single process handle multiple shared libraries linked to the same library?

Multiple shared libraries linked to same library in Single process. Lets assume I have libapp , libapp1 , libapp2 and Mainapp. libapp1 is linked to libapp , libapp2 is linked to libapp.Main app linked ...
Udaya's user avatar
  • 31
-1 votes
2 answers
19 views

Linux: Server is listening at port null

My node application should run at port 53007. But after start of the application, it is shown as application running at port null. I have changed the config to update the port from 53007 to 8082, ...
Vishnupriya's user avatar
0 votes
1 answer
11 views

How do I print the user and umask for all running processes?

The username is in column one and PID in column two of ps gaux, so I have: ps gaux | awk '{print $2;}' | while read line ; do grep -i umask /proc/$line/status ; done but is there a way to print the ...
thebjorn's user avatar
  • 26k
1 vote
0 answers
9 views

Kotlin Gradle multiplatform for 32 bit binary

I have a build.gradle.kts when I put linuxX64 it is working fine But I want 32 bit binary so I put linuxX86 I am getting below error I tried linux32 linux86 linux all throws error plugins { id(&...
Dickens A S's user avatar
  • 3,784
0 votes
0 answers
17 views

Debug code with empty $DISPLAY in NetBeans

Does anyone know how to debug Java code in non-graphical mode in NetBeans 8.2 by setting the variable $DISPLAY=""? Using export DISPLAY= in Linux terminal I only set it within one terminal ...
Michael's user avatar
  • 19
-3 votes
0 answers
14 views

Linux: How to change # to $?

I need command in Linux: to change # to $? I need it for my work in Buddy and I am still learning Linux. Thanks for help. I was trying to find something, but whitout any success. Can someone advice me ...
user849686's user avatar
-2 votes
0 answers
12 views

Could not handshake: Error in the pull function. [IP: XXX.XX.XXX.XXX XXX] [closed]

I am trying to install Redis on Kali Linux (Virtual Box). I am following the procedures as mentioned here. But when I ran sudo apt-get update, it throws some error. ERROR Hit:1 http://packages....
Neeraj-Kumar-Coder's user avatar
0 votes
0 answers
22 views

Serial COM freeze. CTRL C release it. No idea where to begin debug. Embedded Linux Applications

I am running multiple applications on a cortex armv7 CPU running Linux. All running apps are C++ embedded. my std::cout (and printf) are outgoing to my serial COM. Occasionally I have noticed that ...
Almog Stern's user avatar
0 votes
0 answers
16 views

What could be causing PowerMTA not to forward emails over port 465 SSL?

We have a PowerMTA server that receives incoming e-mail. and forward it to external SMTP server that's not running PowerMTA i tried to do it using port 587 and port 25 both working fine and emails ...
Morad's user avatar
  • 1
0 votes
0 answers
12 views

Send mail error send-mail: message from server : 504 5.5.2 <-c>: Recipient address rejected: need fully-qualified address

I want to send an email to various recipients with command line. I'm using the stmp server from my email providers and msmtp is the smtp client (on linux). The command I use is: mail -s 'mysubject bla ...
Tomane's user avatar
  • 373
0 votes
1 answer
24 views

Invalid Syntax on community.mysql.mysql_user with Ansible AWX

I am trying to run a playbook through AWX where I want to create a mariadb user with permissions. The playbook works nicely when run from ansible on my local machine. However, when I try to run the ...
Ror's user avatar
  • 129
0 votes
0 answers
10 views

Floss manager not present, cannot set Floss enable/disable

I am encountering an error message while running a command that involves launching Chromium in headless mode with various options. The specific command I am using is as follows: chromium --incognito --...
Adwaith Rajeev's user avatar
0 votes
0 answers
20 views

how to fix libreoffice convert docx to pdf get page merge format number in command line [closed]

1/ i install libreoffice and ms font success in my docker file 2/ i run command to convert docx to pdf: libreoffice --headless --convert-to pdf /code/input_files/temp.docx --outdir 3.pdf 3/ But file ...
Vãn Hậu Huỳnh's user avatar
-2 votes
0 answers
12 views

Xrdp automatically gets disconnects when double click on the mouse pad [closed]

I have installed the xrdp0.6.1 on my centos7 server. This xrdp acting weird when I double click on the mouse.. I tried reinstalling the Xrdp but did not work. Could someone help on this reinstalled ...
Akash  ChipEdge's user avatar
0 votes
0 answers
32 views

Permission denied after changing user's UID and GID in docker container

Plenty of articles mentioned a non-root user's uid/gid could be modified after container launched. I'm following this document from MS to create a develop user which keeps the same uid/gid as the host ...
StephanXu's user avatar
0 votes
0 answers
10 views

How to safely change CentOS 7 hostname without risking main website downtime?

Sorry, a newbie here with a silly question. My CentOS7 server admin setup the server with my main domain (web site) as a root. Now I would like to add another domain to the same server, what is the ...
Wild Promotion's user avatar
0 votes
3 answers
51 views

How to print the file name only when a searched file content pattern is found

I've a Linux search command working for a specific pattern within a block in multiple files. But I'm missing the file name in the output for the files where the specific pattern was found. Since I ...
Richard Olsson's user avatar
0 votes
2 answers
59 views

Why is my C program not reading standard input properly using 'cat' command on Ubuntu? [closed]

I have a file called HelloWorld.c that performs some operations to read standard input and create a jagged array of doubles. the problem is the reading from standard input. the code is working fine (...
1.234567's user avatar
0 votes
0 answers
18 views

Why do these programs use ttyUSB5? [closed]

lsof show the ttyUSB5 be used by fj_service, sleep, and loop_write. Even though sleep or loop_write don't need to use ttyUSBX at all.Why do these unrelated processes occupy ttyUSB5. # lsof | grep ...
ma siwei's user avatar
0 votes
0 answers
12 views

How can I change the permission of subfolders when changing permission of parent folder on Samba 4 server? [closed]

SERVER SAMBA ON ORACLE LINUX I have a main folder (folder1) with several files and subfolders. On the samba 4 server, when changing the permission of folder1 to 777 with command chmod, the subfolders ...
Marcelo Roma Ramos's user avatar
0 votes
0 answers
11 views

`lsof NAME` result not matching `lsof | grep NAME` or `lsof` output [closed]

lsof NAME result not matching lsof | grep NAME or lsof output. I tried: $ sudo lsof /dev/ttyAMA0 and i got no result, not one match Then i did: $ sudo lsof | grep /dev/ttyAMA0 and i got python ...
LwReckless's user avatar
0 votes
0 answers
16 views

Which user library versions should I use for: libnfnetlink and libnetfilter_queue?

Which version of netfilter user library modules should I use ? I will be building the following modules for my application. The source will come from netfilter.org (and using there reference versions)....
amodster's user avatar
-4 votes
0 answers
15 views

Can we connect with Amazon Linux 2023 AMI over RDP from windows client? [closed]

Can we connect to this very first AMI in the image below (Amazon Linux) via remote desktop connection from our windows laptop. I am trying but getting an error like below
hina abbasi's user avatar
0 votes
1 answer
19 views

How to start Jupyter Notebook on a GCP VM with predefined token automatically on VM start?

OK I have set up jupyter notebook on a gcp VM, I want it to start automatically every time VM is started with a predefined token. (OS in Centos) Does any one have any idea how to solve this final ...
folded verse's user avatar
0 votes
0 answers
15 views

Difference between module pgi vs gi in GStreamer? TypeError: object of type 'NoneType' has no len()

I'm confused in using pgi in this python code. I had some troubles but solved via under link. (using pgi instead of gi) ImportError: cannot import name '_gi' from partially initialized module &...
JYKim's user avatar
  • 1
-2 votes
0 answers
26 views

Convert this Curl API command to php codes

I wondered how I could convert the following Curl API commands to PHP code to execute and echo results? curl --location -g --request POST 'https://euapi.ttlock.com/oauth2/token' \ --header 'Content-...
master clips's user avatar
-3 votes
0 answers
13 views

How do I configure DPMS in Pop OS? [closed]

I can't seem to get my DPMS settings working. I want to have my screen shutoff after 6 mins. Below, I have created a file: /etc/X11/xorg.conf.d/00-dpms.conf Section "Monitor" Identifier &...
coolcatco888's user avatar
-1 votes
0 answers
16 views

Why is my phone not showing up in VSCode and flutter devices even when `adb devices` shows the device is connected?

I want to run flutter project on my phone. The adb devices command is showing the device as shown in the picture.But VSCode and flutter devices command are just showing the Linux desktop. NB: USB ...
Zayn Meledath's user avatar
0 votes
0 answers
12 views

ssh tunnel limitations are failed on android/ios clients [closed]

I'm using a couple of vm's as an ssh tunnel-vpn for both android and iOS, using ssh clients on both OS's. so now i want to limit the number of sessions per each user in order for each user is limited ...
Saeed Isfahani's user avatar
0 votes
0 answers
13 views

How to attach a custom server as object storage to GitLab without relying on S3 or GCP solutions?

I am currently trying to migrate from bitbucket web-version to GitLab community and I'm thinking of hosting it my self. In here I need to attach a different server as object storage to GitLab. However,...
Buddhima Chamaranga's user avatar
-2 votes
0 answers
10 views

Point Domain Name to Remote Server [closed]

I am trying to configure my DNS for the domain name I just bought. I am trying to point my domain name at the remote server I have setup. I am following the instructions in this guide https://sive.rs/...
Hound's user avatar
  • 918
-1 votes
1 answer
17 views

Ubuntu appears on my terminal though i have completely uninstalled it [closed]

I had installed Ubuntu and wsl a while ago, i uninstalled it for some reasons but Ubuntu still appears on my terminal options, i have turned of wsl and virtual machine platform in windows features ...
Ali Akbar Nemati's user avatar
-3 votes
0 answers
19 views

<ncurses.h> not working Code::Blocks Linux [duplicate]

I'm using Linux Mint 21.1 Xfce 4.16.0 Code::Blocks 20.03 and already installed ncurses (I guess) with this command: sudo apt-get install libncurses5-dev libncursesw5-dev but when I enter this code: #...
pixells4D's user avatar
0 votes
1 answer
48 views

Send data to another program in C with pipes

I am not used to work with C in Linux so maybe I am asking something very simple here. But I am a bit stuck. I have a program from another company which runs on a Linux terminal showing some messages, ...
Biribu's user avatar
  • 533
-1 votes
0 answers
67 views

How to fix 'error: no suitable video mode found' while booting Kali Linux with integrated graphics and NVIDIA GPU? [closed]

I am trying install kali linux but I am running into the same error while booting "error: no suitable video mode found. Booting in blind mode" after which nothing happends and I am forced to ...
Yessine Dammak's user avatar
-2 votes
3 answers
42 views

Delete all the lines including and after nth occurance of pattern [closed]

Basically what the title says, I have some large tsv file (approx. 20k lines) and I want to delete the rest of the files after a specific column matches a string a second time (including said line)
sgkion's user avatar
  • 41

1
2 3 4 5
4496