Tag: BASH
Almost removed most of my system
Package: aptitude Version: 0.8.13-5 Today I out of habit hit RET to the following. It removed much of my system. www.reddit.com/r/Crostini/comments/alytbc/comment/kcv98ks/ Next time I’ll be more careful and not trust…
raspberry pi – python-configparser not found on ubuntu 22.04
I’m trying to install this github.com/pimoroni/displayhatmini-python on a raspberry pi running Ubuntu 22.04 and when I run the install.sh it fails on this: E: Unable to locate package python-configparser Unfortunately,…
Questions : grep package : Ubuntu
File is changelogs.ubuntu.com/changelogs/pool/main/g/grep/grep_3.7-1build1/changelog $ docker run –rm -it -v `pwd`:/host ubuntu:latest bashroot@c45afb5dffac:/# cat /etc/os-releasePRETTY_NAME=”Ubuntu 22.04.3 LTS”NAME=”Ubuntu”VERSION_ID=”22.04″VERSION=”22.04.3 LTS (Jammy Jellyfish)”VERSION_CODENAME=jammyID=ubuntuID_LIKE=debianHOME_URL=”www.ubuntu.com/“SUPPORT_URL=”https://help.ubuntu.com/“BUG_REPORT_URL=”https://bugs.launchpad.net/ubuntu/“PRIVACY_POLICY_URL=”https://www.ubuntu.com/legal/terms-and-policies/privacy-policy“UBUNTU_CODENAME=jammyroot@c45afb5dffac:/# time (for i in {1..10000}; do grep -q -m 1 -F…
bash – RegEx for parsing package name, package version (including release) for Fedora / Red Hat packages
My goal is to parse correctly package names and package versions (including release number) for Fedora or Red Hat packages like this: python39-3.9.16-1.module+el8.8.0+18968+3d7b19f0.1.x86_64 python3.11-3.11.2-2.el9_2.2.aarch64 glibc-2.34-60.el9.aarch64 glib2-2.68.4-6.el9.aarch64 langpacks-core-font-en-3.0-16.el9.noarch p11-kit-trust-0.24.1-2.el9.aarch64 tzdata-2023c-1.el9.noarch Expected…
linux – Kafka console-producer to read result of console-consumer on the fly in bash
redirect the output of [consumer topic] to [producer topic] This is what MirrorMaker is for. github.com/apache/kafka/tree/trunk/connect/mirror Otherwise, Kafka Streams app can be used for the same, within the same cluster.…
regular expression – multiple replacement in file using sed and regex
I have a file like this: one line echo number_format($row1[$z+1],2,”,”,”.”); echo “<b><font color=red>”.number_format($mount_01,2,”,”,”.”).”</font></b>”; echo “<b><font color=red>”.number_format($mount_02,2,”,”,”.”).”</font></b>”; other line <td bgcolor=”red”><b><font color=”white”><?echo number_format($general,2,”,”,”.”);?></font></b></td> another line <td><font size=4><b><?echo number_format($sum_total,2,”,”,”.”);?></font></b></td> with this regex:…
kubernetes – How to run kubectl commands inside docker container cron job
1.kubectl commands giving response in container terminal and getting cluster-info. [root@cronjob-cj-m1dr3tsda-aw5rv /]# kubectl cluster-info Kubernetes control plane is running at 172.20.0.1:443 CoreDNS is running at 172.20.0.1:443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy 2.We have crontab running…
kubernetes – kubectl exec with curl Connection refused
i cannot execute successfully a curl command inside a running pod $ kubectl exec -t pulsar-pulsar-manager-79c6769595-xd596 — bash -c “CSRF_TOKEN=$(curl -v localhost:7750/pulsar-manager/csrf-token)” connect to ::1 port 7750 failed: Connection refused…
python – When using env.yml with conda whats the difference between dependencies and pip dependencies?
I am creating a .SH script for setting up automatically my dev environment in Azure ML, according to this: learn.microsoft.com/en-gb/azure/machine-learning/how-to-customize-compute-instance The script looks like this: #!/bin/bash set -e # pypi.org/project/azure-ai-ml/…
Capturing kubectl set command in terraform
What you are asking for doesn’t exist. Here is the open Terraform Github issue for what you are asking for: github.com/hashicorp/terraform-provider-kubernetes/issues/723 Even if that did exist, I wouldn’t consider that…
Centos rabbitmq starts at boot
1, numbered startup script vi /etc/rc.d/init.d/rabbitmq The content is as follows #!/bin/bash#chkconfig:2345 61 61export HOME=/home/rabbitmq/data/export PATH=$PATH:/usr/local/erlang/binexport PATH=$PATH:/usr/local/rabbitmq_server-3.8.5/sbincase “$1” instart)echo “Starting RabbitMQ…”rabbitmq-server -detached;;stop)echo “Stopping RabbitMQ…”rabbitmqctl stop;;status)echo “Status RabbitMQ…”rabbitmqctl status;;restart)echo “Restarting RabbitMQ…
Cannot find (any matches for) “usr/lib/*/lmms/RemoteVstPlugin*
Source: lmms Version: 1.2.2+dfsg1-3 Severity: serious Tags: ftbfs Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramac…@debian.org buildd.debian.org/status/fetch.php?pkg=lmms&arch=i386&ver=1.2.2%2Bdfsg1-3&stamp=1655316479&raw=0 Installing bash completion… Bash completion for lmms…