Tag Archives: Miscellaneous

[Solved] error during connect: This error may indicate that the docker daemon is not running

Because the shortcut key of my screenshot tool is Ctrl+q , and the shortcut key of docker desktop exit is also Ctrl+q, when I press Ctrl+q, docker desktop exits, and then when I enter the docker command in the console,

burst this line of error

error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json": open //./pipe/docker_engine: The system cannot find the file specified.

Solution:
reopen docker desktop

when the color of the icon in the lower-left corner is the same as that shown in the picture, it proves that docker operates normally
then I go to CMD and enter the docker command

to see that there is no error

[Solved] Error updating system (error: GPGME error: No data

Solution:

First make sure the first mirror in [sudo vim /etc/pacman.d/mirrorlist] is whitelisted
Then:

sudo rm -R /var/lib/pacman/sync

If you use e2guardian, make sure ‘blanket block for SSL’ is not enabled in [examplef1.story].
Then

sudo -E pacman -Syu

Note: I don’t understand the meaning of the above two sentences. I’m in raspberry pie (armv7). An error occurred in the title after installing archlinux. Found a lot of methods, did not find a solution. Finally, I saw something about this website. Just give it a try. But I don’t know what he said..

goldendict: error while loading shared libraries: libQt5Svg.so.5

In Ubuntu system, use the tool goldendict

goldendict: error while loading shared libraries: libQt5Svg.so.5: cannot open shared object file: No such file or directory

The reason is that the environment variable is not set. Solution:

1 find the libqt5svg. So. 5 path./opt/Netease/Netease cloud music/LIBS/libqt5svg. So. 5

2/etc/LD. So. Conf.d add a file goldendict.conf, which reads as follows
/opt/Netease/Netease cloud music/LIBS

3 execute the command to update the dynamic link library sudo ldconfig

The following is the reference address:
QT error resolution: error while loading shared libraries: libxxx.so

modelsim Error: (vlog-13067) Syntax error, unexpected non-printable character.

 ** Error: (vlog-13067) Syntax error, unexpected non-printable character.

The reason is that. V file format is UTF-8 encoding. Modelsim supports ANSI. UTF-8 white space characters are not blank. When converting. V to ANSI encoding, you can see the following figure. The white space characters are not blank. Just delete these exceptional white space characters.

SSH Remote ulimit does not work

SSH Remote ulimit does not work

Problem description

The contents of the operating system/etc/security/limits.conf file are as follows:


* soft memlock unlimited

* hard memlock unlimited

Use the remote connection tool MoBa to connect to the server, and use ulimit - a to view ulimit value, which is consistent with /etc/security/limits. Conf file configuration.

When using SSH command line remote connection, use ulimit - a to view ulimit value, which is the default value, which is inconsistent with /etc/security/limits. Conf file configuration.

When the operation and maintenance program starts the system remotely, it uses the SSH connection to execute in the past, and the ulimit value in the SSH connection does not take effect. As a result, the system cannot use RDMA because the default configuration of memlock is too small.

Investigation

After a series of investigation, we found that the SSH version of the customer environment (openssh)_ 4p1) and the default SSH version of the operating system (openssh)_ 7.4p1). It is suspected that the client’s recompiled version will cause the limit value of remote SSH login not to take effect
at the same time/etc/SSH/sshd_ The usepam value of the config file is No. when this item is configured to yes, restart the sshd server and view the system log. The error is as follows:

It is suspected that upgrading and compiling SSH to add – with PAM (this module is not compiled by default) will cause this problem.

solve

It is recommended that customers recompile the openssh version with the – with PAM parameter. Problem solving after customer operation.

Suggestions

The – with PAM parameter is required for the subsequent upgrade and compilation of openssh.

Expansion

Introduction of PAM module

Linux PAM (i.e. Linux pluggable authentication module) is a set of shared libraries, which enables local system administrators to choose the authentication mode of programs at will. In other words, you can change the authentication mechanism without recompiling an application with PAM function. In this way, even if you upgrade the local authentication mechanism, you don’t need to modify the program.

PAM uses the configuration file under/etc/pam.d/ to manage the authentication mode of the program. The application program calls the corresponding configuration file to call the local authentication module. The module is placed under/lib/security to load the dynamic library. For example, when we use the Su command, the system will prompt you to enter the password of the root user. This is what the Su command realizes by calling the PAM module.

SSH login will also refer to the modification module, and the configuration file is/etc/pam.d/sshd

#%PAM-1.0
auth       required     pam_sepermit.so
auth       substack     password-auth
auth       include      postlogin
# Used with polkit to reauthorize users in remote sessions
-auth      optional     pam_reauthorize.so prepare
account    required     pam_nologin.so
account    include      password-auth
password   include      password-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open env_params
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      password-auth
session    include      postlogin
# Used with polkit to reauthorize users in remote sessions
-session   optional     pam_reauthorize.so prepare

The session section will include the password auth configuration, and the/etc/pam.d/password-auth-ac file is as follows:

#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        required      pam_faildelay.so delay=2000000
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 1000 quiet_success
auth        required      pam_deny.so
account     required      pam_unix.so
account     sufficient    pam_localuser.so
account     sufficient    pam_succeed_if.so uid < 1000 quiet
account     required      pam_permit.so
password    requisite     pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
password    sufficient    pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password    required      pam_deny.so
session     optional      pam_keyinit.so revoke
session     required      pam_limits.so
-session     optional      pam_systemd.so
session     [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session     required      pam_unix.so

PAM_ Limits.so is the so module that will be called when creating an SSH connection, that is, the core so that the/etc/security/limits.conf file takes effect.

Reference documents

https://www.cnblogs.com/kevingrace/p/8671964.html

Vscode compiles multiple files, compiles files in subfolders

Shame to say, in fact, for vscode configuration, the writer of C/C + + only referred to the tutorial, and then copied several JSON files, but did not understand the meaning.

For this problem, we need to solve the compilation problem, so in task.json, my configuration file is as follows

in which two parameters are command and args

Command: compiler for compilation args: command for compilation

As a matter of fact, it can be seen from the familiar partners of GCC. Here we post the parameter

so we need to connect our file names. The workspace in front represents the workspace, so we only need to write our own directory name at the back, as shown in the figure of linear_ List, connect them.

Error installing OS X virtual machine vcu-0: verify vmcore / VM / main / physmem_ monitor.c:1123

Create a new virtual machine, select Apple MacOS X 10.10 as the operating system of the client, and other parameters can be set by default.

Pay attention not to rush to open the client after it is built, because if you open it directly, you will find that the new client will not start.

Read Mac OS X Unlocker for VMware v2.0 readme.txt You will find the answer. The default OSX client set up by VMware 11 will crash directly. There are two solutions:

Replace VM with HW 10

Or edit VMX file and add smc.version = 0 

Go to the client’s installation directory and open the VMX file. For example, if your client’s name is OSX, this file is OSX.vmx ,

You will see an SMC parameter:

smc.present = “TRUE”

hold smc.version =0 load the line after this parameter, save and exit. Restart the client and found it started normally.

Summary of solutions to open flash back problem after Python packaging

Recently, I wrote a python project, but I found no response after packing it today. I checked some information and said that adding a input input statement at the end of the program can stay here to see the cause of the error.

After I add the input statement, I execute the following command to package

pyinstaller -F --hidden-import babel.numbers start_trade.py

Pay attention not to add the - W parameter, so that the terminal window cannot be displayed and the saved information cannot be seen.
--hidden-import babel.numbers represents the hidden module of packaging

The error message displayed during operation is

No module named 'talib.stream' name 'UI' is not defined

Now the program can’t find the package.

resolvent

Introduce into the files using the module talib.stream

The same is true for the missing module. The missing module is introduced in the file that references the module

However, it should be noted that what it prompts should be introduced according to the name it prompts, such as

import talib.stream