Tag Archives: Linux

The solution to the problem of “host SMBus controller not enabled” when Linux starts in VMWare

Why can’t you grab tickets when you travel on holiday?Reveal the key technology of 12306 how to ensure the ticket is not oversold>>>

the solution to the problem of “host SMBus controller not enabled” when Linux starts in VMWare

Reference article:

(1) The solution to the problem of “host SMBus controller not enabled” when Linux starts in VMWare

(2) https://www.cnblogs.com/wenchaoz/p/8982122.html

Let’s make a note.

Using PSCP to copy data from Windows computer to SSH in Linux_ Init error

Command line: PSCP – I C: \ “code \” jerrylaunchpad \ “aliyun.ppk% 1 root@SAP-DIS :/home/Jerry

From the discussion of stack overflow, we know that due to root@SAP-DIS As a result, root is the user name and sap-dis is the host name. Replace the host name with the IP address of the host, and the error disappears. You can copy it:
here, the root is the user name and sap-dis is the host name https://stackoverflow.com/questions/48652231/ssh-init-host-does-not-exist-trying-to-copy-tomcat7-folder-to-my-ubuntu-ec2-i


to get more original articles of Jerry, please pay attention to the official account of “Wang Zixi”:

This article shares CSDN – Wang Zixi.

[How to Solve] SSL handshake failed: SSL error

SSL handshake failed: SSL error: key usage violation in certificate has been detected appears when downloading the source code of SVN linked with HTTPS on Linux server

The reason for the error is that the certificate used by windows is not recognized by Linux

Add the following registry value to the windows registry: (mine is 64 bit)

for 32-bit system: (run regedit – > Find the following registry key – > Add a value of type DWORD)

[HKEY_LOCAL_MACHINE\SOFTWARE\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001

for 64-bit system:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001

StartVisualSVN Server Manager.(Open virsualSVN server)

Go toAction | Properties | Certificate.

ClickChange certificate…

Select Create new self-signed cetificate.

Next all.

If you run svn again on Linux, you will be prompted with a warning that the certificate generator is not trusted, just select Accept Permanently.

How to solve bash: syntax error near unexpected token ‘(‘ in Linux

Recently, in the development process, I want to delete a jar package on the server, but the name of the jar package is in parentheses
at the beginning, I deleted it like this:

rm -f HIBIKI_API(1).jar

But I got the following sentence:

bash: syntax error near unexpected token `(' 

Then I googled it and found that after linux5.0, you can’t use brackets. At this time, you need to translate. There are two ways of translation

1.rm -f HIBIKI_API\(1\).jar
2.rm -f "HIBIKI_API(1).jar"

In this way, the translation will be OK

linux Generated when decompressing .tar.gz files gzip: stdin: not in gzip format tar: /Child returned status 1 tar: Error is no…

Problem Description: today on Linux system through wgethttp://downloads.souceforge.net/tcl/tcl8.6.1-src.tar.gz After downloading resources from the Internet, the following error is generated through tar – zxvftcl8.6.1-src.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

(PS: later, after checking, it was found that there was a spelling problem in SourceForge, but Baidu found that not only spelling errors would lead to the above problems, but if the link failed or the jump link was a simple web page, it would also affect the download, so it was necessary to record the solution process.)

Solution process:

1. After checking http://downloads.souceforge.net/tcl/tcl8.6.1-src.tar.gz The website learned that there was a problem with the link jump

2. Search tcl8.6.1-src.tar.gz to enter TCL official website

3. Copy http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz The website can be used as the download link

4. Or click the above web address, automatically jump to the following page, wait for 5 seconds, and automatically jump out of the download prompt window, copy the pop-up web address:

https://nchc.dl.sourceforge.net/project/tcl/Tcl/8.6.1/tcl8.6.1-src.tar.gz It can also be used as a download link

5. After installation, unzip the. Tar.gz package tar – zxvf tcl8.6.1-src.tar.gz

6. Switch Directory: CD tcl8.6.1/unix

7../configure// execute the configure file

8. Make// compile

9. Make install// install

10. – zxvf is the tar command decompression syntax:

-X unpack. Tar file

-V display details

-F specifies the decompression file

-Z decompression

Example: $tar – zxvf dir1.tar.gz

Under Linux — Java — new font (“Times New Roman”, 0, 18) captcha image becomes character

J’ava deployed to tomcat, and found a problem. The verification code of our login appeared garbled code, and characters

However, on the windows server, or our local development environment, there is no such phenomenon

Why

Looking at the source code, we found a piece of code:

new Font(“Times New Roman”, 0, 18)

The original windows operating system has its own default font, namely Times New Roman

Our Linux system, taking CentOS 7.3 as an example, does not have this font. After all, our Linux system does not have a graphical operation interface, so it does not have its own default font

Therefore, we need to install the font on the Linux system. The process is as follows:

1. First, open our terminal. The default path of font is: usr/share/fonts

CD in

2. Create a new path (folder), MKDIR “Times New Roman”

Why double quotes?Because we need to develop a good habit, if there are no double quotation marks, we will create three new folders, that is, three paths time New Roman. We can’t create paths with spaces

3. Then upload all times New Roman Fonts in fonts folder of our local windows folder to this path. Take the local win7 system as an example, after uploading, we need to execute three commands in this path in turn, as follows:

mkfontscale

mkfontdir

fc-cache -fv

There is a problem. Our CentOS system does not have these commands by default. At this time, we need to install the following commands online. The commands are as follows:

yum install mkfontscale

After installation, confirm in turn

4. Restart our Tomcat

cd ../bin/; sh startup.sh; cd ../logs/; tail -f catalina.out

Just press enter

Note that all the above operations on fonts must be completed under the root permission

5. After the restart, refresh our verification code again. As expected, it changed from random characters back to our letters and numbers

Deploying multiple jbosserror: transport error 202: bind failed in Linux

[chenshuo@localhost bin]$ ./run.sh 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /usr/local/jboss

  JAVA: /usr/local/jdk1.6.0_45/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms256m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:PermSize=128m -XX:MaxPermSize=512m -XX:MaxNewSize=256m -XX:+UseParallelGC -XX:+UseParallelOldGC -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Djava.net.preferIPv4Stack=true

  CLASSPATH: /usr/local/jboss/bin/run.jar:/usr/local/jdk1.6.0_45/lib/tools.jar

=========================================================================

ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
./run.sh: line 255: 24689 give up              "$JAVA" $JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$@"


Resolve debug port occupancy Modify the configured 8787 JAVA_OPTS=”$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n”

#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"
[chenshuo@localhost bin]$ less run.conf 
## -*- shell-script -*- ######################################################
##                                                                          ##
##  JBoss Bootstrap Script Configuration                                    ##
##                                                                          ##
##############################################################################

### $Id: run.conf 62747 2007-05-02 17:43:36Z [email protected] $

#
# This file is optional; it may be removed if not needed.
#

#
# Specify the maximum file descriptor limit, use "max" or "maximum" to use
# the default, as queried by the system.
#
# Defaults to "maximum"
#
#MAX_FD="maximum"

#
# Specify the profiler configuration file to load.
#
# Default is to not load profiler configuration file.
#
#PROFILER=""

#
# Specify the location of the Java home directory.  If set then $JAVA will
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
#
#JAVA_HOME="/opt/java/jdk"

#
# Specify the exact Java VM executable to use.
#
#JAVA=""

#
# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms256m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:PermSize=128m -XX:MaxPermSize=512m -XX:MaxNewSize=256m -XX:+UseParallelGC -XX:+UseParallelOldGC"
fi

# Sample JPDA settings for remote socket debuging
JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

# Sample JPDA settings for shared memory debugging 
...skipping...
##                                                                          ##
##  JBoss Bootstrap Script Configuration                                    ##
##                                                                          ##
##############################################################################

### $Id: run.conf 62747 2007-05-02 17:43:36Z [email protected] $

#
# This file is optional; it may be removed if not needed.
#

#
# Specify the maximum file descriptor limit, use "max" or "maximum" to use
# the default, as queried by the system.
#
# Defaults to "maximum"
#
#MAX_FD="maximum"

#
# Specify the profiler configuration file to load.
#
# Default is to not load profiler configuration file.
#
#PROFILER=""

#
# Specify the location of the Java home directory.  If set then $JAVA will
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
#
#JAVA_HOME="/opt/java/jdk"

#
# Specify the exact Java VM executable to use.
#
#JAVA=""

#
# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms256m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:PermSize=128m -XX:MaxPermSize=512m -XX:MaxNewSize=256m -XX:+UseParallelGC -XX:+UseParallelOldGC"
fi

# Sample JPDA settings for remote socket debuging
JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=**8787**,server=y,suspend=n"

# Sample JPDA settings for shared memory debugging 
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"

[Linux error highlights] IBus input method of Ubuntu system cannot be switched to Pinyin

System information:

Operating system: Ubuntu 14.04 lts
OS

Desktop environment: Gnome

System default language: English

Problem Description:

After sudo apt get install IBus Pinyin, pressing the shortcut key Ctrl + space cannot switch between Chinese and English. Even if Chinese pinyin is activated in input method settings, it still has no effect

Solution:

First, other input methods can be used

Second, open the terminal, input IBus list engine, press enter, and print out all the input engine information of IBus. Check whether there is a language: Chinese Pinyin – Pinyin engine. If there is, enter IBus engine pinyin to switch to Chinese Pinyin input. However, the input method icon is not displayed in the notification bar. Enter IBus engine xkb:us : eng can switch to English input again. Every time you log in to the system or restart IBus, the default is xkb:us ::eng。

linux mount: unknown filesystem type ‘exfat’

preface

The blogger has a new Samsung SSD, which can’t be identified by inserting different devices. This paper records this problem.

questions

Error mounting /dev/sda1 at /media/nvidia/Samsung_T5: Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid,uid=1001,gid=1001,iocharset=utf8,namecase=0,errors=remount-ro,umask=0077" "/dev/sda1" "/media/nvidia/Samsung_T5"' exited with non-zero exit status 32: mount: unknown filesystem type 'exfat'

reasons

It should be related to the type of hard disk. Please refer to here

sudo apt-get install exfat-fuse

This method can solve this problem in TX2 and workstation, but Lenovo notebook encountered this problem, but it is not easy to use this method, I do not know what the reason is, there is no in-depth study

Error occurred

~$ sudo apt-get install exfat-fuse
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-generic : Depends: linux-image-4.4.0-165-generic but it is not going to be installed or
                                linux-image-unsigned-4.4.0-165-generic but it is not going to be installed
 linux-modules-extra-4.4.0-154-generic : Depends: linux-image-4.4.0-154-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.4.0-154-generic but it is not going to be installed
 linux-modules-extra-4.4.0-165-generic : Depends: linux-image-4.4.0-165-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.4.0-165-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

It seems to have something to do with the kernel version of Linux

reference

1. There is an error in mounting the mobile hard disk on Ubuntu

end

Docker startup container Error response from daemon: OCI runtime create failed: container_ linux.go:349

This is the error reported to start the container, docker logs is not, the container is created, but can not start the container
Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused “process_linux.go:449: container init caused “rootfs_linux.go:58: mounting \”/etc/timezone\” to rootfs \”/var/lib/docker/overlay2/132f5ea82c98a1206ccb13e13f06c96737036c722c290e989b462c2d77458a8f/merged\” at \”/var/lib/docker/overlay2/132f5ea82c98a1206ccb13e13f06c96737036c722c290e989b462c2d77458a8f/merged/etc/timezone\” caused \“not a directory\”””: unknown: Are you trying to mount a directory onto a file (or vice-versa)?Check if the specified host path exists and is the expected type
Error: failed to start containers: 6e3a9e751884
Check that it is a mapping problem, after checking that the host does not have a directory to be mapped, create the directory and the container will start normally.