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
2answers
26 views

Failed to load library libOpenCL.so.1, although it exists

I have installed ocl-icd-opencl-dev and I try to run a simple OpenCL app, called vadd: $ ./vadd ./vadd: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such ...
1
vote
1answer
32 views

Tail a log and execute command when message stops

I need to write a script that will tail a log and look for a specific message. When the message appears, the script needs to continue to monitor the log, and when the message has not appeared again ...
0
votes
0answers
17 views

get errors after installing the netdata tool

after installing the netdata tool ( https://docs.netdata.cloud/packaging/installer/) we notice about the following errors that related to netdata tool [79103.083011] netdata[8026]: segfault at 2f ip ...
0
votes
1answer
30 views

why access to some port isn't stable

we install the netdata tool ( its OS performance tool ) we notice that netdata installation failed on curl -sSL --connect-timeout 10 --retry 3 http://localhost:19999/netdata.conf and: we notice ...
1
vote
1answer
29 views

Pass arguments to script

I have shell script that pass arguments to script, like this: script.sh argA argB arg1 arg2 arg3 argN ArgA and ArgB consider for name and family. Arg1 ... argN are phone numbers. (Maybe 1 to N ...
0
votes
0answers
22 views

How to Switch user and run a command as that user?

I wanted to set up a script that switches users and runs that command as that other user. so example sudo su myFavoriteUser && /run/command/as/myFavoriteUser Any help would be appreciated. ...
1
vote
1answer
71 views

How to gain superuser privileges without changing the current user?

I would like to keep my dotfiles and other configuration files (especially in the /etc directory) in the git repository. But in order to write inside the /etc directory git must be run as root. This ...
0
votes
0answers
10 views

VLC process won't start up again

I have an embedded system where if a user inserts a card, a video stream (VLC) will begin playing. When the card is removed, the process is killed. Over a long period of time and consistent starting ...
0
votes
0answers
27 views

How to write a script that sends kill signals if a process can't finish in s time? [duplicate]

I can't find any solutions for this problem anywhere. How to write a script that waits a process to finish, but if that process can't finish within s seconds, the script will send a signal TERM to ...
1
vote
0answers
21 views

Need to run scripts/commands with root privileges for user selfservices

The core of the topic is a very a common but I am not satisfied. I have a script looking for a pid and running the kill command on the pid if found. So I chown the script to root.root and add 4755 ...
1
vote
1answer
28 views

Did I make data recovery from my USB flash drive less likely?

I was using the dd command to copy my entire flash drive in 'blocks'. I was using the following: dd if=/dev/sda bs=16M of=/filepath/filename I was half asleep and I hit enter after dd if=/dev/sda, ...
0
votes
1answer
21 views

Change the resource limits (ulimit / rlimit) of a running process

I have a long-running process that is hitting a resource limit, such as the maximum number of open files. I don't want to kill it. Usually, you'd do: (stop service) ulimit -n <new limit> (...
1
vote
0answers
28 views

assigning value to variable creates extra values ghosting around

In my script I use winccoaID=$(ps -aux | grep -v 'color=auto' | grep -i 'WCCOAui -console' | tr -s ' ' | cut -d ' ' -f 2) winccLogID=$(ps -aux | grep -v 'color=auto' | grep -i 'WCCOAtoolLogView' | ...
1
vote
2answers
32 views

rsyslog filter severity not working

I have following Rsyslog config to send logs to remote servers. Problem is its sending lots of INFO mesg to remote server and i don't want that noise. I am trying to configure filter so it send all ...
1
vote
0answers
24 views

How do I turn off a usb device completely by terminal?

My ThinkPad T480 running Linux has a fingerprint scanner that shows up to lsusb as Bus 001 Device 004: ID 06cb:009a Synaptics, Inc. There are no drivers for this fingerprint scanner, and according ...
0
votes
0answers
23 views

How to get a Serial Connection through a Reverse SSH Tunnel

I have a project where I have a Serial port on one computer and not on the other. I need to provide a virtual serial port that is connected to TCP on the computer without a physical serial port. I ...
1
vote
1answer
29 views

Command in path not found [duplicate]

I've a command in the ~/.local/bin/ path (lets call it dog). Calling the command with the full path ~/.local/bin/dog works as expected . When I do which dog I get the expected ~/.local/bin/dog. When ...
0
votes
2answers
29 views

mkdir -p and touch for creating a range of subdirectories and files — How does it work?

I found these commands in a tutorial that create a parent directory with hundreds of sub-directories, followed by a touch command that creates hundreds 26 empty files in created sub-directories: ...
0
votes
0answers
37 views

Linux list directories themselves using ls command? [closed]

How possible to list directories themselves, not their contents using the option -d, --directory?
-2
votes
0answers
32 views

I replaced my motherboard and now Ubuntu won't load for me

I even tried to reinstall Ubuntu but "Error parsing PCC subspaces from PCCT" appears. I have tried so many things by googling, including deleting the partition that contain all of the Ubuntu data. ...
-3
votes
0answers
31 views

Kali linux low disk space after the installation

After I installed Kali Linux in Virtual Box I tried installing the Guest Additions on Debian. After I ran this command : sh /media/cdrom/VBoxLinuxAdditions.run I got a message that I had low disk ...
0
votes
0answers
31 views

Set WM_WINDOW_ROLE property to an arbitrary window?

I'm trying to make named scratchpad in xmonad, and I need some way to find/distinct windows. For example nvim-gtk. I can't use WM_NAME because name is changeable by nvim-gtk. So, I'm trying to set ...
2
votes
1answer
24 views

LibreCalc Absolute Cell References Changing

Using Libre Office 6.3.0.4, Linux Mint 19.2, Flatpak release. I have a simple function that needs to have a static row: =K15-G$2. Not sure when the error started occuring, but after I inserted (3) ...
1
vote
0answers
17 views

Connecting Win 10 roadwarrior to AWS strongSwan VPN - not able to find a certificate usable with Extensible Authentication Protocol

I managed to connect two AWS subnets in different zones over strongSwan VPN using ike2 with the aes256 encryption. So, Master CA key is created, self-signed CA certificate, as well as private and ...
0
votes
1answer
32 views

Skip PAM authentication module for specific SSH certificates

I use Yubikey's PAM module as an extra layer of authentication on my server. I want to skip this authentication module when a device tries to authenticate using a specific SSH certificate. I know ...
-4
votes
0answers
28 views

I can't install anything - “Could not exec dpkg” [closed]

Can you please help me fix this error for me? I'm not able to install anything. Could not exec dpkg! E: Sub-process /usr/bin/dpkg returned an error code (100)
1
vote
1answer
31 views

Changing filesystem

I need to change my filesystem to the NTFS filesystem from ext4, but the disks tool reports that the current disk is in use, which is obvious. How can I format my disk using terminal before booting? ...
-3
votes
1answer
39 views

Nested Loops for text file [on hold]

A text file containing data something like Vehicle: BMW Class checkin_note: Tyre : Four path_id : 11 vault_file_size: -1 Vehicle: Toyota Class checkin_note: Tyre : Four path_id : 11 ...
1
vote
2answers
43 views

Where is alsa-base.conf located in Debian 10?

So....I need to add some configuration (options snd-hda-intel model=) to the alsa-base.conf as I did in my previous installation of Ubuntu. Unfortunately, it seems like I have no alsa-base.conf file (...
-1
votes
0answers
30 views

su command for passwordless root behaves differently in CentOS and ArchLinux

The desired behavior is to allow passwordless root login in the virtual console and to forbid a regular user use the su command to become root. On Archlinux this is done by deleting the root password:...
-2
votes
0answers
24 views

SVN Utility installation on RedHat

I need to checkout code from svn in my redhat virtual machine but I dont have internet access on that vm so that I can download the svn utility for checking out the code. I need to download the setup ...
0
votes
0answers
12 views

KDE Plasma5 widgets by default

Configuration Kubuntu 18.04 KDE PLasma5 as desktop environment Problem Is it possible to configure default plasma widgets for new user? So when I create new user on workstation it have ...
0
votes
1answer
21 views

Difference between resize2fs and lvresize?

what is the difference between resize2fs and lvresize? I know that resize2fs is used for resizing partition and lvresize is used for resizing lvm, but what is the difference between these? resize2fs /...
-4
votes
0answers
14 views

How do I get pgadmin4 to work on my localhost browser? I am getting the following error: [on hold]

I am getting the following error: "penguin.linux.test refused to connect."
-3
votes
0answers
19 views

Linux booting problem [on hold]

The /dev/sdc6 filesystem was unable to be mounted at boot time, why is that? I've tried different things online with commands to show problems but I want to know what are the reasons for it to be ...
0
votes
2answers
35 views

Extracting specific file names and putting them into the folder of their name

I am newby to Bash, Ubuntu 16.04. I have tons of files, which seems like: aaaa1111 aaaa1112 aaaa1113 aaaa1114 ... aaab1111 aaab1112 aaab1113 aaab1114 ... aaac1111 aaac1112 ... (and so on ...) ...
0
votes
0answers
13 views

Different files are being viewed using different ways to login (ecryptfs) [duplicate]

The issue: When logging in using a local access(typing password near server) and then using SSH, correct files exist in home directory of a user. When logging in using SSH and then locally both see ...
1
vote
2answers
94 views

What happens to memory when we use putenv() on an environment variable which already exists?

I know that the environment is essentially an array of pointers to strings. Hence, freeing of memory occupied by these string would lead to loss of these environment variables. If I allocate memory ...
1
vote
1answer
37 views

What exactly is MOK in Linux for?

Upon installing Nvidia drivers I was promoted to set up a MOK password or third party drivers may not work properly, so I created one. After reboot I was presented with a blue MOK management screen ...
0
votes
0answers
12 views

Timed out waiting for device dev-mapper-home/user.device

I have installed LVM on a free partition I had and did the following to create home directories on the Volume group: sudo pvcreate /dev/sda3 sudo vgcreate home /dev/sda3 sudo lvcreate -L 100G -n ...
0
votes
1answer
30 views

Does Ansible have the ability to suspend a Linux system?

I'm having trouble locating any modules besides rebooting and shutdown for Linux. I'm wondering if anyone has done this?
2
votes
1answer
30 views

Restore a removed file when still in use

Is there a way to restore/recover a removed file when it's still in use?
1
vote
1answer
30 views

Booting a different GRUB entry the next time only

Is there a way to boot another OS or a different kernel the next time the machine reboots, but on the reboot after that go back to the original default?
0
votes
0answers
24 views

Is encrypting HOME folder enough in linux?

I've been using Windows and Bitlocker for years. I recently decided to give linux a try because of the beautiful Deepin OS distro. Encrypting my device is a must for me and most of the tutorials I ...
0
votes
1answer
27 views

MDADM creates additional block devices

I noticed a strange issue when creating RAID array with mdadm. As far as I see, it creates additional devices of md type. According to the kernel.org documentation, the md device type is Metadisk (...
1
vote
2answers
31 views

sed + delete all words that not contain string before the “dot string”

I castrated the following sed syntax in order to remove from file any host that not contain linux/LINUX sed -i '/linux\|LINUX/!d' file example linux01.moon.com solaris.moon.com UNIX.foot.com it ...
1
vote
2answers
41 views

Awk: match a block of code inside a enum block in a header file

I am trying to parse C++ headers to delete any #ifdef inside a enum. i needed this because a headerParser module I am using has this bug of skipping any enum with #ifdef in it. I have a shell script ...
-2
votes
1answer
26 views

What is the difference between “dentry” and “inode table” in Linux FS? [duplicate]

Are dentries and inode table same thing? If not what is the purpose of each and where are they stored? How does the filesystem exactly work specifically "ext4" or "xfs"?
-1
votes
0answers
18 views

Possibility of making an OEM install of every Linux distribution [closed]

Maybe this question is too broad, but for some Linux distributions I have seen the possibility to create a OEM install to deliver a "out of the box" experience. After some research, I found out that ...
-1
votes
0answers
21 views

Linux book recommendations for beginners [closed]

As a new Linux user, what books would you recommend to getting started in Linux?