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
14 views

create first come first serve with bash script

#/bin/bash sort(){ for ((i = 0; i<$n; i++)) do for((j = 0; j<`expr $n - $i - 1`; j++)) do if [ ${arrival_time[j]} -gt ${arrival_time[$((j+...
user avatar
1 vote
2 answers
19 views

Why to use udev rule to insure persistent naming/permission instead of mknod?

I have seen some configurations using udev rule to insure the disk name and permissions in the disk. But recently I've find out a command called mknod, where it works like an alias to the block device,...
user avatar
  • 327
0 votes
0 answers
11 views

Unable to connect to rainloop

I am installing Rain Loop but when I want to connect to an account I have this message that appears "Authentication failed" have you ever seen this problem
user avatar
0 votes
1 answer
20 views

Using excess video memory for disk caching?

On newer Ryzen 5000-based laptops, the integrated graphics controller always gets at least 1GB of shared video memory. In the BIOS settings, 1GB is the minimum. For people who don't need 1GB for video ...
user avatar
  • 1
1 vote
0 answers
6 views

systemd-coredump - Invalid argument

I'm trying to force a core dump using systemd-coredump, however, when I check my journal I see the following error: systemd-coredump@7-3897-0.service: Failed at step NETWORK spawning /lib/systemd/...
user avatar
  • 121
0 votes
1 answer
70 views

Why so many users in my own linux pc?

I'm just find out that there are over 40+ users in my pc which running Linux OS. Do they even have password? I'm the only one users here. What is the point of having so many user in my own linux pc? I'...
user avatar
0 votes
1 answer
19 views

Fstab permissions

I created a partition called sdb1 in fat32 and created 3 folders within a main folder however I wanted the 3 folders to have different permissions. I tried to make an ana folder with all permissions, ...
user avatar
0 votes
0 answers
12 views

Can't boot into GRUB (Win 11 and Linux installed on separate drives)

I have a Lenovo P330 Thinkstation. This SSD it shipped with runs Win 11. I wanted to experiment with Linux, so I installed an M.2 SSD and put first Mint and and then Ubuntu on it. I booted via GRUB....
user avatar
  • 1
2 votes
1 answer
16 views

My computer shuts off, then instantly turns back on a second later

So I recently got an Alienware desktop computer because there was a big sale on it, and then I instantly installed Linux on it after doing a bios update. Everything works great apart from one thing, I ...
user avatar
  • 21
0 votes
1 answer
23 views

automount disks but with dev name, not some random numbers

On Linux, all connected disks have ambiguous mountpoint names to user. For example, if I connect a USB then Linux (udev?) mounts it to a directory like this: /media/username/78128SDGHJ23G But I want ...
user avatar
  • 160
0 votes
1 answer
12 views

Unable to install picom

I am trying to install picom on Manjaro. I tried to download it from the AUR yay -S picom-git am getting these errors :: File /var/cache/pacman/pkg/libconfig-1.7.3-1-x86_64.pkg.tar.zst is corrupted (...
user avatar
  • 11
0 votes
0 answers
6 views

arrow key are enabling SHIFT in centOS machine

I am working on CentOS virtual machine and today I might have pressed something. After that whenever I press the arrow keys it enables the SHIFT key permanently. To disable it I have to press both the ...
user avatar
3 votes
4 answers
230 views

Finding the line number of first occurrence of a text in bash script

I need to find out what is the line number of first occurrence of a given search string that should be in the start of a line in a text file and store it in a variable in my bash script. For example I ...
user avatar
  • 583
0 votes
0 answers
26 views

Please Help me to fix this OpenVpn error

2022-06-24 13:08:04 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) 2022-06-24 13:08:04 PUSH: Received control message: 'PUSH_REPLY,route 10.10.0.0 255.255.0.0,route-metric 1000,comp-lzo no,route-...
user avatar
0 votes
0 answers
6 views

shifting from windows 10 to Zorin OS

I have been using windows for a long time now, however, I want to install and move to Zorin Os, but I'm afraid that all of my data and app data will be deleted during installation. Is there a way I ...
user avatar
1 vote
1 answer
22 views

How to kill watchdog Daemon on Linux

I configured my watchdog.conf, and i want try if my computer restart when it crash. so, I wanted kill my Watchdog to try if my computer will restart. But I try to killed it with the command "...
user avatar
0 votes
0 answers
18 views

*nix shell: How to disable pipe buffering for ALL pipes in a command?

I want every pipe to be unbuffered, so I don't have to type stdbuf -oL for every piped command. When concocting commands with multiple pipes, it would be nice if there was a environment variable or ...
user avatar
1 vote
0 answers
8 views

Unable to install "tidyverse" in R or Rstudio without running into errors and/or non-zero exit status

I've been having troubles with installing the tidyverse package in Rstudio and more recently when reinstalling R. I'll post my most recent error message when reinstalling R below after system info. My ...
user avatar
0 votes
0 answers
9 views

mdadm.conf, `PROGRAM` arguments documentation

I want to write a bash script that i can pass as the "PROGRAM" in the mdadm config file. But i cant find what possible arguments get passed to the program. Where can i find the documentation ...
user avatar
  • 111
0 votes
0 answers
8 views

PAM module debug and some confusion on password entry

So i have been doing research on learning pam moduel in linux system. And i come across some online resource explaining how pam moudle works. And one of the line is account required pam_unix.so ...
user avatar
0 votes
1 answer
34 views

Debian: convert from RAID1 to RAID 0

i have a debian11 ssd server which is installed in RAID 1 MIRRORING i use the server as webhost and for better performance (whith high volume of users) i need to use RAID 0 so data wil be split across ...
user avatar
0 votes
0 answers
13 views

How to list the I/O usage per disk?

Using iostat, I can get the processes that use up the disk and how much - but can't specify the disk iostat -o Using dstat, I can see usage per disk - but not the processes that use it. dstat -tdD ...
user avatar
  • 101
-1 votes
1 answer
56 views

Why does my Kali Linux system suddenly restart at odd times?

My Kali Linux system suddenly rebooted at 19:05. It used to be rebooted at certain times. Where does the problem come from? Why does this happen? /var/log/syslog: Jun 22 19:00:11 sz dbus-daemon[1107]: ...
user avatar
  • 3
6 votes
1 answer
216 views

How does /proc interact with PID namespaces?

I do not understand how namespaces interact with /proc. I assumed that /proc returns values based on the process that queries them. For example, let's determine the PID of the current process inside ...
user avatar
0 votes
1 answer
29 views

How to Create ISO / Installation Image from Our Own LFS(Linux From Scratch) Operating System in Qemu? I want to Make my Qemu.qcow2 image my Host OS

I want to ask how to create an ISO, my OS is made with LFS 11.0 System V and I install it in Qemu. My Host OS is CAELinux. The main concern is: Is it possible to move the LFS OS installed in Qemu to ...
user avatar
0 votes
2 answers
63 views

Login SSH using RSA key instead of normal login

I use ssh-keygen to generate a pair of keys on Kali ~/.ssh folder. Great. I also added the public key to ~/.ssh/authorized_keys. Permissions have been set to 600 for that file too. Results are: Putty:...
user avatar
0 votes
2 answers
41 views

How to pass stdin to python script

I'd like to pass input from a shell command over to a python script in an alias that uses a shell command. test.py: import sys print(sys.argv) the alias alias foo='echo $(python test.py $1)' since $ ...
user avatar
1 vote
2 answers
33 views

How to move file contents deeper without copying

I have files in /home/jjblack/foo/. I want to move all the contents of this directory into /home/jjblack/foo/bar/. I am unable to copy the contents elsewhere as there is not enough disk space. I am ...
user avatar
  • 81
-4 votes
0 answers
33 views

Root folders showing in my home directory

I was training on Hack The Box and I accidentally did something wrong, but don't know what. My home folder now is full with other random folder. Rrunning ls -la command on my home folder: drwxrwx--x ...
user avatar
0 votes
0 answers
7 views

When boot option with "iommu=off intel_iommu=off ", it will cause IBM x3650 M4 IMM remote console cannot work properly

CPU: Intel E5-2660 v2 OS: CentOS 7.9 When I added "iommu=off intel_iommu=off" in grub boot option, it can boot successfully. But IMM (BMC) remote console (IBM video viewer) cannot use ...
user avatar
  • 1
-5 votes
0 answers
51 views

How to get root privilege in linux as normal Linux user [closed]

I am a Web app Penetration Tester and recently i have exploited a web server running Linux-x86. I was able to access admin panel of the website and upload any file to the website which then gets ...
user avatar
0 votes
0 answers
43 views

Can't find a bash script anywhere in filesystem

I have a bash script that uses ssh and requires 1 positional argument. If I type the name partially, the bash-completion completes it and the script works. The issue is that I can't find it anywhere ...
user avatar
  • 179
0 votes
0 answers
16 views

how to replace string having $ with null using sed command bash? [duplicate]

I have a varibale TMP have string and I am using that string to be replaced using sed command to null. TMP variable has string like this "dec$|fgh$|yxz$" and I am using this command example....
user avatar
0 votes
0 answers
11 views

Reconnecting USB device quickly crashes the system

I am trying to reconnect several USB devices (ZTE MF823 modems) on the debian server and sometimes it makes the system crash , this is the output of dmesg -Hw P.s It is using USB2 Any related ...
user avatar
  • 1
0 votes
1 answer
33 views

Add information to HTML table with awk

I am trying to get the numerical and percentage outputs of free together in a table, which I send to myself per mail. I have tried to combine these into one table for quite a while, but nothing seems ...
user avatar
0 votes
2 answers
20 views

Writing a jq to add key names on a json list

I was trying to write a query in linux for alternate a json file and write it in a new file. My json file is formatted like so: {"intents": [ { "patterns": "'For the ...
user avatar
1 vote
0 answers
22 views

For automatic startup is it enough to copy script to /etc/rc.d folders?

we have installed some tool on RedHat linux 8.5 which comes with a README file that explains steps we should do, in order to enable automatic startup: Copy the 'accurev' script to the /etc/rc.d/init....
user avatar
  • 188
1 vote
1 answer
29 views

Text boot without text console: agetty problem in Fedora 36

I have always used text+console boot without graphic interface. This includes the login, that is also text only since I do some sync stuff at login time, specifically on tty1 where I have an autologin ...
user avatar
0 votes
0 answers
9 views

Selenium XVFB - Unable to receive message from renderer

Overview: Selenium scraper works perfectly in headless mode. Spawning a virtual display shows no errors via XVFB: from xvfbwrapper import Xvfb vdisplay = Xvfb() vdisplay.start() vdisplay.stop() But ...
user avatar
0 votes
0 answers
10 views

Red Hat 7 Machines Create Mountpoints when Mounting from Netapp

Note: nfsv3, kernel 3.10.0-1160.62.1.el7.x86_64 Could someone explain the magic behind the mounting of what I would call "submounts" from a Netapp filer? I see mounted filesystems in /etc/...
user avatar
  • 2,249
0 votes
0 answers
17 views

FAILED: load BTF from vmlinux : No such file or directory

While trying to build kernel (4.15) with support Ftrace and debug info, I am getting the following error: FAILED: load BTF from vmlinux: No such file or directory Makefile:1160: recipe ...
user avatar
1 vote
3 answers
53 views

How to find first occurrence of string in file, set value as variable, and edit rest of file from there

I'm not sure how to title this, but here's what I've got: A file with text like: [10:03:43] 10:03:35 22JUN22 ConUP CW1B1 T CW1B3 T CW1B5 T CW1B7 T [10:03:44] ...
user avatar
  • 11
0 votes
1 answer
24 views

Find files not read since period of time

Is it possible to find under #linux files that were not read since defined period of time? Reason to do that is to save space on my storage by finding files that are probably not necessary in my ...
user avatar
0 votes
1 answer
14 views

SELinux issue with FTP/Samba/Home directory

I am setting up my home camera to record to my NAS server (CentOS 8 Stream). I am using FTP for the transfer. I installed vsftpd and created a dedicated user (ftpuser). I want the files to be ...
user avatar
0 votes
0 answers
17 views

Turn off monitor backlight (DPMS) from a VC/VT (TTY) without Xorg/Wayland-DE

How does one flip a monitor's backlight on/off from the normal Linux console (tty1)? I'm looking for a way to do this without dependencies on Xorg or specific Wayland-Compositors. Let's say, that I ...
user avatar
  • 23
0 votes
0 answers
9 views

Wired network reconnects exactly each five minutes

I have here a laptop with Linux Mint 20.3. Seems that exactly every 5 minutes my wired network connection is reconnecting. For determining that I have getting the UUID of my wired interface: mcli ...
user avatar
  • 101
0 votes
0 answers
8 views

How to disable and re-enable bracketed paste mode in xonsh?

How to disable and re-enable xonsh bracketed paste mode? It breaks pasting in interactive terminal tools that are started with keyboard shortcut. In fish I can run functions ...
user avatar
  • 557
0 votes
0 answers
8 views

When slabtop shows USE 0% but ACTIVE is nonzero, should I be worried or is it just a bug?

Start of my slabtop -sc looks like this Active / Total Objects (% used) : 3305074 / 4014163 (82.3%) Active / Total Slabs (% used) : 110077 / 110077 (100.0%) Active / Total Caches (% used) ...
user avatar
0 votes
0 answers
19 views

Failed ssh sttempt via Ansible

fatal: [SW1]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "paramiko: The ...
user avatar
0 votes
0 answers
45 views

Problem loading out-of-tree module

I'm trying to load an out-of-tree module, exactly the same way I was doing it on past kernels with success. But with 5.15.27, it longer works: $ insmod /lib/modules/5.15.27custom/extra/mymodule.ko ...
user avatar

1
2 3 4 5
704