All Questions
217,637
questions
0
votes
0
answers
2
views
Settings window not visible in Gnome 3 with Wayland
I'm running Gnome 3 on Debian testing. So far two applications are affected: totem ("Videos") and Settings. When I try to open one or the other, the icon appears in the status bar below, but ...
0
votes
0
answers
2
views
What is the use case difference between GRE and GRETAP?
What is the difference use case between GRE nad GRETAP? I understand that GRETAP is layer 2"Ethernet" tunnel.
But when to use GRE and when to use GRETAP? Can you give me specific example for ...
0
votes
0
answers
6
views
Reading from a Parallel Port Tape Drive using paraide
I have some old QIC-80/DC-2120 tapes in storage that I wanted to pull the data off of. Although the original Colorado 250MB drives can be found on eBay, I didn't have any machines with a floppy ...
0
votes
1
answer
9
views
Run a tmux new session with cron, then run a command
I have in my cron that auto starts a service inside a tmux if it detects that its not running. The rest of my bash script works, but if the tmux session doesn't exist, it throws an error. Which is why ...
-1
votes
2
answers
20
views
Creating a tar.gz archive of multiple directories of different locations -- "tar: Cowardly refusing to create an empty archive"
I'm trying to create an achive:
$ cd /tmp
$ tar -czf test1.tar.gz -C ~/Downloads/dir1 -C ~/Documents/dir2 -C ~/dir3/dir4/dir5
... which is supposed not to preserve the full path of the directories in ...
0
votes
0
answers
5
views
zsh function with fzf selection requires Enter
I wrote a simple zsh function which allows me to select from the dirs-stack via fzf.
My .zshrc looks like
DIRSTACKSIZE='99'
setopt PUSHD_IGNORE_DUPS
# change to directory from the dirs stack
fzf-...
0
votes
0
answers
8
views
Library Permission Error With Python3
I have RHEL 8 with Python3 installed. I am using an EC2 instance with a hardened RHEL image.
When trying to run Python from the CLI or use any apps that use Python I get the following error:
python3: ...
1
vote
0
answers
13
views
How to tell SELinux to allow a python script to do "everything"
I'm new to SELinux and it is giving me a headache. I have a python service that runs a python script on my home directory (my_script.py). I've been running the service, seeing what aspect of it ...
0
votes
0
answers
14
views
Use one of batteries in charging
My laptop has 2 batteries. Is there a way to prevent using battery X while charging? I mean that when I use laptop in charge, the OS uses battery Y not battery X.
My batteries are Sony 45N1111 and LGC ...
0
votes
1
answer
16
views
"apt install <name>.deb" not correctly installing Nvidia driver in the deb package
EDIT solution: The problem was that I thought the package installs the driver but it was not the case (more about it in the accepted answer). When installing Nvidia driver I suggest going with .run ...
-1
votes
0
answers
33
views
Last date of the previous month - Bash
I want to get the Last date of the previous month and the code I'm using is date -d "$(2022-04-30 +%Y%m01) -1 month" +%Y-%m-%d. The output I'm getting is 2022-04-24 instead of 2022-03-31. I'...
1
vote
0
answers
9
views
Detect presence of non-connected socket that holds the port (on Linux)
Test on Linux (particularly: Ubuntu 20.04 LTS, kernel 5.4.0): in Python:
from socket import *
s1 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)
s1.bind(('', 11001))
s2 = socket(AF_INET, SOCK_STREAM, ...
0
votes
0
answers
10
views
how to test ntp servers as real servers that responding without using ping test
we have bash script that configured the chrony.conf
script check if ping is ok on ntp1 and ntp2 ( ntp servers )
and then script insert the ntp servers to /etc/chrony.conf ( only if ping success )
...
0
votes
3
answers
23
views
How to list files with only name and size
I would like to list the content of a directory, 1 line per entry, with only the files names and the files sizes.
ls -l shows too much information.
ls -1 -s doesn't show a file's size but its ...
0
votes
0
answers
8
views
get value of variable which is prefixed by another variable in bash [duplicate]
I'm running offlineimap on a bunch of accounts and want to check the exit code of each run and perform some actions accordingly.
I have 6 separate email accounts that I run against with a lot of code ...
0
votes
2
answers
22
views
Rename files to order them using perl substitution
I have a set of files like the following
fine_0.vtu
fine_10.vtu
fine_4032.vtu
...
I want to add padding 0s to be able to order them and render them
I am trying this command
rename -n 's/fine_(\d+)....
0
votes
0
answers
6
views
How to make PPP retry when it fails with "LCP: timeout sending Config-Requests"?
I have a (working) PPP link between two Linux boxes.
The configs are:
$ cat /etc/ppp/peers/nullmodemserver
ttyUSB0 38400 nocrtscts
local
10.11.12.13:10.11.12.14
#0.0.0.0:0.0.0.0
passive
persist
ipcp-...
0
votes
0
answers
12
views
How to allow a custom application with SELinux?
I have a Go application that has a basic systemd service that runs with the user web. NGiNX talks to it via reverse proxy, and it talks to the MySQL database on the same server. NGiNX and MySQL ...
0
votes
0
answers
20
views
apt-get autoremove --purge -y seems to be stuck
I'm not entirely sure why this is happening, so it seemed wise to ask here before I interfere with it.
I'm attempting to install nasm, but I get the message:
Waiting for cache lock: Could not get lock ...
0
votes
1
answer
43
views
Basic Bash for loop one-liner fails but doesn't exit and produces no output
I have a long list of locations in a file called file-locations which have the following format:
/mnt/q/fire/210407_NB552563_0007*/analysis/annotation/FIRID-5382*/*.gff
I've tried the following one ...
0
votes
1
answer
8
views
Extending the available space in a mirrored ZFS pool with zpool add?
I have a mirror pool with two devices (sda, sdb) on my Debian.
And now I inserted two additional devices (sdc, sdd), so I could double the available space in the /mnt/data/ directory.
Is it done by ...
1
vote
2
answers
34
views
Can I copy a snapshot of a file that's being constantly modified?
I have a file that's being constantly held open and continuously modified by another process. This process is continuously seeking to different parts of the file and writing new blocks. I'd like to be ...
2
votes
0
answers
31
views
Permissions appear correct, still can't write to directory
I have two user with these permissions (id)
uid=113(sonarr) gid=1001(sonarr) groups=1001(sonarr),1000(master),1002(qbtuser)
uid=1001(qbtuser) gid=1001(sonarr) groups=1001(sonarr),1000(master),1002(...
0
votes
1
answer
7
views
Is sane available for using scanner on RHEL 8.5 (Oopta)?
I have installed RHEL 8.5 on a system and want to use scanner with a Java application using SANE. In previous versions of RHEL 7.x we use SANE ports for local scanners available on localhost (127.0.0....
0
votes
0
answers
8
views
AlmaLinux 8.5 yum update fails due to ImageMagic conflicts
At the time of ImageMagic installation, I used the following commands.
dnf --enablerepo=powertools install ImageMagick ImageMagick-devel
Now I am going update my AlmaLinux 8.5 server using the command ...
1
vote
1
answer
30
views
Using move command to move all files and subdirectories with find
I have a folder /home/storage/aggregate_data with many sub-folders which in turn contain many files and sub-folders.
I want to copy all the files older than 90 days within the folder /home/storage/...
0
votes
0
answers
8
views
M1 Mac: java.lang.ExceptionInInitializerError at cucumber.deps.com.thoughtworks.xstream.XStream.setupConverters(XStream.java:820)
I am trying to run an automation test by launching the Chrome browser using the chrome driver.
Setup:
Chip: Apple M1 Pro
OS: macOS Monterey
JDK: jdk-18.0.1.1.jdk
Maven: Apache Maven 3.8.5
IntelliJ ...
0
votes
0
answers
25
views
Creating a shared folder [duplicate]
Before I start I would like to point out that I read over 40 questions on the same topics on this forum and they just never work.
I have users all in the same group shared_grp. I want them to all be ...
1
vote
1
answer
14
views
Specify the tmp path for Midnight Commander
I have an Ubuntu running on a 250 go ~ hard drive.
When I'm copying 300 go + folder to another location, using mc, I can see that it creates a tmp file located in /tmp/mc-$USER which getting bigger ...
1
vote
1
answer
57
views
bash how to concat multiple json files to one
I have thousands of json files that look like:
file1 (key1:value_list1)
{"2mac:acg":["1-248","3-245","3-246","4-245","4-246","5-245&...
0
votes
1
answer
8
views
I3 WM bindsym giving error but in terminal, works fine
I have this in my i3 config to restart picom:
bindsym $mod+Shift+P exec killall picom; sleep 0.2; picom
It works fine in terminal but when I press the keybinding, it shows error, and it just says you ...
0
votes
1
answer
12
views
what happens when shell script is built in bitbake
I am just tying to understand the bitbake build system. I have a doubt regarding how shell functions/task gets executed. I am going through below documentation https://docs.yoctoproject.org/bitbake/
...
0
votes
0
answers
17
views
How to turn off write protection on a micro sd card?
I came across an old micro SD card, previously received with a tablet sent by an educational content provider. I decided to delete the contents of that SD card in order to take it into my personal use....
0
votes
1
answer
18
views
Run Shell Script as SystemD Service in Linux
I tried to run these command
$ nano /usr/bin/script.sh
$ chmod +x /usr/bin/script.sh
$ cat /lib/systemd/system/shellscript.service
[Unit]
Description=My Shell Script
[Service]
ExecStart=/usr/bin/...
0
votes
2
answers
21
views
ZSh script to batch process filenames containing spaces and substitute extension
Is there a zsh script that can convert a directory files in one music format and be converted into Ogg opus format. The filenames have spaces in their names.
For example, a directory contains 10 ...
1
vote
0
answers
17
views
understanding datastore in bitbake
I am new to bitbake. I am going through the user manual for learning and I got a doubt in the section quoted below
3.5.3. Passing Information Into the Build Task Environment
When running a task, ...
0
votes
1
answer
11
views
Tomcat logrotate error: tomcat:1 bad rotation count '7 compress missingok size 5M }'
I have a standalone Tomcat installed on CentOS 8 and I am trying to rotate the catalina.out file.
I have created a file named /etc/logrotate.d/tomcat with vim and added the following line:
/opt/...
2
votes
1
answer
57
views
Is there a way to tell whether a bash script keeps being executed from disk?
I've noticed that sometimes a looping bash script seems to be loaded into memory, but sometimes it seems to keep reading it from disk. I haven't been able to work out which of these will happen given ...
0
votes
1
answer
14
views
Proper way of extend /opt with lvm and xfs filesystem
I am keen to know more about the proper way to extend /opt after additional hard disk 5GB with lvm and xfs filesystem. Kindly advised. Many thanks.
0
votes
0
answers
7
views
Xming X11 forwarding (gedit:3736) Gdk-CRITICAL error connecting Windows 11 machine to Ubuntu 22.04 via
I am trying to X11 forward my Ubuntu 22.04 machine (Raspberry 4 8GB) to my Windows 11 machine on the same network. I went into the /etc/ssh/sshd_config file and uncommented X11forwarding yes and also ...
2
votes
2
answers
109
views
How to get value after match with or without space?
I have a bash script which has an array of database names, connect to each one of them and run an stored procedure on them. I need to get values from stored procedure's output and use them at rest of ...
0
votes
1
answer
23
views
checked the matched content from file one with another and find % of matched
I want to match the content from two files, both the files contain some IDs and calculate the percentage of matched and unmatched.
The first file look like:
rs10000012
rs1000005
rs10000202
rs1000022
...
0
votes
0
answers
9
views
NIC configuration in RHEL
I want to use a dedicated CPU for 1 NIC to achieve low-latency. I am able to isolate CPU. What option do I use in NIC configuration to use dedicated CPU in RHEL7/RHEL8?
0
votes
0
answers
17
views
CUDA 11.7 failing to install on Debian sid
I'm trying to install CUDA 11.7 (the latest) on Debian sid using the NVIDIA-recommended method, but am running into the following errors:
$ uname -a
Linux foo 5.17.0-1-amd64 #1 SMP PREEMPT Debian 5.17....
0
votes
0
answers
5
views
Enabling BCM4364 WiFi module on iMac Pro
I would like to use Arch Linux on iMac Pro (2017), but I could not enable the WiFi module.
On macos,
$ ioreg -l | grep RequestedFiles
| | | | | "RequestedFiles" = ({"...
0
votes
0
answers
38
views
Extract identifiers and corresponding brackets among overlapped brackets
I have some files contained identifiers as below:
B#205918
E#3075
E#554065
Eg. file1:
(((((((((B#205918,B#160488),B#287),((((B#298386,(B#243277,(B#672,B#223926))),B#211586),(B#233412,B#747)),(((B#...
0
votes
0
answers
8
views
Second monitor stops working after reboot
First Time asking a question on a forum so if I do something wrong let me know :)
On a fresh install of arch I'm able to use xrandr to get my second monitor to display, but after the first reboot I ...
0
votes
0
answers
20
views
Minicom: send string when newline is detected
I have 3 different USB-to-UART FTDI cables and use minicom to debug some device.
My problem is only one of these cables can buffer characters until I send a newline. Eg when I type the string "...
0
votes
0
answers
6
views
xinput custom.conf file only applies when terminal is opened
Backstory: I need to rotate my touch input at boot so that I can use my touch display.
I am successful in rotating the input with the following entered into the terminal:
xinput set-prop 'seeed-tp' '...
1
vote
0
answers
25
views
Redirecting STDOUT to STDERR 1>&2 with sh [duplicate]
I am having a hard time understanding the difference between the order of 1>&2 and >. For example, I have file and file and don't have fie. Then diff fie file2 gives me error and I try ...