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.
38,660
questions
0
votes
0
answers
15
views
Linux Kiosk machine setup - any advice appreciated
I'm currently researching setting up a Linux kiosk machine. As part of my research I thought I'd ask around and hopefully get advice from someone with experience. I'm considering anything from ready-...
0
votes
0
answers
16
views
How to (correctly/efficiently) move a btrfs subvolume containing snapshots?
I have btrfs as the filesystem for configuring root, and configured my system to use snapper for backup.
The /@arch-root/@.snapshots/ subvolume contains several sub-dir each containing several ...
1
vote
2
answers
27
views
Positioning multiple windows with devilspie2
I often have 2 Firefox windows open together, and I like them in opposite corners of my screen.
There’s the relevant part of my devilspie2 config file
--if string.match(get_window_name(), "...
0
votes
1
answer
16
views
Route all TCP traffic from port to another host:port
I have a wireguard config, creating a VPN between a remote server (10.0.1.1) and my local machine (10.0.1.2), so that the server can reach the local machine and vice versa.
I'd like the server to ...
3
votes
2
answers
185
views
Setup RAID-1 in Kickstart file with 1 Disk
Is it possible to setup RAID-1 on a system with only 1 disk and later add the second one?
I read the instructions from Red Hat and there is an option to add --spare=
I tried this with the code below
...
0
votes
0
answers
29
views
When using 'wc \-l' to count the number of file lines, the result is less one [duplicate]
I want to count the number of file lines, so i use the command wc -l file. However, I notice that the result is incorrect which one less than the real number of lines. For example, the number of lines ...
0
votes
0
answers
10
views
Failed to build newlib4.4 for ARM in WSL2 Linux x86_64
I am working on an embedded RTOS system for ARM platform, it is using newlib-3.1.
Now I am trying to support newlib-4.4 for the system in WSL2 (Ubuntu-20.04.6 for X86_64).
The cross-compiler for ARM ...
0
votes
1
answer
21
views
SSH option SecurityKeyProvider works from command line but not config file linux WSL--other options fine
I'm trying to ssh into my work server but this bug has been bugging me for a few months now. Every other option in my config file (housed at ~/.ssh/config) works fine, but for some reason ...
0
votes
0
answers
38
views
How to generate daily report of total bytes written (TBW,DWPD) to disk (SSD) in Linux
What is the best way to get the correct value of total bytes written to disk per day?
My goal is to log it over time, so as an admin you can gain some sense of activity on a Linux Server and have a ...
2
votes
1
answer
31
views
Mismatch of size of /var/run/utmp and `struct utmp` in Linux built with GLIBC 2.38 (Y2k38 fix)
I am working on an embedded Linux system (kernel-5.10.24), which is a 32bit system, and it is using GLibc-2.38 to fix Y2k38.
The rootfs is built from buildroot rel.2023-aug with Y2k38 fix. (built with ...
0
votes
0
answers
24
views
ssh jump host connection with target machine authentication via a private key
I need to connect to a target machine via ssh jump host. Authentication to target machine is done via a private key on jump host. A manual way will be made of 2 steps:
ssh [email protected]
ssh -i priv....
1
vote
1
answer
51
views
cat vs. view and execution of file containing diacritics uploaded from Windows to Linux with WinSCP
I have a DE_CopyOldToNew.sh file that was created in Windows. The file is then uploaded to Linux using WinSCP. The file contains a whole bunch of cp commands that copies files to a new folder with a ...
3
votes
1
answer
503
views
How do executables use POSIX to keep compatibility between different UNIX systems?
In my understanding, POSIX only specifies a set of APIs that the OS needs to provide, but it doesn’t specify the implementation detail, specifically the assembly level compatibility. For example, on ...
0
votes
0
answers
31
views
I can ping to an IP address and its name but I can't get access using browser
So as the title said, after setting the IP and the host name on /etc/hosts, I can ping both of them. I confirm it can resolve by resolvectl query.
The thing is: When I try to access a service of this ...
0
votes
0
answers
17
views
How to get scheduling latency with Ftrace in Linux?
I am working on an embedded Linux (kernel-5.10.24) system where ftrace is enabled but NO perf.
I checked the tracefs in my system, and got followings,
# ls /sys/kernel/tracing/events/sched/ -l
total 0
...
1
vote
0
answers
47
views
How do I setup and start a unix socket in Red Hat?
I couldn't find any specific guides for creating a unix socket in Red Hat Enterprise Linux (RHEL version 9.3) so I used this guide.
After creating the gunicorn.socket and gunicorn.service file in /...
0
votes
0
answers
16
views
is there a corresponding /var/log/boot.log for shutdown?
with verbose grub instead of quiet, you observe this screen for example upon boot and shutdown
There is /var/log/boot.log that has what was displayed on the screen from boot.
Is there a corresponding ...
0
votes
0
answers
14
views
slow down verbose boot screen
When Linux boots, with GRUB_CMDLINE_LINUX having verbose instead of quiet, the display on the console screen flies by so fast that it is near impossible to visually read what has a red [Failed] to it.
...
0
votes
0
answers
10
views
Yocto. How to keep u-boot splash screen and then how to keep kernel splash screen on
I am porting Yocto into my board. I wrote u-boot & kernel graphics drivers for my display. Everything works fine. The only problem I have is:
u-boot splash screen is displayed for a while when ...
0
votes
0
answers
45
views
running X86 Virtualbox VM on an Apple silicon Mac, UTM not working
My college provides a virtual machine (SliTaz VM, possibly an old Linux distro) to run veriluoc which is a software to design and simulate logic gates. The problem is that VM was designed to run on ...
0
votes
1
answer
44
views
systemctl status lists the same service twice?
This is a somewhat mystifying situation - not a crisis as far as I can tell, since the service in question still seems to work.
The background is, I wanted to upgrade to the latest apache2, which isn'...
1
vote
0
answers
52
views
Boot linux in text mode and without framebuffer?
This used to be the default some years ago: Linux would boot up on a text console, 80x25 characters. I want to get back to that - this is for a number of servers that boot over the net (with PXE) - ...
0
votes
0
answers
30
views
LVMs are showing under different partition even though they are under same volume group
I have below curtin partition configuration for a single drive of size 900 GB.
curtin/partitions:
storage:
config:
- grub_device: true
id: sda
name: main_disk
...
0
votes
2
answers
99
views
How and when is `/sys/kernel/security/tpm0/binary_bios_measurements` exposed?
Currently, I try to understand how a measured boot is working and what components log what in which pcr of a tpm2.
I have a test-setup with uefi-secure boot enabled and a tpm2 attached in a kvm ...
0
votes
0
answers
7
views
My embedded application doesn't receive keyboard events (Linux framebuffer/Qt+QML application/systemd service/VNC server)
I need to remotely control a Qt / QML application on an embedded ARM instrument. I intended to do that using VNC. This doesn't work. An USB keyboard plugged in the instrument doesn't work either.
NB: ...
1
vote
2
answers
32
views
systemd service won't run from network drive
Apologies in advance for any mangling of terminology, syntax, conventions, etc. I'm still a fairly novice Linux user. I am working on Steam Deck running the latest SteamOS (3.5.17).
I managed to ...
2
votes
1
answer
62
views
dd command not filling device
I have a surplus 120GB SSD that I want to completely clear of data. With the drive unmounted, I ran
sudo dd if=/dev/urandom of=/dev/sda bs=4M
but it stopped after copying 8GB, reporting “dd: error ...
0
votes
1
answer
62
views
How does Linux implement multitasking on CPUs which do not support multitasking?
Someone told me that Linux can run on CPUs which do not support multiple tasks.
But if you have one core only which doesn't support multitasking, how does Linux implement multitasking?
Let's say I ...
3
votes
1
answer
96
views
Can't boot any distro without acpi=off
I have really limited Linux know-how.
Specs:
Asus ROG Strix G15DS-R7700X088W
AMD Ryzen 7 7700X
NVIDIA GeForce RTX 3070
2x 1TB SSDs; 1x M2 NVME with W11 running, 1x SATA
Goal: Running Dual Boot with ...
0
votes
0
answers
35
views
Can VLANs coexist with a non-tagged LAN on the same interface?
The questions is basically in the subject, but to give it a little more context:
Please consider a setup of 2 (embedded) systems, both running Linux. Each system has two physical NICs, named eth0 and ...
0
votes
0
answers
46
views
How can I save the output of tail to my clipboard or somewhere on a SSH session where there is only a unidirectional connection and server is limited?
I have to report some logs from some of the servers in our infrastructure which I have limited permissions on. Every time I copy 1000 lines of logs and paste it into Slack, I can't do scp from the ...
-2
votes
1
answer
41
views
sources.list in apt file not working [duplicate]
I'm using kali linux 2024.1
i had problem with sources.list repository and couldn't fix it
i thought if i delete the whole apt file and replace it again from kali packages in Gitlab but it didn't work ...
0
votes
0
answers
16
views
Docker on visionfive2 risc-v
Docker on visionfive2 risc-v
user@starfive:~$ sudo dockerd
WARN[2024-03-02T13:08:27.753708638Z] Unable to find memory controller
WARN[2024-03-02T13:08:27.753772888Z] Unable to find io ...
1
vote
0
answers
28
views
Laggy PC with Kernel 6.5 and AMD 5500U Lucienne
I am currently facing a problem with my Lenovo E15 laptop (AMD Ryzen 5500u "Lucienne" processor) and the kernel 6.5. (Xubuntu 22.04)
Maybe three weeks ago,
I noticed that my computer was ...
0
votes
0
answers
14
views
how to get network interfaces in linux of my docker containers
i launch some docker nginx containers liket that :
docker run --rm -d nginx
docker run --rm -d nginx
docker run --rm -d nginx
then i get the ip adresses of my containers, by doing..
docker inspect ...
0
votes
2
answers
27
views
Investigate why my disks are not going to sleep - which files are open?
I want to investigate what keeps my drives spinning on my nas. Which commands help me to get insight on which files are being opened and preventing my disks to sleep?
0
votes
0
answers
23
views
Terminal does not use .bashrc variables, but recognized them [duplicate]
I have installed the latest Pop!_OS version on my new computer and wanted to set the following environment variables:
CC=/usr/bin/clang
CXX=/usr/bin/clang++
CMAKE_GENERATOR=Ninja
Instead of typing ...
0
votes
1
answer
55
views
Use of '&' with file descriptors [closed]
When using redirection of this form 2 > &1, why is there an '&' before 1 but not before 2?
6
votes
1
answer
349
views
How do I spoof different device ID for the purposes of Linux device management?
I have a WWAN device, which I foolishly bricked by overwriting vendor and product ID (VID and PID) using AT command. I did it in hopes to get around the laptop whitelist feature, which prevented ...
-1
votes
1
answer
41
views
No installation candidate
Today I installed Debian 11. I can not install any package on it:
sudo apt install make .
sudo apt install build-essential
and any other package I go on "Package "name" has no ...
0
votes
1
answer
21
views
QEMU ftp connection refused on linux guest but not in windows host (qemu blocking localhost connection??)
I'm using QEMU to run debian linux on my windows machine. I setup a filezilla ftp server running on localhost in my windows. I can connect to the ftp server from my windows cmd
But i can't connect to ...
1
vote
1
answer
56
views
GNU tar how to preserve file immutable attribute set by "chattr +i" in Linux?
I want use tar(GNU tar 1.30) to backup files with immutable attribute set by "chattr +i" in Linux. Command lines below:
mdx@e5450:~$ touch test.txt
mdx@e5450:~$ sudo chattr +i test.txt
mdx@...
2
votes
0
answers
7
views
add LDAP slave to N-way multimaster system
I have 2 Ubuntu 22.04 LTS servers running Openldap 2.5 in N-way multimaster mode. It works great and has for several years. Now I'd like to add a slave to this system. The two multimaster nodes do ...
0
votes
0
answers
22
views
CentOS Stream 9 sda, sdb keep swapping OpenShift 4
I have an issue with the disks detection order on my OpenShift nodes.
My hypervisor is configured to have the disk with a smaller capacity, containing the CentOS image, as the first bootable disk. ...
0
votes
0
answers
20
views
ypinit -m errors
I am trying to set up a ypmaster.
Step 1 cd /var/yp
At the start this was an EMPTY directory (important later)
Step 2, type: "/usr/lib64/yp/ypinit -m
Now this directory has lots of files.
Step 3 ...
0
votes
0
answers
43
views
Inode of a Directory
Can you show with some picture or illustration what does an inode of a directory in ext4 filesystem?
Especially, how is the list of directory entries (list of filename-inode pairings) stored?.
1
vote
0
answers
24
views
Busybox/Qemu Networking
I made a simple Linux Distribution using Busybox that i run in Qemu.
How can i get networking to work?
My Goal is somthing like that:
I type in
wget google.com
and it saves the index.html file to the ...
1
vote
1
answer
32
views
Renew kerberos ticket, krenew not available
I'm fairly new to Linux. I have a shell script that runs daily off a cron. It requires a connection to sql server, which requires a valid kerberos ticket. I want to add logic to my script that renews ...
3
votes
1
answer
154
views
getaddrinfo doesn't return IPv6 on Linux, but does on Macbook
I have a simple setup. I added 1.2.3.4 yahoo.com to my /etc/hosts file.
I didn't add any entry for google.com to the /etc/hosts file.
On Macbook, I get 1.2.3.4 and yahoo.com's original IPv6 address as ...
0
votes
0
answers
18
views
How to use secondary IPs as source for a ping request without assigning it on an interface
Summary
I have an Ubuntu VM that has a public IP address e.g. 1.1.1.1 assigned to its eth0 interface. upstream router has also routed another public IP subnet e.g 2.2.2.0/256 to server's main IP ...