failed to start daemon: Error initializing network controller: Error creating default “bridge” network

Found out that $ firewall-cmd –get-active-zones FedoraWorkstation interfaces: ens4u1u2 wlp59s0 docker interfaces: br-48d7d996793a libvirt interfaces: virbr0 trusted interfaces: docker0 the interface docker0 seems to be in the trusted zone. But there’s another zone called docker. So I decided to give it a shot and add it to the docker zone instead. $ sudo firewall-cmd –permanent …

Read more

How to automatically install required packages from a Python script as necessary?

How to automatically install required packages from a python script as necessary? Let’s assume that your Python script is example.py: import os import time import sys import fnmatch import requests import urllib.request from bs4 import BeautifulSoup from multiprocessing.dummy import Pool as ThreadPool print(‘test’) You can use pipreqs to automatically generate a requirements.txt file based on …

Read more

Express.js: No Such file or directory

There are two package in Ubuntu that have similar names, node and nodejs. node does this, Description-en: Amateur Packet Radio Node program. The node program accepts TCP/IP and packet radio network connections and presents users with an interface that allows them to make gateway connections to remote hosts using a variety of amateur radio protocols. …

Read more

Extract tar the tar.bz2 file error

Ensure that you have the bzip2 and bzip2-libs RPMs installed. It looks like the tar command defers to the bzip2 command which the bzip2 RPM provides (/usr/bin/bzip2). In your case, tar specifically tries to call bzip2 -d to decompress the bzipped archive. Also, a couple of tips: The -v option is not necessary. It just …

Read more

Automatically install build dependencies prior to building an RPM package

You can use the yum-builddep command from the yum-utils package to install all the build dependencies for a package. The arguments can either be paths to spec files, paths to source RPMs or the names of packages which exist as source RPMs in a configured repository, for example: yum-builddep my-package.spec or yum-builddep my-package.src.rpm The same …

Read more