Portainer is an easy-to-use Docker container control panel. Its code repository is here . It supports single-node and cluster deployments. Before this, I had fully containerized my personal server. If you can visually operate and monitor various containers, it will be of great help to daily operation and maintenance, and you will feel that everything is under control. You can see the effect after building, the interface is still very beautiful. You can quickly pull the mirror image You can visualize the release container, and flexibly set parameters such as environment variables, network, and restart policies. When the image is updated, the container can be quickly updated with the new image. You can also quickly enter the access container command line and view container logs. It can be said that the functions I need every day have all the functions, and I feel very complete. to build So for a single-point server, how to build it, first of all, you need to confirm that your server currently has Docker installed. can enterdocker -v Let’s see if docker exists in the current environment. If it does not exist, you need to install docker, you can find a tutorial on Google. For EC2 on AWS, you can entersudo yum install docker -y to install. After confirming that Docker is installed. Check if Docker is started. Then check if there is a docker.sock file in the /var/run path. Then, confirm that port 8000 and port 9443 are not occupied, because Portainer will use these two ports later. Store application … Read more
If you have installed Ubuntu and Windows and then reinstalled Windows. Then the Grub boot entry will most likely be overwritten by Windows Boot Manager and you won’t be able to enter Ubuntu at that time. But don’t panic, follow the steps below to fix grub2 boot without installing additional software. Creating a USB boot disk for Ubuntu In order to repair the boot entries, we need to use the software tools provided with the Ubuntu system. Although we can’t get into the original Ubuntu system for now, we can use the image written on the Ubuntu USB stick to get a working basic Ubuntu environment. Download the image file from the Ubuntu website. You can use rufus to quickly create a USB boot disk, taking care to select GPT mode. Boot U disk boot disk Reboot your computer, boot the USB drive in the BIOS boot setup, then after entering the Ubuntu boot installer, select Try Ubuntu in the installation screen to enter Ubuntu Live. Perform a Grub2 rebuild operation Using fdisk, find the partition where the EFI partition, /boot mount point, is located (or /mount point if you have not set the /boot mount point). Mount the partition where the /boot mount point is located under /mnt (my partition is on the nvme SSD). % sudo mount /dev/nvme0n1p6 /mnt/ Mount the EFI partition, where you need to know which partition in your hard drive is the EFI system partition (in my case it is the fifth partition). % sudo mount /dev/nvme0n1p5 /mnt/boot/efi Connect other … Read more
Installing electron and chromedriver with yarn in China is often a problem that cannot be connected. At this time, we may prefer to use a mirror repository in China to speed up the process, rather than setting up a proxy. And when installing electron, it is useless to set yarn’s global proxy alone. So how do you set up proxies based on different packages? You can follow the sample commands provided in the list below to set it up. yarn global settings Set the repository address used by yarn to install general packages. yarn config set registry https://r.npm.taobao.org 注册模块镜像 yarn config set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 This is the result of running the above command, and you can clearly see if the setup was successful. yarn install specific package settings Set the address of the repository used by yarn to install packages such as electron and chromedriver. You can choose one or two commands to set them up as needed, it is not necessary to add them all. yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass # node-sass 二进制包镜像 yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ # electron 二进制包镜像 yarn config set puppeteer_download_host https://npm.taobao.org/mirrors # puppeteer 二进制包镜像 yarn config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver # chromedriver 二进制包镜像 yarn config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver # operadriver 二进制包镜像 yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs # phantomjs 二进制包镜像 yarn config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium # selenium 二进制包镜像 yarn config set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector # node-inspector 二进制包镜像 Similar to the above, you can clearly see if the setup was successful after running the command.
When installing the zsh plugin zsh-autosuggestions or zsh-syntax-highlighting, we generally encounter the problem of oh-my-zsh plugin ‘xxx’ not found. Now, we analyze and solve the oh-my-zsh plugin ‘zsh-autosuggestions’ not found and plugin ‘zsh-syntax-highlighting’ not found problems. The reason for the problem is that the code repository of the plug-in has not been cloned to the local location, so the plug-in you want is not actually installed. Solving the problem is very simple, just simply enter the following command: $ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting $ source ~/.zshrc You can then reopen the shell and find that the problem is resolved. You can also use this method to solve such problems with other plugins.
Introduction I have an 8G TF card with Openwrt installed on it, and the capacity of the root partition is not enough to meet my usage needs. So I started to expand the size of the root partition. The file system format of the root partition is Ext4. First, I tried to use DiskGenius and other Windows tools to expand the capacity, but unfortunately, none of them worked. So, we are going to use Gparted to expand it. Since the tool needs to run in a Linux environment, I didn’t really want to install a Linux distribution virtual machine for this purpose, so I used Gparted’s lightweight ISO image with Virtual Box virtual machine. Preparation First download and install the VritualBox virtual machine and VM VirtualBox Extension Pack. virtualBox does not support USB peripheral operation by default, so install the latter to add USB2.0, USB3.0 and other peripheral support to VirtualBox. VirtualBox Download Address VM VirtualBox Extension Pack After downloading both of the above, install VirtualBox first. Then install the VM VirtualBox Extension Pack, specifically in the Extensions section of the Preferences screen. Download GParted Live CD/USB/HD/PXE Bootable Image, download link. Steps Create a virtual machine, just allocate a single core, 512MB of RAM, and you can not create a virtual hard drive. In the virtual machine settings screen, enable the USB controller in the USB Devices section and select USB 2.0 or USB 3.0 as needed. Under the storage section optical drive, select the downloaded ISO image and start the virtual machine. Select the first … Read more