Questions tagged [linux]
A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.
59,115
questions
1
vote
2
answers
22
views
What is the purpose iproute2's nexthop object management utility?
I'm not sure how ip nexthop is used to affect the route taken by packets and its relationship with ip route and the nexthop parameter of ip route. Is there a standard way this is used within industry, ...
0
votes
0
answers
84
views
How to use ssh x11 forwarding on Windows?
I am running XServer by VcXsrv on Windows. Here is my VcXsrv configuration, and I believe it should be listening on :0.0, which is port :6000.
<?xml version="1.0" encoding="UTF-8&...
0
votes
0
answers
27
views
Proxmox Root Passwords being changed randomly
I have a Proxmox Cluster set up with four nodes and One qDevice set up. I just got the qDevice working last night, but since this evening I'm seeing something I can't really understand. The passwords ...
1
vote
0
answers
23
views
Is there anyway to disallow accessing local network devices through global IPv6 addresses in linux?
I realize that this question might sound kind of strange, but it is necessary for my situation as far as I can tell.
The root of it is that my ISP assigns IPv6 global addresses dynamically and ...
0
votes
1
answer
118
views
keep getting mysqli_real_connect(): (HY000/1045): Access denied for user 'testing'@'localhost' (using password: YES) for non-root users
I have a linux web server as a part of a college course (i.e, all of my applications and setting are done according to my teacher instructions, and I get the needed files from his ftp server). I'm ...
1
vote
0
answers
22
views
How do I hide the size of GPG message?
When constructing encrypted GPG messages I've noticed that the size of the output seems to be correlated to the size of the input. This makes sense in an information-theoretic sense. However, this is ...
1
vote
0
answers
85
views
How to create virtual audio devices in linux
How do I setup virtual audio devices in Nobara linux. I am new to linux and want to switch over from windows but I need this solved first.
In windows I use the program vb-audio.com/Cable/ to have my ...
0
votes
1
answer
89
views
How do I update the UUID of an ExFAT partition?
How do I set the UUID of an ExFat partition?
The linux tools I've tried (mlabel, gparted) only allow resetting the UUID to a different random one, not to a UUID I choose.
1
vote
1
answer
91
views
live-build error: cp: cannot stat 'chroot/boot/vmlinuz-*': No such file or directory
I am using live-build to create custom live debian. I started on a fresh Debian Bookworm installation and followed live-build docs.
lb config
sudo lb build
I had some errors for firmware-linux ...
1
vote
0
answers
40
views
strange routing table entries
My Linux network device cannot be access outside my local network.
I checked the routing table, and found the following:
netstat -rn
Kernel IP routing table
Destination Gateway Genmask ...
0
votes
0
answers
70
views
How can I make virt-install boot from a keydrive/usbstick image?
virt-install 4.1.0 on nixos 23.11
I am trying to install from a memory stick image with the following options:
opt=(
--name pfsense
--ram=4096
--vcpus=4
--os-...
1
vote
1
answer
37
views
Generic way to open $EDITOR at a specific line
I'm building a CLI application where you're supposed to be able to open files at particular lines.
I noticed that many applications (vim, nano, kakoune) use the + argument to allow you to open a file ...
0
votes
0
answers
13
views
How to remap a key in windows to have multiple functions?
On my linux machine, I'm using a tool called evremap to map the caps_lock key to escape when tapped and left_ctrl when held. I wanted to replicate this setup for my windows machine but couldn't find a ...
1
vote
0
answers
21
views
How to change root without side effects
How can I, preferably without entering a new subshell, change root for the current shell, while keeping the same environment ? The assumption would be that the new root and sub-directories from that ...
0
votes
0
answers
54
views
How to indefinitely restart a systemd service until it succedes?
I have a systemd service on a machine that could be killed (or otherwise fail) which I want to restart upon failure indefinitely, trying a restart every 2 seconds until it succeeds (or the end of the ...
0
votes
1
answer
42
views
Is this missing library something I can install without sudo privileges?
OS
I'm using a CentOS 7 system, which like a red hat system from what I observe (relevant further down the post.)
cat /etc/*-release
CentOS Linux release 7.8.2003 (Core)
NAME="CentOS Linux"
...
0
votes
1
answer
24
views
changing the directory a tarball decompresses to
When I do wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz and then tar xvzf install-tl-unx.tar.gz the files get extracted (right now) to install-tl-20240521. On the CLI it's ...
0
votes
1
answer
34
views
terminal inserts characters after CTRL+C
in some of my applications (ArchLinux, Gnome 46) some chars are appended to my username when using CTRL+C to abort a script. Sometimes also in the middle of bash scripts, which makes it a bit painful:
...
0
votes
1
answer
42
views
What happens to core dump when pid is reused
When using the core dump management system called systemd-coredump we can see the list of core dumps with coredumpctl list.
The list of core dumps is listed with date and pid.
To extract the actual ...
0
votes
0
answers
33
views
Why does my monitor shut off / enter sleep mode when I try to install Linux?
So I've been trying to install Linux on one of my SSDs, but whenever I get past grub to get to the graphic installation, my monitor shuts off and enters sleep mode. I'm not sure what causes this. I've ...
0
votes
0
answers
25
views
Are there alternatives to bind mounts, that don't require the target already exists?
RootFS is read-only and I'm working around that by bind mounting files and directories to specific locations. Bind mounts seem to require, that the target exists already, so I can't use them to create ...
0
votes
0
answers
37
views
Files and folders on shared drive created on Linux are not visible in Windows (dual-boot)
I have a dual-boot with Linux (Manjaro) and Windows installed on two separate SSDs, plus I have a shared ex-fat HDD which contains documents and the like.
Problem is, very often, when I'm on Linux and ...
0
votes
1
answer
105
views
How to resolve an asymmetric routing issue?
I have a network consisting of the following:
PfSense router with untagged network 10.1.0.0/23 and tagged VLAN 40 network of 10.1.40.0/24.
I have a wireless computer connected to the the 10.1.0.0 ...
0
votes
1
answer
23
views
How do I find maximum output resolution supported by my buildin graphics output on linux?
How do I find maximum output resolution supported on hdmi by my build-in cpu graphics output on linux? (Fedora, in case that matters).
I know I can just lookup the cpu, but that just gives me the ...
0
votes
0
answers
42
views
Font icons corrupted on my Arch Linux after system update
I am using Arch Linux and pretty much update my system daily. I rarely get into much larger problems, find the cause and resolve them. Friday I did an update and didn't notice that my Konsole font ...
0
votes
1
answer
19
views
Disk usage wrong after incorrect fstab mount and rsync to the mount
tl,dr;
Something is using disk space after failed mount and rsync but I can't find out what it is and how to cleanup/free the space.
Context: I was trying to add second disk to my RPi and given that ...
0
votes
0
answers
54
views
IS there a way to find out the Serial, firmware and OS version of a USB device?
I am using the kernel 5.15 based embedded device; have the requirement to figure out the unique field of a USB device, so that I can distinguish when the same vendor, model USB devices(VID,PID are ...
0
votes
0
answers
81
views
Use the Windows PC as a middleware to access the restricted site
Assume my Windows PC has the ability to access the restricted.com site via a network adapter that only supports Windows. I want my other Linux PC to be able to access that site as well, but because ...
0
votes
0
answers
56
views
systemd-networkd gains ipv6 but not ipv4
hoping for some help debugging a systemd-networkd issue.
I have both systemd-networkd and wpa_supplicant.
I've enabled a [email protected] systemd unit that corresponds with an /etc/...
0
votes
0
answers
19
views
Mounting drive with mount command and fstab do not work as intended
I have two external USB drives which I would like to be mounted to specific directories which are owned by my user. A script runs on startup which mounts all my drives in their specific locations ...
0
votes
0
answers
14
views
How can I make total size of LVM partition match Used + Available?
I have a weird storage situation that I suspect is because I set up my LVM allocations incorrectly:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/data-cams 916G 830G 41G 96% ...
0
votes
0
answers
21
views
Ethernet devices on router cant ping or reach wireless devices
My homeserver pc is connected to router via ethernet and my wifi devices on the network cant reach it and they cant reach it. Wireless devices can contact each other and all devices can ping router ...
0
votes
1
answer
18
views
Cant seem to share a windows shared folder to my raspi5 keep getting this error
testkit@RASp5:~ $ sudo mount -t cifs -o username=Main_Link,pass=q&yLC0es9a //192.168.1.103/Remote_Access ~/Desktop/share
[1] 15535
bash: yLC0es9a: command not found
testkit@RASp5:~ $ mount: bad ...
0
votes
0
answers
42
views
Windows to Raspberry PI Model 5 Folder Sharing
I have a windows system sharing a file share to a Raspberry Pi model 5
I have no password set on this pc
when I leave the password blank and press enter
i get mount error (13) permission denied
If I ...
0
votes
0
answers
92
views
How to connect Linux to a WPA2-EAP-CCMP Wi-Fi network?
Summary: after having gone through tons of documentation pages, I still cannot connect my Debian to a WPA2-EAP-CCMP Wi-Fi
The NIC is correctly configured (driver-wise):
# iwconfig
wlx00e04c45ad46 ...
0
votes
1
answer
53
views
Keyboard sending wrong codes for certain key combinations only to linux terminals, tried everything. So confused
I had been trying out a few different linux distros over the past few days and ended up back in Windows. I noticed that in WSL ubuntu shift-home wasn’t working properly—it would print out the letter H....
1
vote
0
answers
34
views
How to mount Luks disk with specific user?
Have a external disk with Lucks and EXT4 partition, the OS mount the disk using the first user by default but can not mount as secondary user:
The first user is uid=1000 and gid=1000, but the ...
0
votes
0
answers
19
views
Issues with internet connection via openvpn
The organization I'm with uses an OpenVPN connection and RDP to log into a virtual environment we work with. The way I understand it only traffic that is aimed at our internal net (in the 10.0.0.0/8 ...
0
votes
1
answer
176
views
Is there a quick way to reclaim space overallocated for files on ext4?
Samba 3 has somehow overallocated a lot of space on my NAS for hundreds of files. (Looks like that was caused by strict allocate = yes in smb.conf even though it's unclear to me why. Filesystem is ...
0
votes
0
answers
44
views
latest kernels issue, wont lauch
i'm not sure exactly which version, but I think my graphics card has a problem with kernel 6.8 and later. When i want to install arch linux, i should add "nomodeset" to grub so i can install ...
0
votes
1
answer
55
views
retrieve response body from wget --method=PUT
I knwo that with GNU wget (https://www.gnu.org/software/wget/manual/wget.html) I can send PUT HTTP requests with --method=PUT, but I cannot figure out how to read the response body I get back.
What I'...
0
votes
0
answers
48
views
How to disable low-level key repeats
I noticed that many keys repeat on my debian system. I tested with xev and apparently even my SHIFT and CTRL keys repeat, i.e. I get a series of key press and key release events. If I hold the SHIFT ...
0
votes
0
answers
29
views
Docker container not recieving packets from specific port
So I have an instance in Oracle cloud, running OL7. In that instance I'm trying to setup some docker containers with multiple servers. These container should be reachable from the outside on different ...
0
votes
0
answers
57
views
My python application doesn't want to cross-compile using Yocto
I'm currently trying to set up a Linux OS for one of our embedded projects, I've successfully cross-compiled many packages from pypi using the PiP2Bitbake package but when I tried to do it with a ...
-1
votes
2
answers
112
views
Present a laptop as a keyboard via usb-c to a raspberry pi
I have a laptop (dual boot linux/windows, if this could help, and with both usb-a and -c ports).
I also have a raspberry pi 5 (I just received this starter pack for my 42th birthday).
I don't have a ...
2
votes
1
answer
202
views
How are `vti` and `xfrm` iproute2 interfaces supposed to be configured and used with xfrm states and policies?
XFRM states and policies enable configuring IPsec encryption without a virtual interface. The vti and xfrm interface types, however, I think make it possible to route traffic through a virtual ...
0
votes
0
answers
24
views
How to detect the addition of overlay mounts on a running system?
Problem:
Using File Integrity Monitoring (FIM) software, I want to detect when files are added/deleted/modified.
However, the current solution is based on iNotify.
It seems that if an attacker were to ...
0
votes
1
answer
33
views
How to disable particular audio jack in debian?
I have recently dual booted Windows and Debian based Kali Linux. I have a faulty front panel audio jack. This causes the speakers to instantly disconnect and reconnect over and over again, which ...
1
vote
1
answer
168
views
How to find matching yaml files based on content
I have a bunch of files that contain yaml. Some files are yaml-only, some have yaml front-matter. I would like to be able to query the list of files to return a list that match certain criteria. In ...
0
votes
0
answers
58
views
USB became read-only after using dd to flash a Linux ISO
I recently used the dd command to flash a Linux ISO to my USB drive. After doing so, the USB drive has become read-only. I suspect that using dd might have caused this issue, as suggested in this ...