Build a free open source good Docker panel Portainer

Portainer is a good control panel for Docker containers. Its code repository is here. It supports single node and cluster deployments. Prior to this, I had completely containerized my personal server. If you can visualize the operation and monitoring of various containers, it helps a lot in daily operation and maintenance, and you 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 visually publish containers and flexibly set environment variables, network, restart policy and other parameters. You can quickly update containers with new mirrors when they are updated. It is also possible to quickly access the Access Container command line and view container logs. Suffice it to say, I have all the features I need on a daily basis, and it feels complete. ...

November 23, 2022

Fix grub2 boot UEFI after Ubuntu dual system reinstallation of Windows

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. ...

November 26, 2021

Solve the problem of timeout and slow installation of yarn packages such as electron and chromedriver

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. ...

November 22, 2021

oh my zsh configuration tutorial under Ubuntu

oh my zsh is a very good configuration framework based on zsh, it can simplify a lot of daily operations of Linux end users. Moreover, its interface is very nice compared to the original bash. This article describes how to install and configure oh my zsh and its common plugins under Ubuntu. oh my zsh Installation and Basic Configuration Before installing oh my zsh, you need to install git, curl and zsh by running the following commands. ...

November 22, 2021

Configure and beautify the vim editor with one click using space-vim-dark

I have been using some mature configuration files to help me configure and beautify the vim editor, however, the original spf13-vim.sh I was using has not been updated for a long time, and some of the plugins in its plugin list can no longer be downloaded properly. So I was looking for a replacement for it, and I found space-vim-dark to be quite good. space-vim-dark basic introduction After my search, I found a better and more beautiful configuration file space-vim-dark. this space-vim-dark is probably a vim configuration file written by Chinese, it can make vim adapt to the dark mode very well. First, I’ll post the repository address: https://github.com/liuchengxu/space-vim-dark This is the effect of its picture, the overall look is still good. ...

November 22, 2021

Solve the problem of oh-my-zsh plugin 'zsh-autosuggestions' not found and plugin 'zsh-syntax-highlighting' not found

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: ...

May 25, 2021

Resize hard drive partitions with Gparted Live ISO bootable images

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. ...

February 9, 2021