All Questions

0
votes
1answer
1k views

Centos 7: No Wifi Adapter found

I have dual booted centos 7 with Windows 10. Once centos 7 setup finished, no wifi connection was available. In the "settings > Wifi", I see a message saying "No wifi adapter found". My wifi adapter ...
0
votes
1answer
23 views

What is the equivalent (programmatically) of cat /dev/something > file.txt

I'm copying a video from a camera stream using a command cat /dev/video0 > file.mpeg This works perfectly, however I want too break up the file into smaller chunks... So I've been waiting pressing ...
2
votes
3answers
28 views

Define bash function which does not show up in xtrace (set -x)

In a bash script I have a log() function that is used in several places, as well as a logs() function that diverts lots of line to log(). When I run parts of the script with set -x, obviously all ...
1
vote
0answers
13 views

Save Data From NCAT and update Database

I have a raspberry pi Device in two of my shops which will send data using ncat to my Linux machine at my home via the internet. I need to continuously listen to the TCP port 7070 and update my SQL ...
0
votes
1answer
7 views

How to match by passwords against Have I Been Pwned?

OK, so I've downloaded all the SHA-1 hashes from Have I Been Pwned, exported everything from my password manager, and processed that into a file with one password per line. How do I match these files ...
6
votes
2answers
34 views
+50

Latency doesn't work with PulseAudio on linux

I have two speakers. The first one is connected to a PCI card and the second one via Bluetooth. Sounds are played a little bit earlier on the PCI card so I want to add some latency. I downloaded the ...
4
votes
2answers
48 views

Why is the stdout of a `>()` subshell different if it's part of a redirection (e.g. `> >()`)?

This is a followup question to: Why does `... | sed 's/^/stdout: /'` print on empty stdin when `... > >(sed 's/^/stdout: /')` doesn't? To be more concrete, why is this a ...
1
vote
2answers
39 views
+100

Emergency mode after adding partitions and installing another Linux distribution

I had Linux Debian installed onto my computer. My partition table was as follows: sda1: __________________________________________________________________________ File system: vfat Boot sector ...
2
votes
1answer
1k views

How to find out which package of libc6 I need?

I am running into following error: version GLIBC_2.14 not found version GLIBC_2.15 not found when trying to install software I need. Therefore, I decided to upgrade libc6 on my debian (Linux nn15....
0
votes
3answers
60 views

How to join a line with a pattern with the next line with sed?

I can't find this case in the board, so I'm asking the question. This is input file: module x(a,b,c) module y(d,e,f, g,h,i) module z(j,k,l) And output file should be: module x(a,b,c) ...
1
vote
1answer
15 views

Enter IP at the end of a specific line

I have the following file.txt that follows the same pattern and I want to modify it where this file is by adding an ip: # gfhfhgfh gfhfghgfhgfhgfh MACs # access USER CONSOLA *,!10.249.247.3,!10.249....
0
votes
0answers
18 views

Comparing two similar Arch packages

There are two Arch packages I consider to use; both of Mail Transfer Agents (MTAs): msmtp and opensmtpd. Both might be good for me as a substitute for the now deprecated in Arch ssmtp. Yet, I don't ...
1
vote
0answers
9 views

Arch: Some very-common PHP packages missing in repo

When I establish LAMP environments on Deiban I install: php-{cli,curl,mbstring,mcrypt,gd} From the above, besides php-gd, all packages are missing in Arch. What are their substitutes, if at all? ...
1
vote
1answer
1k views

run pm2 from remote shell script

I am trying to write a script which ssh into a bunch of my servers and runs some commands to start my app. One of the commands (pm2) always says pm2: command not found. This is how I'm attempting this:...
1
vote
0answers
8 views

Tvheadend Dual Tuner usage on a Enigma2 receiver

Converted to a ubuntu server and after newly installed a second dish, I'm trying to export all tuners of my SF4008 (1x DVBT2/c - 2xDVBS2 Si21662) with the help of minisatip. My tuner configuration in ...
1
vote
2answers
40 views

Find and copy with exec not working

I'm using the following command to get the most recent file in a directory /usr/bin/find /home/user1/folder1/ -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" " | cut -f5 -d"/" This ...
1
vote
2answers
1k views

Which user is running the most processes?

My top looks like this: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6524 asjzdiwq 30 10 500m 41m 24m S 0.0 0.3 0:15.27 php-cgi 21274 asjzdiwq 30 ...
4
votes
1answer
29 views

Temporarily restrict logins for a user to a single IP

Background I have a bunch of Raspberry PI 3 devices running Linux, which are shared among multiple engineers. For the sake of simplicity, each Linux box has the same default username/password (i.e. ...
1
vote
1answer
52 views

Undefined symbols : how do I figure dependency resolution?

I am trying to figure out how to handle the lack of dependency resolution in Slackware. I installed Gnumeric from slackware.pkgs.org, but it won't run with a number of ** (gnumeric:10645): ...
1
vote
0answers
3 views

How to additional public keys to .secondary_trusted_keys?

I am trying to add additional keys to .secondary_trusted_keys. Documentation says, to do so the additional keys has to be signed by a key which is already a resident in either .builtin_trusted_keys or ...
0
votes
3answers
78 views

Looking for an e.g. bash solution to check English verb conjugation

Hi I got interest in a solution posted here & put the suggested function in a bash script leaving at ~/.bin so, a dir under path. Then performed $chmod +x verbteacher.sh for easy calling from $ ...
7
votes
2answers
7k views

Adding delay between stop and start of a process in systemd

I have a really strange issue with systemd. When I issue a systemctl restart it will start the new process before the previous one finishes. This can be seen in the log, where the final shutdown ...
1
vote
0answers
9 views

How do I embed a JPG thumbnail to a ogg/opus audio file with a script?

I am using youtube-dl to download ogg audio files with their respective thumbnail, but I am not sure how to embed the thumbnail into the audio file.
2
votes
0answers
10 views

journalctl log disappear?

Service is still active: systemctl -l status foo.service ● foo.service - My Foo service Loaded: loaded (/etc/systemd/system/foo.service; static; vendor preset: disabled) Active: activating (...
6
votes
2answers
1k views

Bash-script. Shift seconds

In bash I don't know how to do that. I need to do a bash-script. At stdin I have .srt file of subtitles in this format: num HH:MM:SS,SSS --> HH:MM:SS,SSS text line 1 text line 2 ... HH:MM:SS,SSS ...
0
votes
1answer
49 views

NanoPi M4 - RK3399: Apache2 + SSL: Large download hangs

I've a brand new setup of Apache2 running under Debian 9 (armbian on NanoPi M4). Everything works fine until I try to download a large file over HTTPS. Small files download successfully however, ...
0
votes
1answer
20 views

FreeBSD can't mount home partition

I've been having an issue with my first installation of FreeBSD. As I always do in GNU/Linux I created separate home and root partitions. The issue I've been having is that my home partition doesn't ...
0
votes
1answer
52 views
+100

Trouble connecting to open wifi networks in Arch Linux

I apologize about the lack of useful information on this question, but I'm kind of lost since it's outside my expertise. I have two open WiFi networks in my building, call them A and B. I have lived ...
4
votes
1answer
1k views

starting hostapd fails — ACS: Unable to collect survey data

I'm on a jessie on an embedded device, trying to set the WLAN into AP mode. When I try # /usr/sbin/hostapd -P /run/hostapd.wlan0.pid /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd....
1
vote
1answer
16 views

collect logs from bash each 24 hours [on hold]

my idea is to collect logs each 24 hours ,mail it and flush them after that i wrote some scatch for example 1.var/log/auth {some info} 2.var/log/something.log {some info} list="$(find /var/log -...
0
votes
2answers
108 views

How can we find out the pseudoterminal master and slave from each other? [duplicate]

A pseudoterminal has a pair of master and slave. How can we find out the master device file from a slave device file (e.g. /etc/pts/3)? I only find /dev/ptmx and /dev/pts/ptmx, but they can't be ...
5
votes
1answer
2k views

Debian: GPG cannot fetch Linux Kernel key

I am in the process of recompiling the kernel on Debian. Following the instructions on kernel.org, the first step is to verify the signature. But GPG complains that it cannot find the public key: # ...
1
vote
0answers
5 views

Suitable parameters for hours of screen capture

I need suitable parameters for very, very long screen captures using ffmpeg. Quality: Only occasionally needed. If text is readable, that's enough usually. I can use -qscale:v *[0-32]*, of which ...
0
votes
0answers
9 views

Arch: Is there any chance to use Apache all default for 2 or more virtual hosts?

I consider establishing an Arch based LAMP. From reading this document, it seems there is must configuration to be done just for Apache itself, not to mention MySQL and PHP. In Debian LAMP there ...
7
votes
4answers
2k views

Ugly Horizontal Lines Displayed in Kate and Konsole with Fractional HiDPI Scaling

Here is a picture of the problem: Notice that all lines of text have horizontal lines similar to underlining. However, this is a plain text editor (Kate) and it does not do underlining. There is no ...
0
votes
0answers
19 views

Arch Linux: What is the most common SMTP manager software?

In Debian I use ssmtp to manage SMTP content but it's no longer available for Arch. I considered postfix but it seems to me an overkill to my simple needs (simple WordPress/Drupal/MediaWiki contact ...
-1
votes
1answer
42 views

unix shell script - extracting result from two .txt files (time operation)

I have two text files. One file has startdatetime and second file have enddatetime. file 1 data(startdate-time): 2019-01-08 04:14:59 2019-01-08 04:16:57 file 2 data(enddate-time): 2019-01-08 04:15:...
1
vote
1answer
1k views

Create bootable hfs+ partition for macbook

I've installed Debian testing on a Macbook Pro (mid 2014) without keeping OS X on the internal SSD. I've used the following GPT partition layout: HFS+ EFI on /boot/efi BTRFS on / SWAP on swap I've ...
0
votes
0answers
41 views

Gcc compiles stuff as a shared library instead of an executable [on hold]

I am trying to compile this program with gcc, I type into my terminal gcc main.cpp -o corrupt -std=c++11 it compiles, I go to the file and it is a shared library instead of an executable. I do not ...
0
votes
2answers
67 views
+50

Linux won't boot with Nvidia GTX only

I have a headless desktop computer (no screen / no keyboard) used as a machine-learning training server (using a GPU). I connect it via SSH from my other computer (laptop). When: I start the ...
1
vote
1answer
1k views

PCIe Bus error when booting Archiso and when using wifi-menu

I'm trying to install Arch Linux on a Acer Spin 5 Laptop. I'm booting the latest archiso from a USB-Stick in UEFI mode and even before the system has fully started these errors appear during the boot ...
0
votes
0answers
9 views

Arch Linux - Choppy Sound

It's a fresh install of Arch Linux with alsa installed and the sound is choppy ( this happens every 3-5 sec while playing music, over Youtube or over an Audio player ). It's onboard Realtek ALC887 on ...
3
votes
3answers
45 views

Why does `… | sed 's/^/stdout: /'` print on empty stdin when `… > >(sed 's/^/stdout: /')` doesn't?

I'm trying to understand what causes the difference in these 2 constructs that I thought were functionally equivalent: $ ( echo foo >&2 ) 2> >(sed 's/^/stderr: /') | sed 's/^/stdout: /' ...
0
votes
1answer
27 views

Ports not really open after firewalld command

OS: CentOS 7 This is a question that is bordering on two issues. I have a docker machine running where I recently installed the PLEX container from linuxserver/plex. The current problem is that I ...
0
votes
2answers
60 views

Creating a temporary file from standard input

Say I have a standard input stream of file contents and a command that expects a file name as an argument and I want to run that command on a file made up of the standard input stream’s file contents. ...
1
vote
1answer
22 views

Unable to install deb package - Operation Not Permitted

I'm running Ubuntu 18.04. After installing the requirements and downloading the package, I cannot install rstudio. Downloads $ sudo gdebi -n rstudio-xenial-1.1.419-amd64.deb Reading package lists... ...
1
vote
1answer
16 views

Arch ufw enabling

To enable UFW in Debian I do: ufw --force enable I understand from the Arch documentation that do so in Arch I should do instead: systemctl start ufw systemctl enable ufw By "enabling" I mean "...
2
votes
1answer
22 views

Why does GNU Indent collapse one level of indentation?

When I try to format my C code using GNU Indent, it doesn't seem to deal with multiple levels of nested indentation. Specifically, it seems to collapse the second level of indentation. For example, ...
-1
votes
0answers
11 views

Recovering SD Card

I had raspbian running on my pi for some times. From yesterday, when booting i can read this on the screen : "end kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(179,2)" I ...
0
votes
2answers
30 views

auth not working in apache

I was trying to enable authentication in apache . I tried the following configuration items. <Directory "/var/www/html/balancer-manager"> Order deny,allow AuthName "Restricted area for ...

15 30 50 per page