All Questions

1
vote
1answer
12 views

How to equalize byobu veritcal split screen size

Note: I may be leaning on an XY Problem; feel free to steer me to a more ideal approach. I want to keep an eye on multiple remote log files in a small-yet-legible font, not so much analyzing ...
0
votes
1answer
24 views

File read, compare and replace based on comparison in text file

Hi i need guidence to write code for file processing. i have one file which having ~ as delimeter and each line is keyword is 1st column. First i have to find the lines which matches with ^6999 Then ...
-1
votes
1answer
18 views

Kali on 32gb flash drive displays 67gb storage

I'm new to linux and how it works. I recently installed a kali linux image onto a 32gb flash drive and stuck it into my pc and booted from it. All went well, and so I ran the df command and got this ...
-1
votes
0answers
15 views

Journalctl remote logs

How would I get the logs of a remote desktop with journalctl from the server side if I do journalctl -r it I find them but I would like to get ONLY the desktop logs? Excuse my bad grammar as it is not ...
0
votes
2answers
27 views

Running commands on shutdown/restart Ubuntu 18.04

[My Config] Ubuntu 18.04 - digitalocean droplet/server [Background] I presume from my research that since 18.04 /etc/network/intefaces has been deprecated and something called netplan was introduced. ...
0
votes
1answer
27 views

Bash: how to avoid duplicate result from random list?

Suppose a script like this #!/bin/bash array[0]="123" array[1]="333" array[2]="5566" array[3]="135" array[4]="68" array[5]="45" array[6]="78" array[7]="32" array[8]="190" number() { size=${#array[@]}...
0
votes
1answer
28 views

Can someone explain: strstr “\`cat /proc/cmdline\`” rd.live.image does?

Full line of code context: if ! strstr "\`cat /proc/cmdline\`" rd.live.image || [ "\$1" != "start" ]; then exit 0 fi strstr is defined as: strstr() { [ "${1#*$2*}" = "$1" ] && ...
0
votes
0answers
13 views

Mismatch between mesa+vulkan driver verison used by Proton and the host mesa driver version

Proton is working fine with the latest DXVK implementation but when I browse on the log files of the games used by Proton I notice a mismatch between the mesa driver version of my host system and the ...
0
votes
1answer
32 views

What does `exec {STDIN}>&0` do? [duplicate]

I saw this in a bash script, and trying to make sense of it: exec {STDIN}>&0 exec {STDOUT}>&1 exec {STDERR}>&2 Are the {STDIN}, {STDOUT} etc "magic strings" recognized by exec ...
0
votes
1answer
23 views

regex query to find numbers after matching section

instance=hostname1, topic=“AB_CD_EF_12345_ZY_XW_001_000001” instance=hostname2, topic=“AB_CD_EF_1345_ZY_XW_001_00001” instance=hostname1, topic=“AB_CD_EF_1235_ZY_XW_001_000001” instance=hostname2, ...
-6
votes
0answers
39 views

Strange logs in Linux

I ran sudo lsof -i :80 on port 80 to check what is port 80 listening to and I got the output bellow. I dont understand what this means. It seems like some program is running on our server and using ...
0
votes
1answer
19 views

youtube-dl : how to skip downloads lower than 480p resolution?

When using the popular program youtube-dl, how can I skip download of certain videos, particularly ones that have a lower quality than 480p resolution?
0
votes
0answers
11 views

Shrink partition & Resize the other partition

I looked up all questions related but none seem to address my issue. Using the command parted /dev/sda I would like to shrink /dev/sda3 to 100 GB while extend /dev/sda2 to 1700 GB. This is the ...
0
votes
1answer
23 views

Simple Binary Replacement

I tried using bbe as below bbe -e 's/01110011/01111000/' test.txt All I'm trying to accomplish in this example is to read the file as if it's a binary file, and replacing the letter s with x. I'm ...
0
votes
1answer
27 views

unable to install debian 9 as a virtualbox guest system

I am unable to install debian 9 as a guest operating system in virtualbox 6.0, either with a debian 9 host or with a Windows 10 host. - I installed virtualbox per the instructions on the debian wiki, ...
0
votes
2answers
20 views

Alias for recent log files

Usually when I'm searching the logs, its for something that happened recently. I end up tabbing at bash prompt to complete the names. I finally did bash alias that uses date arithmetic to build the ...
0
votes
0answers
17 views

Screen goes off (black) until I suspend and resume the system, how can I run a command to reboot screen without suspend?

I have Linux mint 18.3 Sylvia My screen goes off (black) until I suspend and resume the system, While everything is working fine (keyboard mouse audio..etc) just the screen is black. so I thought ...
0
votes
0answers
17 views

Issue with startx saying that there are no monitors found on Arch Linux

I installed Arch on my laptop yesterday and since then I have been unable to open i3. I installed xorg, i3-gaps, and changed my ~/.xinitrc file to read: xrandr --setprovideroutputsource modesetting ...
0
votes
0answers
17 views

Setting Ethernet interface with no address systemd-networkd

I am trying to figure out a way to tell systemd-networkd to bring up an interface with no IP address and force an operation state in networkctl. This is what the output of my networkctl command looks ...
0
votes
0answers
24 views

Is it possible to have bash but not awk? [duplicate]

Here on Stack Exchange we often see answers on bash questions, that use tools other than the bash language, such as awk, sed, grep, etc. These tools are specific in POSIX, so they should be ...
0
votes
1answer
24 views

Getting unexpected newline or end of string when using awk

file.txt contains a,b,yes x,y,no awk -F',' '($3 == "yes")' file.txt a,b,yes when I use variable in awk res=yes awk -F',' "($3 == "$res")" file.txt awk: cmd. line:1: ( == yes) awk: cmd. line:1: ...
0
votes
0answers
23 views

Gateway failover using netplan not working

I'm having trouble setting up 2 IP address so that if one fails it will use the secondary IP address. I've setup netplan as shown in the picture. I can connect via ssh using both IP address, I test ...
0
votes
0answers
13 views

how to determine vSphere virtual machine name from guest OS?

Is there any way to determine the vSphere virtual machine ID or name or UUID from a linux guest? I have administrative access to the guest, and would like to coordinate some maintenance actions ...
-1
votes
0answers
10 views

Why I have an UNKNOWN state in my Nagios while script provides another output?

I am using this cript for custom plugin in Nagios and I have 9% of disk space used. According to the script it has to be exit 0 (which is OK) since it's it's in the 1-84 range, however for some reason ...
0
votes
2answers
32 views

Accessing a file content using shell script

I need to get user and password from a file and use that in my script My file looks like below(netrc is my file name) machine ftp.test.net login test_user password test_pass machine ftp1.test.net ...
0
votes
0answers
8 views

relaying mails without authentication

I had to configure OTRS on a RHEL 7 system and one of the tasks was to configure the system to send outgoing mails from the ticketing system. I did so by adding the relayhost directive with the ...
-1
votes
1answer
17 views

How to check RAID in Debian 7? [on hold]

How to check RAID in Debian 7 and which commands would I use?
1
vote
1answer
23 views

Erasing hard drive to reinstall Mint

After installing Linux Mint, I had a problem with the hard drive (more than 200GB) getting full without me downloading anything. This was probably because of timeshift and some users said it also had ...
0
votes
1answer
26 views

How to fork a process from kernel space? [on hold]

I am conducting an experiment involving Linux, 'and for it I need to know how to fork a process from kernel space? I can't figure out what file to include, or what the method is called. Sorry for my ...
1
vote
1answer
24 views

yumdownloader the rpm for redhat 7.3

we have redhat machines version 7.2 we want to upgrade to version - 7.3 we can do it as # subscription-manager register --auto-attach # yum --releasever=7.3 update this will upgrade online the OS ...
0
votes
2answers
31 views

Bash - Find ID Pairs on One File Listed in Another File

I have a large file "F1" with listed id-pairs: id1 = digits, id2 = characters id1 id2 id1 id2 ... The goal is to extract the lines containing the id-pairs from a second file "F2", formatted as ...
0
votes
0answers
18 views

Control screen brightness in i3

I would like to control the screen brightness in i3, in Intel laptops that come with Fn keys for the purpose. These keys function with any other DE. First making sure devices available are Intel: $ ...
0
votes
0answers
17 views

Error: ipv4: Invalid values in header for route get request

I'm trying to set up a VPN server using openconnect: sudo openconnect $server_address I, then, confirm the --servercert, enter my username and then my password. It successfully connects, by saying: ...
0
votes
1answer
11 views

ffprobe run command for multiple videos

I am currently running this command for each video file ending in .mp4 in directory /home/videos to output the running time of each one in /root/videoduration.txt ffprobe -v error -show_entries ...
1
vote
2answers
94 views

What is the best way to install a GNU/Linux distro to a computer that doesn't include CD/DVD rom?

I build a PC a couple years ago and just didn't include CD or DVD rom... I don't know who uses them anymore but I don't. Now I want to install the Debian to the PC but it wants to detect CD-ROM. Did I ...
0
votes
0answers
7 views

Potentially faulty disk hangs up, but the problem is gone with a restart

I was recently able to track some system hangups due to one of my disks simply hanging up indefinitely. This has happened multiple times but it always goes back to normal after a restart. The disk ...
0
votes
1answer
21 views

Precedence of subshells in relation to redirection?

Shell: GNU BASH I've been using the following command for a while now: echo "$(fmt -w 50 < foo.txt)" > foo.txt Without any issues. However, when I try: fmt -w 50 < foo.txt > foo.txt ...
2
votes
0answers
75 views

User can cd but can't ls directory

This directory had ACL and UNIX permissions set on it. I've reset the directory's UNIX and ACL to the minimum, but the user cannot list the contents. Other users with similar group memberships CAN ...
0
votes
1answer
48 views

sed with line break

I'm trying encrypt a password and replace the word "notset" with this new encrypted password. The problem is that openssl sometimes creates a string with more than one line, like: Salted__▒ہ▒ >▒▒1▒...
1
vote
1answer
27 views

How to grep a data within a square brackets?

I have following type of data in my .log file: Cell[BoxData["0.8693473380926441`"] Cell[BoxData["100.40266203596555`"] Cell[BoxData["23.338724857049048`"] Cell[BoxData["0.25720321805387686`"] Cell[...
0
votes
1answer
31 views

Bash script doesn't executed properly inside docker container

I am trying to run bash script: export LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH export SUBJECTS_DIR=/output timefmt="%C --- CPU:\t%E real,\t%U user,\t%S sys\t%P\tMem:\t%KkiBavg.,\t%MkiB max.\...
1
vote
0answers
6 views

Warning Message on batch submission of matlab script on Linux-based cluster

I recently began using a super-cluster at my university and have succeeded with serial matlab scripts. Now I am running code using parfor loops, and have been getting this warning in the .out file. I ...
0
votes
1answer
17 views

Fedora30 upgrade: Cannot run KDE as normal user

I've upgraded from Fedora 29 to Fedora 30. Alghough root can use KDE normally, I fail to use it as a normal user, so it seems permission related. An almost black fullscreen window appears with a ...
0
votes
0answers
11 views

Systemd, mount disk before and umount after execution of a service

What is the best way to do this with systemd? mount a partition of an internal hard disk execute a service that writes to that partition, preventing umount and shutdown and suspension of the system ...
3
votes
0answers
30 views

Beaglebone Boot Fail with ALERT! PARTUUID does not exist

I have tried booting a Linux image in the eMMC through u-boot but it always drops to the busybox shell. As suggested by the busybox shell I double checked the PARTUUID (8fb410a9-01) using blkid, which ...
0
votes
0answers
30 views

Script - Write stdout and stderr to a file AND to the terminal without pipe [duplicate]

I don't know if it's possible, I would like start a bash script without pipe which write everything to a file and at the same time see the output on the terminal. So I know how to do that with this ...
1
vote
0answers
27 views

SFTP remote readdir Failure - national characters in file name

I have created a directory with national characters in it's name. I can see and browse this directory via ssh # cd /root # ls СтранноеРусскоеИмя but can't do it via SFTP: sftp> cd /root sftp>...
1
vote
1answer
22 views

Primary and secondary group of a user

Why is it that group1 which should be user's primary group, is in the subgroups? The user is not even part of group1 in /etc/group file. # id user uid=1000(user) gid=1111(group1) groups=1111(group1),...
2
votes
0answers
24 views

How to free memory allocated to Main, running out of memory

I'm having trouble on my Ubuntu 18.04 system where all of my memory is running out. Stopping all of the programs running does not seem to release all the memory (it only made 42Mb available). After ...
2
votes
1answer
21 views

Losslessly upsize PDF canvas to A4 without resizing/modifying the content

I want to losslessly upsize the canvas of a PDF to A4 without resizing/modifying the content. Here's the document I have : $ pdfinfo myFile.pdf Creator: EO.Pdf Producer: EO.Pdf 16.2.50....

15 30 50 per page