Offline saving and loading of Kubernetes images (very fast)

The image of Kubernetes can be saved offline to a file, and then loaded from the file to realize offline installation (very fast). For the kubernetes version 1.12.1 image used here, the corresponding version number can be modified for other versions. Script file here: be located: https://github.com/openthings/kubernetes-tools/kubeadm/ ...

Posted by Sarahlmorrow on Tue, 17 Dec 2019 20:04:08 +0100

ubuntu 16.04 configuring the YouCompleteme plug-in

This thing has been killing me for several days, and it has worked out. It's not bad. I'm here to record my method and hope to help the people behind me. 1. Delete the original vim package sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common 2. Installation dependency vim dependence sudo ...

Posted by djot on Sun, 15 Dec 2019 21:18:34 +0100

linux serial communication reading information

In these two days, we need to do a serial communication to receive the information transmitted from peripheral devices. Many programs on the Internet are more complex. We have written a simple and easy program. The main process is: open serial port - > initialization - > circular reading. The code is as follows: #include & ...

Posted by mb81 on Sun, 08 Dec 2019 05:25:13 +0100

Build your own git server with Gogs

1. Configure the environment required by Gogs Install nginx sudo apt-get install nginx Install git sudo apt-get install git Install MySQL sudo apt-get install mysql-server # Install mysql mysql -u root -p # Connect to database SET GLOBAL storage_engine = 'InnoDB'; # Set the database mode to InnoDB CREATE DATABASE gogs CHARACTER SET utf ...

Posted by yonta on Thu, 05 Dec 2019 01:50:22 +0100

CMake install grpc to generate gRPCTargets.cmake file

The following are the installation statements: cd grpc_folder git submodule update --init cmake .. make -j 4 sudo make install However, when writing a program that depends on gRPC, it is found that the CMake file of gRPC cannot be called. The error prompt is as follows: include could not find load file: /usr/local/lib/cmake/grpc/gRPCTarg ...

Posted by Vertical3 on Wed, 04 Dec 2019 09:41:09 +0100

docker installs ElasticSearch (version 6.x)

Install ElasticSearch Pull the image and select version 6.5.0 $ docker pull elasticsearch:6.5.0 View mirroring $ docker images Start a container $ docker run --name elasticsearch -d -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -p 9200:9200 -p 9300:9300 elasticsearch:6.5.0 42d639a089348b393b0cc912141ef357b6565996c5c4863e363f8729da229d7d Then visit GE ...

Posted by mrbaseball34 on Wed, 04 Dec 2019 08:46:25 +0100

Ubuntu 18.04 install TensorFlow-GPU 1.13.1 based on NVIDIA 2080

Ubuntu 18.04 install TensorFlow-GPU 1.13.1 based on NVIDIA 2080 Official documents Note that the versions correspond one by onehttps://tensorflow.google.cn/install/source Other please refer to Ubuntu 16.04 installation of tensorflow GPU based on NVIDIA 1080Ti Installation environment System: Ubuntu 18.04.02 desktop Video card: NVIDIA GeForce ...

Posted by mckooter on Tue, 03 Dec 2019 03:53:56 +0100

A few lines of commands to understand that the remote server creates a user with no secret login

Upgrade package management system First, use the following command to upgrade the package management system: sudo apt-get update && sudo apt-get upgrade Create users and configure account permissions For the sake of server security, we should avoid using the root user to log in directly; instead, we should create a new user and use this ...

Posted by s1akr on Sun, 01 Dec 2019 10:53:25 +0100

When npm is installed, it prompts for solutions to operations without permission. Error: EACCES: permission denied

When installing the plug-in, such an error occurs. The reason is that the root user used to locally install the npm package, leaving the file with root ownership, which makes the ordinary user unable to access the file content of root. The error log is as follows: npm ERR! path /Users/Kyle/.npm/_cacache/index-v5/d8/1f/98ab242d0cbad080828ef3e3f ...

Posted by nc_brox on Sun, 01 Dec 2019 00:46:00 +0100

Two methods of adding system call under Linux(Ubuntu) (kernel compilation method module addition)

It is really too pit, really want to Tucao about this operation system practice, each time is compile the kernel. The textbook was written in 2009, all the code before kernel 3.3. I record the system call experiment, hope you can avoid stepping on the pit. Method 1: kernel compilation Here I give you a link. This blog is wel ...

Posted by derrick1123 on Sat, 30 Nov 2019 12:19:12 +0100