[top] Linux management script, do not like spray

If you are a beginner in shell, what are your suggestions for writing Linux management scripts? Comment below. Update the bate version WGet - N -- no check certificate later https://eblog.ink/sh/menu.sh && chmod +x menu.sh && bash menu.sh

-Read the full text-

Centos7 replaces domestic Yum source

1、 Alicloud source 1. Backup MV / etc / yum.repos.d/centos-base.repo / etc / yum.repos.d/centos-base.repo.backup 2. Download the new centos-base.repo to / etc / yum.repos.d/wget - O / etc / yum.repos.d/centos-base.repo http://mirrors.aliyun.com/rep

-Read the full text-

There is no network in docker

Fault 1: the internal Ping is blocked, and the external network method 1: 1. Shut down the dockerservice docker stop 2. Close the network card IP link set dev docker 0 down 3. Delete the docker bridge brctl delbr docker 0 4. Rebuild the docker bridge brctl addbr docker 0 5. Set the IP segment IP addr add 172.17.42.2/24 dev doc

-Read the full text-

[mobile phone] smart switch re matching

Millet intelligent switch. Reset the device (please press and hold the key while the light is on, release the hand after the orange light flashes twice, and then long press again until the orange light keeps flashing), and then re pair. PTX intelligent switch right key press three times, the fourth long press

-Read the full text-

[PVE] adjusting the disk size of a virtual machine (VM)

The first step is to adjust the disk size in the Web UI. First, set the disk space allocated to the virtual machine. The second step is to enter the virtual machine system. My system here is CentOS. Other Linux systems should be similar. Viewing the disk information, you can see that the total size of the disk has changed, but the two partitions at the bottom have not changed. Step 3: add space to the / dev / sda2 partition. Note that the command restore Part 2 100% is to give all the remaining space to / dev / sda2part / dev / SDA

-Read the full text-

PVE 6. X updated to 7. X

1. Log in to the SSH of PVE with xshell and other tools on the computer, and enter the following command (the content with #, which is a comment, does not need to be input, only input those not beginning with #, the same below): # modify the PVE source sed - I's / Buster \ / updates / bullseye security / g; S / Buster / bullseye / g '/ etc / apt / sources. List ා delete PVE enterprise source RM - RF / etc / apt / sources

-Read the full text-

Linux DD windows

Windows 10 Pro for workstations 21h1 DD image of Qiushui Yibing: it does not need VNC interaction to install unattended directly. After DD is completed, restart the system. After a while, you can log on to the desktop remotely. Close the shortcut key of Ctrl + Alt + Del. The login mode of windows remote desktop is opened by default. The default port is 135137138139445, The prevention of blackmail virus is based on some system optimization of dism + +, such as hiding shortcut small arrow, enabling

-Read the full text-