All Questions
217,717
questions
-3
votes
1
answer
23
views
Firefox compiled from the source on a VPS - how to copy it over to my local computer and run it?
My local Linux and Linux on a VPS are both Arch Linux.
I've compiled Firefox from the source code, on a VPS.
The mozilla-unified/ directory is 26Gb and I won't need to copy it as a whole to my ...
-2
votes
0
answers
35
views
Why Was Linux Kernel Created? [duplicate]
Why did Linus Torvalds Create A Kernel And Not The Full Operating System?
i read online that he didn't want to buy UNIX so he created Linux.
0
votes
0
answers
36
views
How to get file names, replace - with a space and insert in a file with shell/bash
I'm creating Svelte component files for SVG icons.
I have many SVG files in a dir:
ab-testing.svg
abacus.svg
abjad-arabic.svg
abjad-hebrew.svg
abugida-devanagari.svg
abugida-thai.svg
access-point-...
0
votes
0
answers
7
views
Construction "if then else" in alert rules alertmanager(prometheus)
Right now I have two rules for "Warning" and "Critical" alerts. Is it possible to combine them somehow, so as not to produce entities?
- alert: Proxysql latency check
expr: ...
0
votes
0
answers
12
views
how to identify errors that could occur from systemctl , before running systemctl restart
Some times we get the following expiation after restart any service as systemctl restart XXXX.service ( XXXX – is the service name )
Error getting authority: Error initializing authority: Could not ...
-1
votes
0
answers
20
views
Querying previous users [migrated]
I would like to ask a user about a previous question they have posted. Either PM or add a query to an existing post.
Apparently this is not available??
Ridiculous!
He asked a question similar to the ...
0
votes
0
answers
11
views
How to stop (prevent) scsi kthreads (from) handling some SATA ports
My motherboard gets 6 AHCI ports 1, 3 of them being connected (permanently) to SATA disks.
Because I would like to use the free ports for other purposes (than connecting SCSI compatible devices), I ...
1
vote
1
answer
22
views
LINUX + find the root cause for exception - failed to create bus connection: Resource temporarily unavailable
here is a strange exception for timedatectl command , on our RHEL server version 7.6
timedatectl set-timezone UTC
Failed to create bus connection: Resource temporarily unavailable
based on that ...
0
votes
0
answers
7
views
Is there an option to disable wall messages on hibernation?
Since the latest system update I get the following message broadcast by wall to all my terminals when hibernating my machine:
Broadcast message from myuser@mymachine (Tue 2022-05-24 16:59:29 UTC):
...
0
votes
0
answers
21
views
Alias added to /etc/bash.bashrc does not work for Debian 11
I have a Debian docker. In one line I define an alias in Dockerfile:
RUN echo alias Kill="ps -ef | grep 'dotnet' | grep -v grep | awk '{print $2}' | xargs -r kill -9" >> /etc/bash....
0
votes
0
answers
18
views
Failed to Fetch Updates for pop os
When I try to update my pop os I gotten a failed fetch update and I don't know what I am really doing since I am new to linux. This is this what the details of the failed update shown me:
E: The ...
0
votes
1
answer
12
views
Json data fetch thourgh jq
how do we fetch the email of level:2, from below json and expected output will be jeenav.b@xy.com.
any suggestion please
{
"escalation_policy": {
"on_call": [
{
...
0
votes
2
answers
41
views
Remove extra characters from diff output
I have the below output from unix:
$ diff -y --suppress-common-lines backup.txt newfile.txt
> `jjj' int,
i need only jjj : int as ...
0
votes
0
answers
10
views
Tumbleweed Linux install
hi l followed a tutorial to install Linux on my dell windows 10 laptop which worked great..l didn't create a user name and password and am stuck on localhost.localdomain screen.. tried root ...
-2
votes
0
answers
16
views
Kernel panic - not syncing: Attempted to kill init exit
I have a PC Desktop and Laptop
I burned a fedora kde plasma on a USB
I booted that on PC and Got kernel panic
I tried on Laptop and worked fine and I could install fedora no problems and I am still ...
2
votes
2
answers
223
views
Need assistance with writing a bash script that uses regex to validate that password input meets length and special character requirements
I have been working on this for a while, visiting dozens of sites and trying all kinds of combinations; however, I cannot get the script to run as intended. Even when they work in https://regex101....
1
vote
2
answers
22
views
Installing errors on wine32: libsystemd0 and libapt-pkg6.0 dependencies
When trying to install wine32, I'm getting
❯ sudo apt install wine32
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be ...
1
vote
0
answers
11
views
`kernel.perf_event_paranoid` is not recognized when changing back to `>1`
When reading the Performance Counters (PMC) on CPUS, the kernel.perf_event_paranoid must be <=1 (see Kernel doc)
I wrote a program which reads the PMC (see below).
This program should exit early ...
0
votes
2
answers
19
views
How to decrypt an old DVD encrypted with aespipe
I encrypted some DVDs a long time ago like this:
exec mkisofs -r $basename | aespipe -e aes256 > $fullname
Now I'm trying to decrypt them and I don't know how to do it anymore.
The encryption ...
-2
votes
1
answer
25
views
I did a dumb and deleted /usr/lib32
Today I was having trouble with steam. It wanted some libraries that I didn't have, so I tried to install the steam-native-runtime on my system (I run Artix, basically Arch) and it was yelling about ...
1
vote
1
answer
37
views
How to retrieve data from a logfile between timestamps in a bash script
I have a logfile that I am trying to 'grep' data out of via a bash script. The data I am specifically after is all lines between two timestamps (including the top timestamp) that have the pattern &...
0
votes
1
answer
56
views
Is it possible to replace a shell like dash?
I'm working on building my own Linux distribution based off Debian. I am curious if it is possible to completely remove dash and replace it with as shell like fish or elvish. I am aware that you would ...
0
votes
1
answer
19
views
How lookup deletion date of files in Trash from command line
I want to restore I file I deleted accidentally. I cannot go to the trash/wastebasket folder and simply restore the file, because I've no idea what the file was. I deleted it by accidentally pressing ...
0
votes
0
answers
11
views
Errors are encountered when trying to reinstall Samba
I have uninstalled Samba file server after I installed it. Now I want to install it again.
sudo pacman -S samba
resolving dependencies...
looking for conflicting packages...
Packages (9) boost-libs-1....
0
votes
1
answer
34
views
Is running MacOS software on Linux better than running Windows software on the latter?
MacOS's kernel is based on FreeBSD, Darwin, and a few other forgotten ones, all of which are monolithic, I believe. However, the current MacOS kernel, XNU, is hybrid, which is one of the things that ...
0
votes
1
answer
33
views
ssd won't mount: bad superblock but no bad blocks: write errors
just noticed I was using SDD for SSD. Corrected
I need help interpreting this situation. /dev/sda is a data disk backed up and with reproducible data so this is not system critical but I'd like to ...
0
votes
0
answers
8
views
Command line tool to use JS-enabled browser to save web page
I currently have a bash script that runs on a headless Raspi, using Curl to retrieve a small number of web pages* and then sed and comm to parse the html and send an email if the content differs from ...
0
votes
3
answers
21
views
How to use sh script to send hex data to /dev/ttyUSB0?
I'm working with a paired down embedded Linux installation that does not support bash, only sh across a ssh terminal. I need to send hex data to a connected USB device /dev/ttyUSB0. I'm able to do ...
0
votes
1
answer
11
views
What is the difference/relation between 'yum check-updates' and 'yum list updates'?
What is the difference/relation between yum check-updates and yum list updates?
When use one over the other?
Note Yes I know that dnf should be used, but for research/academic purposes yum is used
0
votes
1
answer
8
views
podman play kube --network does not properly attach network
I'm using podman on RHEL8.6 to deploy a pod composed of two containers, zabbix-server and postgres-server. To deploy the containers, podman play kube is used on a .yaml file to import and run the pod ...
0
votes
0
answers
15
views
Use a systemd transient timer for a one-time script run after reboot?
I am trying to have an install script run after a reboot due to some dependencies that get installed by apt, which themselves require reboot.
I see some value in a systemd unit approach, but I’ve yet ...
0
votes
2
answers
27
views
Append a character at the beginning of next line matching the pattern throughtout the file
Test file:
cat Test.txt
#EXTM3U
#EXTINF:100
a.flac
#EXTINF:20
b.flac
Expected Result
cat Test.txt
#EXTM3U
#EXTINF:100
#a.flac
#EXTINF:20
#b.flac
Experiment 1
sed -e '/^#EXTINF/a #' Test.txt
#...
0
votes
0
answers
8
views
igb exceed max 2 second on new install of debian
I recently just booted up a fresh debian install and got his error:
igb 0000:01:00.3: exceed max 2 second
It only stops when I pull out the ethernet cable, and as you can imagine there is not internet ...
0
votes
0
answers
19
views
HTML not loading local images in any of my browsers in my system
Problem
In my main desktop system running Arch linux, when I create an HTML file with a tag and an image like so:
<img src="imagepath" alt="sometext">
the image does not ...
0
votes
1
answer
23
views
How to read a JSON file and then send via curl as HTTP POST in Unix Shell Script?
Am trying to read a JSON file from a Unix Shell Script (am inside the same dir as product.json) and send it using curl.
curlProduct.sh:
for file in ~/work/project/json/product.json
do
echo "$...
0
votes
1
answer
33
views
Why am I getting connection refused with IP address even though it works with localhost and firewall is open?
When I run sudo ufw status on a Ubuntu box, I get the following output
sudo ufw status
Status: active
To Action From
-- ------ ----
22/tcp ...
0
votes
0
answers
6
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
13
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
7
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
18
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 ...
-2
votes
3
answers
53
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 ...
1
vote
1
answer
20
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
18
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: ...
2
votes
0
answers
22
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
17
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
28
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
47
views
Last date of the previous month - Bash [duplicate]
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'...
3
votes
0
answers
17
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, ...
1
vote
1
answer
26
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
2
answers
39
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 ...