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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Monitoring disk IO on MTD devices

Is there a tool for monitoring disk IO on MTD devices? I'm using UBI on top of MTD, so could also monitor IO there if that's possible. It seems like only an erase counter is available in UBI and ...
  • 61
0 votes
0 answers
11 views

How to systemd-run a process and collect the exit status?

I want to wrap my command in a systemd-run and wait on it, redirect the logs to stdout and collect the exit status of the command. I want to systemd-run --remain-after-exit because I want to collect ...
  • 784
0 votes
1 answer
42 views

fdisk command is not listing the required commands like 'a'

I am new to the Linux environment and using the Pop!_OS Distro. I was using fdisk to create partitions on an SD card, sudo fdisk /dev/sda But when I pressed 'a' to set the bootable flag on the 1st ...
10 votes
1 answer
830 views

Use the 'cp' command in a Bash script and exclude a specific directory

I need to run this command in a shell script to copy source > destination and exclude a folder. No rsync, tar, find, mv, etc. Exactly this command: cp -var test/!(test2) testbkp In the shell it ...
1 vote
1 answer
24 views

Not using route associated with source IP

My system is running armbian 11.6 It connects to the internet through wlan0, it works fine. It also has an openvpn (tun0) connection. I want to have all traffic routed routed through wlan0 except for ...
  • 13
0 votes
0 answers
16 views

lighttpd: ajax request prints the content of cgi script instead of running it

I am using lighttpd version 1.4.55 within an ARM environment. I created an HTML pages in which there is a button used to download some json data. This button trigger a submit form that calls a cgi ...
  • 1
0 votes
0 answers
19 views

Route ocserv traffic to socks proxy

I have a ocserv on a Centos VPS and I want to route ocserv traffic via socks proxy I have installed ocserv and it works correctly. Clients IP pool for ocserv : 192.168.100.0/24 Socks proxy IP (v2ray) :...
0 votes
0 answers
59 views

Configure netplan to add routing policy automatically with DHCP interfaces

I have a fleet of devices using Ubuntu 22.04 and netplan, which have two interfaces (wired and wireless), both receiving IP addresses from DHCP. Due to the usage pattern of these devices, pretty often ...
  • 1
1 vote
0 answers
31 views

Linux boot parameter ignored when not placed last

I'm using ubuntu 22.04, with linux kernel 5.19.0 My laptop has a dead hard drive, which is very sad, but I can't do much about it. What I (hope I) can do however, is finding a way to avoid having to ...
0 votes
1 answer
45 views

What does Linux do when the /tmp directory is flooded?

From my knowledge of the `/tmp` directory, it is cleared on reboot. I'm unsure what happens to the living host whenever the /tmp folder is flooded (put to the max storage capacity) - does Linux have ...
  • 135
0 votes
0 answers
22 views

Wifi extremely slow on Linux mint

I have a very strange problem on my Linux Mint 21.1 Cinnamon. I am not an expert of Linux. The issue is that when my laptop is not plugged in, the wifi speed is normal, when it is plugged in to the ...
0 votes
2 answers
34 views

/etc/network/interfaces - generic network configuration

I have two single board computers from orange pi, each with two onboard Network adapters. One of them usually referred to as eth0, whereas the other one changes from board to board. It take different ...
  • 11
0 votes
1 answer
40 views

How to grep "find -print0" output?

I tried this: find /usr/lib -print0 | grep zip | xargs -0 -I{} echo "found file: {}" find /usr/lib -print0 | grep --null zip | xargs -0 -I{} echo "found file: {}" But it doesn't ...
  • 779
-1 votes
1 answer
53 views

kernel parameters + what is the right way to refresh the kernel parameter from custom.conf after reboot

we set the following kernel parameters in file 99-custom.conf more /etc/sysctl.d/99-custom.conf net.ipv4.tcp_low_latency = 1 net.ipv4.tcp_adv_win_scale = 1 net.ipv4.tcp_max_syn_backlog = 30000 net....
  • 12.1k
0 votes
0 answers
16 views

Web server in DMZ subnet can't access internet through Ubuntu router with multiple NICs

I have an Ubuntu 20.04 LTS server acting as a router with multiple NICs connected to different subnets. One of these subnets is a DMZ where my web server is located. The web server has a gateway set ...
0 votes
0 answers
41 views

does "find -name " matches the whole path or just the basename?

I was getting inconsistent results with pattern matching using -name, -iname, especially when looking for files -type f or directories type -d. Can someone explain under which circumstances -name ...
2 votes
1 answer
40 views

fail2ban keeps saying that the IP is banned and then it says it is already banned

Here is my fail2ban version v0.11.1 set up on a Ubuntu Linux 20.04 on an AWS EC2 planform. The jail.local file has the standard defaults from jail.conf but I only activate these 2 jails in jail....
0 votes
2 answers
59 views

Use awk to print a dividing line after rows that don't share a unique value

I have a csv file from a deduplicating tool (rmlint). I want to use awk to add a diving line after groups of rows that share the same value for a given field (like checksum) . File: type,path,size,...
0 votes
1 answer
25 views

Removing duplicates from multiple directories(more than 2 paths) using rmlint or another tool

I am trying to remove duplicated files and folders from several directories, and I was wondering if rmlint supports inputting multiple directories (I know you can use two directories if one of them is ...
0 votes
0 answers
13 views

SCP file from A via B to localhost

I have a file on a server I would like to copy to my localhost. I can access the file from my localhost via: ssh richard@B -t ssh richard@A then richard@A$ sudo bash (with password) then here is the ...
  • 101
0 votes
0 answers
18 views

Bluetooth headphones not connecting/pairing on fedora

Before anything am new to fedora so am sorry if i missed something obvious So my Bluetooth headphones refuse to connect to the laptop am using a small usb bluetooth adapter the problem isn’t from the ...
0 votes
0 answers
32 views

Piping not working as expected with SCP

I am trying to pass the password to scp command so that it doeskin prompt for it. I am doing it like this. echo "pwd" | scp -r $files_path $user@$server:$target On one server it is working ...
0 votes
0 answers
15 views

Kanboard doesn't install plugins docker

I work on a local system with no internet. I'm trying to install plugin and the first thing I did was to cp folder with plugin in to "plugins" changed config.php and data/config.php to ...
0 votes
0 answers
18 views

Read data from LIS2DE12 accelerometer

I am trying to read the acceleration data in the X, Y and Z axes from the LIS2DE12 accelerometer which is connected to an I2C-to-USB adapter, it is UMFT201XB. I am using a virtual machine in ...
  • 1
0 votes
1 answer
24 views

relocation of home is not calling .profile at new location

I relocate my /home/user to another partition with /etc/fstab. rootfs is on my SSD with the "original" /home/user folder. I located /home/user to a SD-card. Why does the system not called ...
-1 votes
1 answer
32 views

Automatic mounting of cifs after every reboot on centos

I have a requirement to mount the network drive after every reboot sudo mount -t cifs hostname - doing this manually right now
-4 votes
3 answers
85 views

hello I am very confused what does cd-- do?

I accidentally typed an extra dash and now I am in a weird directory that I cannot leave! Please help is there a way to undo it?
0 votes
0 answers
28 views

Networking problem with CentOS on VirtualBox. It works when IP address starts with 192.168. but does not when it starts with 10.2

My host operating system is Windows, and I installed CentOS on VirtualBox. The network of CentOS works fine when the IP address starts with 192.168, but today I started CentOS (on VirtualBox) on my ...
0 votes
1 answer
65 views

Dual monitors on Debian

I have a desktop PC with a HDMI monitor connected to a nvidia GeForce GT 1030 and a second VGA monitor connected to an integrated Intel UHD Graphics 630. Both monitors have worked smoothly for years ...
0 votes
0 answers
27 views

Wine: openssl rsa doesn't want to work at all in wine

I encrypt my traffic via the web with OpenSSL rsa, and in wine, it simply just doesn't work. my backend gets this error: [2023-03-06 17:50:35] - ERROR in post request: Error: error:04065084:rsa ...
  • 1
1 vote
0 answers
35 views

systemd support scripts path

I'm in the process of switching the init system of our yocto-based distro from SysV init to systemd. While going through some of our old SysV init bash scripts, I realized I cannot get rid of these ...
0 votes
1 answer
34 views

'address already in use', but I don't see where

I am trying to start a docker container on a specific ip by adding this to the docker-compose file: - ports - 'xxx.xxx.253.202:443:443' And I get this: error response from daemon: driver failed ...
  • 207
0 votes
1 answer
51 views

E: Write error - write (28: No space left on device)

Is it possible to solve the space problem below as root user? Any idea which disk/folder is full, causing installation of new software impossible? root@fba-bod-p1:/mnt/# apt install setuptools-scm ...
1 vote
1 answer
43 views

Error when unlocking BitLocker encrypted partition with dislocker tool on Linux

I installed Windows 10 and then tried to activate BitLocker on one of my partitions. I did the BitLocker steps. I entered the password and received the recovery key in the form of a txt file. After a ...
-1 votes
0 answers
34 views

make POSIX grep line buffered

I have the following command ffmpeg -hide_banner \ -loglevel error \ -headers "authorization: Bearer $...
-1 votes
0 answers
53 views

What is the most POSIX-compliant shell?

Just out of curiosity, I've been on a long unsuccessful quest to finding the absolutely most POSIX compliant shell out there. From what I now know, mrsh is the top candidate. Although yash might also ...
1 vote
0 answers
14 views

edge triggered epoll missing 0 byte read on close

I'm trying to understand if its possible to use edge-triggered epoll and avoid the need to call recv() to read from an epoll triggered READ event multiple times, every single time... The epoll manpage ...
  • 11
0 votes
0 answers
21 views

Mystery errors on the VL813 USB Hub on Linux?

I'm running Ubuntu 22.04 with a 7 port external USB hub. This box is implemented as two 4 port Via VL813 hubs. On the Linux side from lsusb this looks like Bus 004 Device 009: ID 2109:0813 VIA Labs, ...
  • 51
0 votes
0 answers
51 views

/dev/mapper/rhel-root is at 100%

Good day, Please I am having my /dev/mapper/rhel-root full is there a way to reduce it, I've tried to clear yum by doing yum clean all Kindly help out Thanks I used this command the command du -sh ...
0 votes
1 answer
49 views

What is the order in which Linux resolves DNS?

What is the order in which Linux resolves DNS ? Do I read /etc/nsswitch.conf, then read hosts, then go to /etc/resolv.conf DNS, and then go to network connection DNS ? I know very little about DNS and ...
-3 votes
0 answers
46 views

My computer always boots into grub

I have recently installed tiny11 on my computer and when i installed internet explorer in extra features. I got tiny11 because i was tired of ubuntu so i change it to tiny11. For some reason tiny11 ...
0 votes
1 answer
38 views

Cannot dualboot Linux (nothing helps)

I konw I know. Probably the 1000th post about this but I really feel like I have tried everything. Grub2Win, BootRepair. Manually reinstalling grub from live usb stick.. Nothing. So A while ago I had ...
  • 1
0 votes
0 answers
18 views

How to find out MPI vendor

How do I find out what MPI (MPICH, OpenMPI, etc) is installed? MPI location (returned by which mpiexec) is cryptic and does not hint a vendor. mpiexec --version returns mpiexec version 1.1.8 mpiexec -...
-1 votes
0 answers
48 views

Can not create video device file (/dev/videoX)

I use ov7670 sensor and zedboard (zynq 7000) to capture video. I using petalinux to custom OS for system. i was porting ov7670 driver for ov7670 sensor but video device file (/dev/videoX) isn't ...
0 votes
0 answers
38 views

GParted fs check wiped disk - possible to undo?

I connected a fat32-formatted USB drive to my system. dmesg showed: [ 4057.783200] sd 6:0:0:0: [sdd] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes) ... [ 4064....
  • 1,928
1 vote
0 answers
60 views

Unable to create device file of v4l2 framework

Cannot create /dev/video0 when I try to probing ov7670 driver in Linux run on Zedboard. The kernel version I'm using is 5.4 , I use Petalinux version 2021.1 to build Linux project and also enable the ...
0 votes
1 answer
30 views

is there a way to show all hits for a given command in a user's expanded PATH?

Is there a builtin way to ask a current shell "find me all of the possible matches for a given command in the PATH?" I realize that I could write a script that: expands the current PATH ...
  • 489
0 votes
0 answers
6 views

MTP copy from android phone to Linux desktop running XFCE fails with 'integer out of range'

Frequently, but not always, when I try to copy a file from my android phone to my Linux desktop I get the error message 'integer out of range'. This problem occurs both with copies via rysnc invoked ...
  • 3
-2 votes
0 answers
28 views

rsync returning error 12

I'm trying to run a rsync command, but I'm getting error 12 (usually used when the remote dir doesn't exist) but when I run the scp command with the same remote dir it works and copies the file to my ...
0 votes
0 answers
45 views

Cant ping WSL network interface gw from one container through another one acting as router

I'll try to keep simple for the sake of demostrating the issue. Scenario Docker compose (2 services) + WSL2 Ubuntu 20.04 Service A wants to act like "Router". Has an internal network & ...
  • 29