All Questions

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 ...
1
vote
0answers
10 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
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
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
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

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 (...
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 ...
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
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
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 -...
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 ...
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 ...
-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 ...
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 "...
1
vote
0answers
22 views

How can you write to the kernel memory?

During boot the kernel is loaded into memory and also in-memory filesystems like /proc or /sys are created. How can you change values in those filesystems? Or how could you change the dmesg output, ...
0
votes
1answer
9 views

wired outputs in nethogs

I have sometimes wired outputs in nethogs stats: ? root 192.168.1.100:42608-81.21.119.76:18725 or ? root unknown TCP there is always 192.168.1.100 (my PC address in network) and then "...
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
vote
0answers
4 views

Speed up wifi with Broadcom BCM4321 and elementary OS Juno

I'd like to speed up my wifi connection. I'm using elementary OS Juno, Kernel 4.15.0-43-generic and a Broadcom BCM4321 [14e4:4328] (rev 01). The wifi connection works, but with 3-10 Mbps (download) it ...
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... ...
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
0answers
15 views

Can I make my own lock screen?

Now my lock screen makes me enter a password. But what if I want to make a custom lock screen like username and password. Is it possible?
0
votes
0answers
6 views

Desktop environment that raises screen instead of starting new one

I want to start screen session from gnome. I wrote the following desktop file [Desktop Entry] Version=1.0 Name=Screen Comment=Use the command line Keywords=shell;prompt;command;commandline;cmd; ...
-1
votes
0answers
19 views

Run sudo from non admin account in one command line

I'm trying to run a sudo command in a non admin account. So far I tried with su, but it requires a password after. When I do echo PASS | su ADMIN it says 'Sorry'. Is it possible to run a command too ...
-1
votes
0answers
15 views

Fedora borked, no GUI after login (Nvidia GTX 1050)

I've got Fedora 28 installed as the only OS on an HP laptop: i7 770HQ 16GB RAM 128GB SSD 1TB HDD Nvidia GTX 1050 I installed Bumblebee according to the fedora tutorial (https://docs.fedoraproject....
0
votes
0answers
7 views

U-boot data obort on mmc read data abort

I am having trouble using the mmc read command on U-boot 2017.09 beagle bone black. => mmc dev 1 switch to partitions #0, OK mmc1(part 0) is current device => mmc info Device: OMAP SD/MMC ...
0
votes
0answers
14 views

Fedora tries to mount deleted swap partition which is not in fstab or systemd

When creating a new swap partition in Fedora 29 to enlarge it I removed the old one using GParted and removed their respective entries in /etc/fstab. I created new entries for the new swap partitions ...
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 ...
-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:...
0
votes
1answer
20 views

Geoclue2 insists that permission is forbidden

I am trying to get Redshift to work again. And it seems to fail because of geoclue2. Here's the weird thing. Until earlier today, it worked just fine, and geoclue was not updated since December (2.5....
1
vote
0answers
7 views

mpv not using embedded fonts for subtitles

How it is supposed to look. How it looks. I can see in mpv's log that it does call for Murga, the right font embedded in the mkv file, but it ends up falling back to BitstreamVeraSans-Roman. [sub/...
1
vote
1answer
22 views

What's the content of license that AT&T licensed Unix to third-party vendors?

Initially intended for use inside the Bell System, AT&T licensed Unix to outside parties in the late 1970s, leading to a variety of both academic and commercial Unix variants from vendors ...
0
votes
0answers
14 views

ls hangs after the machine hosting the source folder is paused

I have two instances of RHEL 7 Linux, machine 1 and machine 2. Machine 2 has a folder that is mounted to a remote folder from machine 1. It is done with command: mount -t cifs -o user=aaa,pass=...
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: /' ...
1
vote
1answer
17 views

Whole disk is a partition: can't shrink, can't create new one

When I set up arch linux, I created a partition with fdisk, and ran mkfs.ext4 on /dev/sda. Now, I want to partition /dev/sda to have 2 partitions, instead of just one. The problem is, that when I try ...
0
votes
0answers
2 views

Assigning users to serial device server

I'm working on a server (CentOS 7) that will be connected to a serial device service. I also have 6 client machines. The SDS makes the devices show as actual devices in linux and can be controlled by ...
1
vote
0answers
16 views

Debian, Bluetooth, I cant turn on my bluetooth

When I turn on the bluetooth with the gnome GUI nothing happens. The button becomes blue but if I leave and come back the button is normal again. I tried a bunch of stuff in the cli that I copied ...
0
votes
0answers
10 views

Exclude packages in kickstart file

The Redhat kickstart documentation describes how to deselect/exclude packages in the packages section - i.e. one may put - in front of a package name to exclude it. But it doesn't fully work in this ...
1
vote
0answers
10 views

will RHEL process my ifcfg-ens192.bak.xxx file?

Recently, we made a clone of a RHEL VM for testing purposes. One of the steps to make the clone unique was to give it a different IP address than the original machine (Of course). But the method used ...
1
vote
0answers
9 views

connect LKVM vms over bridge

I'm using lightweight VM lkvm which creates tun interfaces on the host. Now I want to connect two instances of lkvm over bridge interface, similar to what other VMs do: VM1 ...
1
vote
2answers
25 views

Everything should be run in background instead of waiting

I have written a script that takes commands from user and runs through a huge list of servers and writes to a single file. Once writing has completed it triggers an email. My requirement is: the ...
1
vote
0answers
28 views

How to prevent automated message being printed every time I sudo, without changing global settings?

At my office whenever I log into a linux server I get a standard message which basically amounts to "You consent to us monitoring you if you use this machine". This has been required part of every ...
1
vote
0answers
7 views

How to fix Konsole font?

After updating to RHEL7 from RHEL6 my Konsole fonts are looking ugly and un-antialiased(Monospace size 11 in both systems). I played around with font antialiasing system settings but I am unable to ...
1
vote
0answers
7 views

Logstash Unrecognized service Amazon Linux

I have been following this tutorial to install ELK stack in a remote server which runs on Amazon Linux. https://www.aytech.ca/blog/setup-elk-stack-amazon-linux/ I was able to install Elasticsearch and ...
-2
votes
0answers
17 views

Problem with GCC compiler [migrated]

I am using Arch Linux and when I am compiling and running the following C code, #include <stdio.h> #include<string.h> int main(void) { char s1[]="Hello"; char s2[]="World"; ...
0
votes
0answers
14 views

How do I set battery charging threshold in linux on non Thinkpad laptop?

I know that charging battery near 100% is bad. However, a charging threshold can be set by using tp_smapi or tlp. Unfortunately, this package is only for Thinkpad. How can I set this for a non-...
0
votes
0answers
8 views

mailcap print + mutt: Can't modify attachment before passing via `print=`

I use mutt 1.10.1 on Ubuntu 16.04 and have this line in my .mailcap because before importing work calendar events to my personal Gmail calendar, I want to anonymize all the attendees email addresses: ...
0
votes
0answers
5 views

PBS Pro Stop waiting jobs for execution

I want to out some of the nodes for maintenance but I have a confusion if I run "qstop @server" will it affect the running jobs ??? My focus to stop only queued jobs those are waiting for free ...
0
votes
2answers
38 views

How can I pass the contents of a file for use as a paramter?

I have a file 1.txt with 10 rows. I want to pass each row sequentially to sed and save the output in a log. job=`tail -1 1.txt` getdd=`grep $job "mainlog.log"| sed -n '1p' $i > /tmp/result.log

15 30 50 per page