Questions tagged [linux]
These questions are about Linux in general – NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the “linux” tag.
39,080 questions
0
votes
1
answer
67
views
Creating in Linux files in GB or MB range by various size by read a file
In Linux with Bash, there is the File numbers_in_one_line.
In this file there is only one line with several numbers, all separated by spaces.
These numbers are the value in bytes for creating files ...
-5
votes
0
answers
46
views
I used Generative AI to write up my codes for my Antivirus program (SAFA_AV) can anyone turn this into real c++ programming syntax? [closed]
**
**#include <iostream>
// Include other necessary headers
// #include <accctrl.h> // Ensure this file exists
const char* Add_MSG = "Your System Has Security ...
0
votes
0
answers
32
views
Motd ssh server with ascii image with 24 bit color (truecolor)
I cannot visualise an ascii art image in 24 bit colors when I log into my server via ssh.
I have created a dynamic motd for my ssh server. Specifically in the file /etc/update-motd.d/10-logo there is ...
0
votes
0
answers
50
views
ldd not showing actual shared libraries address
After having deactivated ASLR, with:
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space
I used ldd /path/to/binary to get the address of the shared library that my binary (written in C) was using, ...
0
votes
0
answers
22
views
setting up PXE and DHCP server on RHEL VM
So I am trying to setup a kickstart server with pxeboot and dhcp server (for ks) on RHEL 8 VM. When I capture network traffic I do not see any pxe/tftp traffic coming to the VM or the host....
I tried ...
2
votes
1
answer
300
views
Created a new user in the same group as another user, but new user cannot access directory
I am trying to create a new user in Linux, such that the new user can access (read) log files that were created by another, previously-existing user (the "oracle" user).
The log files are ...
1
vote
1
answer
23
views
Linux group membership problem for VNC session
In an almalinux9.5 machine, I am sudo user. I am using a vnc session to access the machine. I've added myself from this vnc machine to linux groups using :
sudo usermod -aG <group-name> <user-...
1
vote
0
answers
27
views
How to send files over WebSocket with websocat tool?
I brought a wss:// server up using websocat:
websocat -E -t -v --pkcs12-der=q.pkcs12 wss-listen:0.0.0.0:8443 mirror:
And on the client I am running this command to establish a secure WebSocket ...
1
vote
1
answer
24
views
Can't get custom systemd service to automatically disconnect and log-off Nord VPN session upon Linux system shutdown
I'm writing a systemd service to automate the process of gracefully disconnecting and logging-out of Nord VPN upon system shutdown. This service should run, regardless of whomever is the user ...
7
votes
2
answers
1k
views
My Ubuntu Linux home directory is /home/ls. Why is it "ls" and not my user name?
I have installed Ubuntu Linux under WSL on my Windows 11 PC. I established a username during the installation, perdiem. When everything was up and running, I cd'ed to ~, and the directory I ended up ...
0
votes
0
answers
16
views
Run RPCBind on a docker container with the socket enabled (for port 111)
I'm trying to dockerize a rpc application I made using C lang and rpcgen, I have the byte executable and everything, I tried a lot of docker os image like ubuntu 22.04/ debian and so on, the ...
0
votes
0
answers
61
views
Allocating contiguous physical memory using huge pages in kernel module
0
I need a kernel module that allocates 8MB of physically contiguous memory using 2MB huge pages, in response to a user-space mmap() request. While I’ve successfully used alloc_pages() with 4KB pages ...
0
votes
1
answer
86
views
How to create splittet random files and join them with dmsetup
In Linux in Bash, there is a script, a part of the script is this
while true ; do
echo
awk -v x=$(<"$TEMPDIR"size_container_in_byte) -v n=$(<"$TEMPDIR"parts) 'BEGIN{...
8
votes
2
answers
570
views
fork() Causes DMA Buffer in Physical Memory to Retain Stale Data on Subsequent Writes
I'm working on a C++ application on Ubuntu 20.04 that uses PCIe DMA to transfer data from a user-space buffer to hardware. The buffer is mapped to a fixed 1K physical memory region via a custom ...
1
vote
1
answer
45
views
Is there a deduplicating software able to deal with partially deduplicated structures?
I started using rdfind to deduplicate my resources, and found an interesting flaw: when I try to deduplicate files which are already partially linked, rdfind does not fully consolidate them, but only ...