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
0answers
7 views

UBIFS errors on an embedded RPi-like device

Test Environment Single board computer (https://www.emtrion.de/en/details_products-accessoires/sbc-sama5d36-56.html) Linux Kernel is version 4.18.8. Bootargs are: console=ttyS0,115200 earlyprintk ...
0
votes
0answers
9 views

multiple [[collectd]] in influx.conf

I have following collectd instance running in influx.conf file and everything is good, but now i want to setup other instance totally isolated with existing one how do i do that can i do following? ...
-3
votes
2answers
34 views

shell script for finding recently accessed file in linux [on hold]

print the name of the most recently accessed file in the directory /var/run/log/ whose name is of the form access-<DDD>.log (here <DDD> represents exactly 3 digits; thus the filename ...
1
vote
0answers
12 views

Locking Mouse to a single screen

I want to lock the mouse to a single monitor in a multi-monitor setup. I tried the following: MOUSE=`grep -i 'optical mouse' <(xinput --list --name-only)` MONITOR=`awk '/HDMI.* con/ {print $1}' &...
1
vote
0answers
20 views

Hide Grub Menu - Linux Mint 19.2

For some reason on my Samsung Ativ Book4, after installing Linux Mint, the grub menu is showing and I want to be be able to boot directly into Linux Mint 19.2 without having a loader showing the ...
0
votes
0answers
14 views

Registration of new nodes in a network

We install Debian (server variant) on a new client node (possibly behind a masquerader) in our network. Now we need to assign an autogenerated UID and secret keys(s) (for SSH and for API such as ...
1
vote
0answers
16 views

Why is NFSv4 not translating POSIX ACL's in a usable way?

I have an XFS filesystem in which some folders (using mode setting) have no public accessiblity, with group owner having read-only privileges. There is a program (which runs as user cryosparc_user) ...
0
votes
1answer
31 views

How to split CSV file by first column being a multiple of n

I have large csv file that looks like this: 1 , aaa, bbb, ... 1 , ccc, ddd, ... 2 , aaa, bbb, ... .. 10 , aaa, bbb, ... .. 1000 , aaa, bbb, ... I would like to split it into separate csv files ...
0
votes
0answers
9 views

Screen Brightness Controls Not Working (Fn/Slider)

I just switched from Windows 10 to Linux Mint. I have an older computer (Samsung ATIV Book 4 NP470R5E-K01B). My computer uses Intel HD Graphics 4000, as a graphics driver. I had similar issues with ...
0
votes
1answer
23 views

How to get list of processes from N days ago from ps output

How to get list of dates from an output of ps command to only show those processes beyond 30 days? My goal is to kill these processes. I can easily do this by killall command. E.g. killall -u user --...
0
votes
0answers
34 views

Mapping of well-known processes and ports

I need a list of well-known processes (and, if possible, a mapping between the processes and default ports they use) that are usually run on Linux servers. e.g. sshd : tcp/tcp6 22 : Secure Shell ...
-1
votes
0answers
19 views

Unable to find the mount point entry in fstab

I am using Deepin OS and upon installing it, I couldn't find a partition on my homepage, upon using lsblk I found that the partition was mounted in some other folder and to change the mount point, I ...
-1
votes
0answers
27 views

Linux machines assessment [on hold]

Good Morning. I was tasked to create a listing of our gnu/linux machines that we have in our and clients infrastructure. I need to perform a complete assessment of those machines. Considering that I'...
0
votes
1answer
30 views

retaining highest match from a column for a uniq ID [duplicate]

I have a tab delimited file with many columns: 1 A 10 1.94E-31 N/A N/A bat 1 B 20 1.94E-31 N/A N/A bear 1 C 12 1.94E-31 N/A N/A dear 1 D 36 1.94E-...
0
votes
0answers
17 views

is there a way to create sysfs parameter from userspace? [duplicate]

is there a way to create sysfs parameter from user space? Usually kernel driver creates it and we can access it from userspace. but in my case driver is sitting in userspace so was wondering if there ...
-1
votes
1answer
26 views

How to join tar files after splitting when we want to join specific files

We have the following combination of binaries files (they are after splitting) HADOOPa HADDOPb HADOOPc HADDOPd HADOOPe HADDOPf HADOOPab HADOOPac HADOOPbc Now we want to join them to tar. Since we ...
0
votes
1answer
32 views

How to run ssh reverse tunnel in background using python?

I need to execute the command ssh -NTf -R 5000:localhost:22 server@ip in the background using python. I know the command itself run in the background due to the option -f. I have used python ...
0
votes
1answer
16 views

alias fo rm command ( cp comand issue ) [duplicate]

I try to change the rm command into a command that give me backup of the file and remove the file after. function move_to_trash () { unset rm; cp -v "$@" "/home/`whoami`/backup/" &...
0
votes
0answers
19 views

Ran out of disk space Ubuntu 18

So I just got my pterodactyl server up and running, and the files combined have pushed the dir over the default28GB. Now I am fairly new at Linux os and a bit confused on how to expand that disk to ...
0
votes
2answers
55 views

grep command in bash shell loop

I have a log file, name out.log. I need to search a list of string (filelist.txt) from this log file. I need each matching line from "out.log" for every file in filelist.txt. it can appear multiple ...
0
votes
0answers
9 views

cuda has unmet dependencies but --fix broken install does not help

OS is ubuntu 18.04 This problem has originated from trying to install QGIS. Or I should say reinstalling QGIS, as I have had this package installed before. Somehow it got broken. When I try to ...
0
votes
0answers
7 views

Adding proxychains

When we use proxychains , we have to manually add socks4 or socks4 proxys to proxychains.conf file. Is there any other way to add these proxies and update them automatically? Tool or bash script?
1
vote
0answers
19 views

How to benchmark terminals or its related programs?

For testing, I tried some terminals with several themes (e.g. oh-my-zsh), initialization scripts (.rc files) and many of my simple pty-like programs (using forkpty). Some of them lags in my PC which ...
1
vote
1answer
23 views

WSL distro disappeared after running history | script

I have a Windows Subsystem Linux installation (the distro is Ubuntu). I use it to build a Rails project and deploy branches to the server. Things worked OK for the last year. Today I accidentally run ...
0
votes
1answer
32 views

calculate the total md5 of specific match files

in folder , we have the following HADOOP binary files and their size (BYTES) du -sb * | grep HADOOP[a-z] 334542327 HADOOPaa 334542327 HADOOPab 334542327 HADOOPac 334542327 ...
0
votes
0answers
10 views

ipv6 in qmi cellular proto openwrt

i want get ipv6 in qmi cellular protocol in openwrt my gsm modem is EC-25 and i check this that gsm modem show my isp ipv6 but qmi proto not set this ip for wwan0 how i can config this proto for ...
0
votes
0answers
30 views

How can “No Space left on device” cause failure execution of commands for its recovery?

I mean suppose I have got this error when writing a file on the root disk. Why would my command execution ( for read ) be affected due to this. If I try to read the file or filesystem information, I ...
0
votes
1answer
38 views

Moving a file from local drive to a remote machine

I'd like to move a folder that contains multiple files within it from my local folder to a ssh user@xxx.xxx.xx.xx machine's temp drive. What would be the best method in doing this? Thanks for your ...
0
votes
0answers
31 views

Manually entering a system date env var string in Linux - it works in Unix, but not in Linux

entered on the UI: system_date='2019-08-17 09:30:01' -- this works in Unix HP/UX In Red Hat Linux when this env var is exported, only the date is recognized, the space and timestamp are not being ...
-3
votes
0answers
16 views

Wifiphisher not working - Kali Linux

Whenever I run wifiphisher --force-hostapd, my wifi or even ethernet stops working. When I go into settings, it shows: Oops, something has gone wrong. Please contact your software vendor. ...
0
votes
1answer
23 views

Cron error: /bin/sh: 1: 6: not found [on hold]

I want to run the Cron Job to do a very simple test. I wanted the command echo "hello" to be run from cron. However, everytime I run it I get the following error: Return-Path: <bitnami@ip-172-26-...
0
votes
0answers
19 views

How to read data from one userspace app to another userspace process

From userspace application I read some data using IOCtl from kernel driver synchronously. Now Iam planning to move the driver to userspace. Is there a way for my userspace app to read some data from ...
2
votes
1answer
56 views

Fan constantly running at full speed

Here I am repeating a question previously asked in a sister forum, as it is relevant here and I have neither received a response, nor been able to resolve the issue. On my ThinkPad T470 which is a ...
0
votes
1answer
42 views

Create multiple untagged virtual interface on a single physical interface

For some very specific reason, I need to create 4 virtual interfaces with different MAC address on each virtual interface, the frames from those interfaces will needs be sent over a single physical ...
1
vote
2answers
26 views

merging rows based on common id in first column by adding those value?

I have a tab-delimited file: Class Sample_1 Sample_2 Sample_3 A 0 0 0 Z 0.25 0 0.75 A|B|C 0 ...
0
votes
0answers
12 views

How to find out the user ID of the command/request sender when we use any IPC (Inter Process Communication) in PHP?

Currently, We use socket for Inter process communication between two process , the application is written in PHP. Our scenario is, there is a server (server.php) and multiple PHP clients. We want ...
0
votes
0answers
18 views

Random short CPU spikes and short PC freeze

I am having problems with Linux on my PC. I am facing issues with CPU usage I believe. The issue persists with short CPU spikes causing my PC to freeze for short periods of time, around 1 second. And ...
1
vote
1answer
52 views

how to populate /sys in a initramfs?

I'm trying to boot an OS (linux kernel) using the debian kernel so i needed to use an initramfs (as everything is builded as modules). But after booting into the initramfs, it doesn't seems to ...
1
vote
0answers
28 views

gc_thresh kernel config issues

We were having problems with kernel logs in our datacenter: arp_cache: neighbor table overflow! It was related to all of our servers having consul on them using gossip protocol and "flooding" the ...
1
vote
2answers
38 views

Shell command output to file with command being executed [duplicate]

How can I output the command itself in addition to its output to a file? I know that I can do how to output text to both screen and file inside a shell script? to capture the output. My use case is ...
0
votes
2answers
26 views

Re-route traffic to an alternative outbound IP address

I have an application running on Alpine that makes requests to a particular IP address/port, say 127.1.1.1:10000. I'm unable to change that particular IP address/port. The service that it is trying to ...
0
votes
3answers
56 views

How to merge last four columns of a text file while inserting a different delimiter?

I have a file: sample_1 sample_2 sample_3 category subcategory class levels 52 59 80 wild animal herbe small 25 65 71 pet ...
0
votes
0answers
14 views

How can we use SSH agent practically in linux? [on hold]

I know what SSH agent is, but a little confused about its participation. Can anyone please guide me how to use it more efficiently. Maybe, suggesting a good tutorial? Thanks.
2
votes
0answers
21 views

SSH-key accepting passphrase, but moving on to password authentication? (only happens between one server pair and not a similar pair)

I've been scratching my head at this for a while now. I needed to set up ssh-key based authentication for sftp. So, I generated the key files with a passphrase and sent the public key to the other ...
0
votes
0answers
11 views

How to run the shell script on remote server from a windows shell script or a bash script?

I have created a shell script to upload git files from windows to bitbucket. Now I have placed that shell script in Linux box because the source folder exists on Linux was from directly I want to ...
1
vote
0answers
29 views

User switching within a Docker container's context

In a self-built Docker container, I want/need to run applications under a specific UID and GID. Trying to use a UID:GID pair that does not exist on the host fails. Remarks the intended UID:GID(s) do ...
0
votes
0answers
17 views

ACLs on NFS mounted directory

I'm trying to set an acl on the contents of a directory so all members of a group called prod_grp can write to a directory that is NFS mounted from another server. The acl is below: # file: prod-...
0
votes
0answers
21 views

How can I view which ports are blocked and why the other ports are activated on a Linux Bridge?

This was one of the questions I had on an exam about computer networks (translated from dutch). The answer should be one single command.
1
vote
0answers
33 views

Comparing load on linux servers

I am working on a load balancing problem where I want to launch a process (IO and network intensive) on one of the Linux server which has less load compare to another linux server. Now load means ...
0
votes
0answers
11 views

couldn't find section “\” - when installing a driver with ndiswrapper

When I've finished installing Elementary OS, it doesn't read the wifi adapter. When I search a solution for this, someone suggested that I use ndiswrapper, a tool to install Windows driver on Linux. I'...