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,805
questions
0
votes
0
answers
12
views
/boot/efi/EFI/ubuntu is not creating during ubuntu installation and os is entering into Grub rescue mode when rebooting after the installation
I am installing Ubuntu 22 in efi mode with the below curtin partition scheme;
storage:
config:
- grub_device: true
id: sda
path: /dev/nvme0n1
ptable: gpt
...
0
votes
0
answers
21
views
NetworkManager Keeps Disconnecting
I connect to the internet via WiFi, and it happens that from time to time the connection drops and is reestablished again, all of this happens on its own and sporadically.
It's true that there are ...
0
votes
1
answer
20
views
Does Linux Log Unreadable/Unrecoverable Sectors from Drives?
Occasionally a drive sector is so corrupted that even the controller cannot fix it, and the data is lost. It may then be marked as a bad sector.
Does Linux make a log of such lost data in journald or ...
1
vote
0
answers
26
views
Why pts/1 shows a login using root
I am running Ubuntu in WSL. Listing current process shows pts/1 is logged in by root. But I have only a single logged-in user "mshah" which is on pts/0
If I login to a another session it ...
10
votes
1
answer
1k
views
What is the rationale for the change of syscall calling convention in new Linuxes?
Quoting from https://www.kernel.org/doc/Documentation/process/adding-syscalls.rst:
At least on 64-bit x86, it will be a hard requirement from v4.17
onwards to not call system call functions in the ...
0
votes
0
answers
14
views
Linux DRM/KMS learning material
I would like to learn in-depth how does the DRM and KMS subsystems of Linux work under the hood, as in how do I use them and how do I program something with them - in the beginning, just some KMS ...
0
votes
0
answers
9
views
Linux standalone OpenGL usage
I would like to ask what makes the Linux graphics stack tick and how it all works together.
So far I have understood that it works like this - the Linux kernel exposes GPU drivers through the DRM ...
0
votes
1
answer
7
views
objdump `--adjust-vma` destroys debug info
When using the --adjust-vma option of objdump all the functions get squashed together, as if there is no debug information about where each function starts.
I'll demonstrate with the following simple ...
0
votes
1
answer
22
views
FUSE filesystems look at saved UID/GID?
While attempting to create a program that reads some configuration before launching programs as a normal user and then as the root user, I noticed this odd behavior. I can't seem to find mention of it ...
0
votes
1
answer
30
views
Veeam Backup Agent error during blksnap compile on PROXMOX 8 / Debian12
On our two PROXMOX servers version 8.2.2 do we have a compile problem with veeam blksnap.
dkms install -m blksnap -v 6.1.0.1498 Sign command: /lib/modules/6.8.4-2-pve/build/scripts/sign-file Signing ...
13
votes
1
answer
1k
views
Shebang can reference a script in Linux
I've always heard that the target of a shebang line (e.g. #!/bin/bash) must be a binary executable, not a script. And this is still true for many OSes (e.g. MacOS). But I was surprised to see that ...
2
votes
2
answers
61
views
Create FAT-formatted disk image that can fit 1G file
I'm struggling to create a FAT-formatted a disk image that can store a file of known size. In this case, a 1 GiB file.
For example:
# Create a file that's 1 GiB in size.
dd if=/dev/zero iflag=...
0
votes
0
answers
12
views
systemd: Failed to attach to cgroup...No such file or directory
OS
Ubuntu-22.04
Kernel-version
6.2.0-39-generic
systemd --version
systemd 249 (249.11-0ubuntu3.12)
Problem description: From a perl script I am trying to stop and start myservice, this script has no ...
0
votes
0
answers
11
views
Library not being found [duplicate]
I am getting the following error when running a Java Project:
/home/morpho/lib64/libMorphoSmartSDKJavaWrapper.so.6.45.0.0: libmorphosdk.so.6: cannot open shared object file: no such file or directory
...
0
votes
2
answers
51
views
extract a column from the command output even if it blank bash
I am trying to extract 2nd column from a command output
For example:
$ sudo /usr/sbin/pvs
PV VG Fmt Attr PSize PFree
/dev/sdc1 vgswap lvm2 a-- 16.00g 0
/dev/sdc2 ...
1
vote
0
answers
30
views
Something went wrong message after fresh install of Fedora 40
I've been struggling with this for days now, every resource I came acrooss takls about upgrade and not fresh install.
I want to install Fedora 40 Workstation on a completely wiped SSD from USB and ...
0
votes
0
answers
7
views
Can I inspect the VMware VMDK properties of disks used by a Linux guest from within that guest?
We operate Linux VMs hosted on a VMWare ESX cluster. We may provide several disks (VMDKs) to a VM, of different storage types: fast and expensive (SSD) vs. slower and cheaper (HDD).
Is there any way ...
-2
votes
1
answer
44
views
Let users install their own software [closed]
What is currently considered the correct/recommended/best-practice regarding user permissions for installing software? While this is a topic with various opinions, I am particularly interested in ...
0
votes
0
answers
14
views
BTRFS won't remove missing disk?
I had a hard drive fail in my BTRFS raid10 array, and it is failing to remove. What am I missing? I already added a replacement drive /dev/sdf, but it won't let me remove the old failed drive.
dulanic@...
0
votes
0
answers
23
views
Windows 10 not found after installing Bliss OS
I have a problem similar to this one: Windows 10 disk not found when trying to boot from Grub
I installed BlissOS next to Windows 10. Booting BlissOS works but booting Windows results in error: Error: ...
0
votes
0
answers
16
views
GDB 'section' command doesn't seem to work as expected
As I understand it, the section command can be used to tell gdb that a specific section of the object file is loaded in a specific address. In my understanding this should also entail relocating all ...
0
votes
1
answer
24
views
How are source ports chosen for iptables SNAT targets?
By default the SNAT target keeps the source port of the original packet. If that port is already in use, it chooses one at random. Is there any way to influence the choice of this port or gage the ...
1
vote
0
answers
28
views
How can I find the color space of my display?
I would like to know what the color space of my laptop screen is. (i. e., is it sRGB, Display-P3, or something else?)
How can I find this out under Linux?
I know that I can get the ICC profile of the ...
-1
votes
1
answer
60
views
Cat in linux (help) [closed]
I am a rookie and need some simple instruction for the usage of the cat command to open a file. Can someone help in this endeavor.
0
votes
0
answers
10
views
VNCviewer - screen resolution and font size
I'm kinda new to VNCviewer and have some issues. This is on RHEL 7 based systems.
First, for regular day to day (character based) works, I use putty in my laptop with about 155 character wide and ...
1
vote
1
answer
25
views
Fedora 39 - Is it hardware or software problems?
Quite often my system freezes. I've experienced two instances of this "freezing":
The first type is when all of a sudden the whole display freezes, the keyboard and mouse are still lit up ...
-1
votes
3
answers
71
views
What openssh version is best on Linux when it comes to stability and security ( sftp security )? [closed]
I work in a government agency.
We are running a sftp client and sftp-server on a DMZ system where we receive and send files over the internet.
Our environment:
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 ...
1
vote
1
answer
72
views
How does linux report SNAT port exhaustion
I would like to monitor a router for potential SNAT port exhaustion. I'm fully aware of how unlikely this is to happen. I would still like to know how I could detect this on my running system. Does ...
0
votes
2
answers
57
views
How to modify $PATH globally
On my Debian server I use crontab to schedule a python code. The problem is: when I add a line like this:
6 9 * * * python /path/to/daily_task.py &> $HOME/out.txt
Not too surprisingly the ...
1
vote
1
answer
31
views
Alsa duplicate speaker sound to HDMI
I'm seeking for help or advice to setup my audio on my linux machine.
I would like to duplicate the audio coming out from the speaker to hdmi output.
Please see the settings I have:
aplay -l
**** List ...
-1
votes
1
answer
45
views
I am trying to execute a file
I am trying to access the grub 2 file after accessing the directory,
but it gives me an error saying permission denied.
Here is an image of my attempt to access it.
I can't access bios either. ...
2
votes
3
answers
53
views
can nohup and disown both still let program run after exiting the shell
I'm discovering the difference between nohup and disown in Ubuntu's bash.
I have while.py.
import time
while True:
print(1)
time.sleep(1)
First, I used ssh to connect to my ubuntu server and ...
0
votes
0
answers
14
views
Can't install RT::Extension::LDAPImport
I installed the application tracker version 5 on ubuntu server 22.04. Everything is working well, the tracker is running. But when trying to install sudo cpan -i RT::Extension::LDAPImport, an error ...
0
votes
1
answer
47
views
How to quickly find the largest files/dirs that differ between two directories that should be identical on Linux?
I'm trying to synchronize two hard drives. I thought most people who don't want to lose any data and don't use RAID would use such a method so that there would be a well-working GUI. That doesn't seem ...
0
votes
0
answers
34
views
Qemu GPU/Display passthrough
I want to passthrough my GPU to the QEMU Guest and it complete control of my monitor (seem as if it was the ONLY OS running)
I have tried on a laptop with only the built-in monitor and the screen just ...
0
votes
0
answers
31
views
syslinux.cfg ignores preseed/url on PXE boot
I'm trying to make a pxe-booted debian installer load a preseed file by default. I've verified that the preseed file works because I can point the installer to it manually and the installation begins....
1
vote
1
answer
30
views
Why does "bc" read my config file on one computer and not another?
I have two old machines, running CentOS 6.5 and CentOS 6.10.
Both have bc 1.06.95-1.el6 installed.
One reads $HOME/.bc.rc, one does not. Why ? (How??)
strace shows near-identical output, except one ...
3
votes
0
answers
24
views
What does it mean that /sys/block/sda/stat shows 'write I/Os' nonzero values, but 'write sectors' is 0 value
This is the output of cat /sys/block/sda/stat :
3227140 166605 7596010579 28294594 51 0 0 656 2 15228780 28295907 0 0 0 0 51 656.
Column 5 is 'write I/Os' currently 51, column 7 is 'write sectors' ...
-5
votes
1
answer
133
views
Debian 11 DHCP Configuration
I am having trouble configuring an interface to use DHCP in Debian 11. Thus, I have my static attempt in /etc/network/interfaces like this:
source /etc/network/interfaces.d/*
auto lo
iface lo inet ...
1
vote
1
answer
28
views
What Linux filesystems support preallocating entire files to reduce Torrent/Gnutella file fragmentation?
The way I understand it, with the Linux ext3 filesystem at least, when a large file is created, the blocks are not actually allocated on to the disk until data is actually written to that portion of ...
0
votes
0
answers
8
views
Why DO I get Hazed Screen while remote desktop in Linux?
I have a Rasberry pi 4 with rasberry pi os 64 bit. I usually use that as remote desktop for some purpose. I fresh flashed my sd card and installed xdrp,xfce4(desktop env) but whenever I open my ...
0
votes
1
answer
34
views
EXT4 FS check at startup time : Conditions for declaring it clean
1 Hard disk hosting 4 EXT4 filesystems, let's name them A(1,2,3,4), each one of them getting an entry in my fstab but very rarely mounted, drive even being powered off via udiskctl at init time.
1 ...
0
votes
0
answers
14
views
Systemd hangs at reboot/shutdown. No logs available
How can I figure out what service is stalling systemd during shutdown if I can't get a log?
I've been struggling for days trying to figure out what is causing systemd to hang whenever I try to reboot ...
0
votes
1
answer
36
views
cgroups v2 : io.latency not exists
When I create a cgroup using sudo mkdir /sys/fs/cgroup/my-cgroup, io.latency is not created. Other io files are created, like io.max, io.stat, io.pressure...
The content of cgroup.subtree_control ...
0
votes
0
answers
23
views
Simultaneous volume control for devices on Pipewire
I'm on Debian Bookworm with KDE plasma. To replace pulseaudio with pipewire, I cleared the directories with pulseaudio settings: ~/.config/pulse, /etc/pulse and /usr/share/pulse and installed the ...
-1
votes
0
answers
30
views
how to assign only one Network Interface for each user in Linux Mint?
as the title suggests
for example say the accounts and usage is etho0 only used for user1 and no other Network interfaces can be used by this user even if another user is logged in user2 using eth1
...
-2
votes
1
answer
49
views
lvextend + use variable in order to lvextend filesystem
we have different Linux machines and each Linux machine need different partition size
in order to extend the root filesystem or var filesystem by script , we can use the following lvextend syntax , ...
0
votes
1
answer
28
views
How to join the Ubuntu 22.04 Server to the Window Active Directory
I have new server running on the ubuntu and I want to join that server to our existing AD which is resolve as "ad.xyz.edu" and under that AD our department (OU) "med.abc.edu" is ...
3
votes
1
answer
147
views
How to get display to show a pdf properly
When I do:
display file.pdf
it shows this:
I can't resize the little window that it adds but I can remove it by clicking on the x. I can also remove the checkerboard effect that comes from assuming ...
0
votes
0
answers
19
views
why XDP not on egress?
I gone through multiple sources but got know that XDP egress is not supported by Linux .
I want to know exactly what thing xdp can modify on a raw packet and what not but tc can .
For XDP egress doubt ...