Perfectionist Win10 installation guide

Keywords: Windows bash

The original text is published in github and updated from time to time

After computer is too laggy, it will become very stuck. All kinds of files will be out of order. Therefore, it is an important link to improve work efficiency and fun to develop good use habits and reinstall the system regularly. However, the personal files on the computer and the files transmitted by wechat QQ have accumulated over the years, which are not easy to sort out and can not be discarded. All kinds of software cracking and development related environment configuration make you afraid and compromise to the slow computer again and again.

This guide is intended to explore the most comfortable reinstallation workflow and configuration habits of Win10.

1 good computer habits

Work files are synchronized through nut cloud, and office documents are automatically uploaded through WPS cloud synchronization

Wechat QQ chat records are periodically backed up to the computer, and then synchronized to Tianyi cloud disk

Disk C has a large space. If it is written in the registry, reinstall the software that the system will reinstall and directly put disk C

Green software, personal documents and game databases (such as steam library and battle. Net games) are put on other disks, and the reinstallation of the system will not be affected

2 curing installation process

2.1 installation system

Prepare U SB flash disk and use WePE grid disk

System mirror station

2.2 installing palm input method and tinder

Palm input method Latest version v2.7(2018)

Tinder ——Add pop-up window interception, garbage cleaning, startup item management, right-click management and flow floating window as needed

2.3 installation and driving

Go directly to the official website to download

2.4 activation, personalization and dism + + settings

https://kms.cangshui.net/

2021-11-20 update script: supports visio and project activation, and adds Windows 10 LTSC 2021 activation.

Office Tool Plus

The desktop icons are sorted according to the modification date, and the latest files will be ranked last, which is convenient to find

2.5 Clash, Chrome

The green Clash is installed on the non-C disk. You can continue to use it after reinstalling the system. However, to re import the configuration file, remember to import it from the interface instead of directly copying the file to the config folder

When Chrome enters for the first time, you need to enable proxy through the command line

Enter the installation directory from the desktop icon, enter cmd in the address bar to start the command line, and then start the program with the following instructions

chrome --proxy-server="socks5://127.0.0.1:7890"

Then log in to the account and synchronize automatically

2.6 install Scoop and common software

Scoop

Using Scoop behind a proxy

PowerShell must be enabled for your user account e.g.

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

PowerShell enable proxy

# If you want to use a proxy that isn't already configured in Internet Options
[net.webrequest]::defaultwebproxy = new-object net.webproxy "127.0.0.1:7890"

Run the following command from your PowerShell to install scoop to its default location (C:\Users\<user>\scoop)

Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

# or shorter
iwr -useb get.scoop.sh | iex

Configure agent for Scoop

# anonymous authentication to proxy.example.org on port 8080:
scoop config proxy 127.0.0.1:7890

After the initial installation, we can detect the current potential problems by running the scope checkup, and then correct them according to the prompts

All kinds of installation, all kinds of hi (it's easy not to add global when executing install)

scoop install sudo
sudo scoop install 7zip git openssh --global
scoop install aria2 curl grep sed less touch
# Install some software that does not need to write the registry
scoop bucket add extras
scoop install everything keepassxc SumatraPDF typora snipaste vscode vcredist2019 windows-terminal
# install font
scoop bucket add nerd-fonts
scoop install Source-Han-Sans-SC # Siyuanhei
scoop install Source-Han-Serif-SC # Siyuan song
scoop install SarasaGothic-SC # Installation in bold (Simplified Chinese)
scoop install Wenquanyi-Microhei # Install WenQuanYi micron black
scoop install Wenquanyi-Zenhei # Install WenQuanYi zhenghei

After installing the font, replace the display font for the input method

The display effect of yoga 14s 2880x1800 at 200% zoom is as follows

SwitchHosts

sudo scoop install switchhosts

==You need to add write permission to the original hosts file to operate on it==

# My hosts
# raw.githubusercontent.com
185.199.108.133 raw.githubusercontent.com user-images.githubusercontent.com avatars2.githubusercontent.com avatars1.githubusercontent.com
185.199.109.133 raw.githubusercontent.com user-images.githubusercontent.com avatars2.githubusercontent.com avatars1.githubusercontent.com
185.199.110.133 raw.githubusercontent.com user-images.githubusercontent.com avatars2.githubusercontent.com avatars1.githubusercontent.com
185.199.111.133 raw.githubusercontent.com user-images.githubusercontent.com avatars2.githubusercontent.com avatars1.githubusercontent.com

# wikipedia.org
208.80.153.224 wikipedia.org
2620:0:860:ed1a::1 wikipedia.org

# short url
134.64.115.91 r.tt
127.0.0.1 l.tt

Configure Windows Terminal

settings.json configuration for reference

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": 
    [
        {
            "command": 
            {
                "action": "copy",
                "singleLine": false
            },
            "keys": "ctrl+c"
        },
        {
            "command": "paste",
            "keys": "ctrl+v"
        },
        {
            "command": "find",
            "keys": "ctrl+shift+f"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "keys": "alt+shift+d"
        }
    ],
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "experimental.rendering.software": true,
    "profiles": 
    {
        "defaults": 
        {
            "antialiasingMode": "cleartype",
            "font": 
            {
                "face": "Fira Code Retina",
                "size": 12
            }
        },
        "list": 
        [
            {
                "commandline": "powershell.exe",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "PowerShell"
            },
            {
                "commandline": "cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "cmd"
            },
            {
                "acrylicOpacity": 0.75,
                "closeOnExit": "graceful",
                "colorScheme": "GitBash",
                "commandline": "C:\\Users\\1062\\scoop\\apps\\git\\current\\bin\\bash.exe --login -i -l",
                "cursorColor": "#FFFFFF",
                "cursorShape": "bar",
                "font": 
                {
                    "face": "Consolas",
                    "size": 10
                },
                "guid": "{00000000-0000-0000-0000-000000000001}",
                "historySize": 9001,
                "icon": "C:\\Users\\1062\\scoop\\apps\\git\\current\\mingw64\\share\\git\\git-for-windows.ico",
                "name": "GitBash",
                "padding": "0, 0, 0, 0",
                "snapOnInput": true,
                "startingDirectory": "%USERPROFILE%",
                "useAcrylic": false
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            }
        ]
    },
    "schemes": 
    [
        {
            "background": "#0C0C0C",
            "black": "#0C0C0C",
            "blue": "#0037DA",
            "brightBlack": "#767676",
            "brightBlue": "#3B78FF",
            "brightCyan": "#61D6D6",
            "brightGreen": "#16C60C",
            "brightPurple": "#B4009E",
            "brightRed": "#E74856",
            "brightWhite": "#F2F2F2",
            "brightYellow": "#F9F1A5",
            "cursorColor": "#FFFFFF",
            "cyan": "#3A96DD",
            "foreground": "#CCCCCC",
            "green": "#13A10E",
            "name": "Campbell",
            "purple": "#881798",
            "red": "#C50F1F",
            "selectionBackground": "#FFFFFF",
            "white": "#CCCCCC",
            "yellow": "#C19C00"
        },
        {
            "background": "#012456",
            "black": "#0C0C0C",
            "blue": "#0037DA",
            "brightBlack": "#767676",
            "brightBlue": "#3B78FF",
            "brightCyan": "#61D6D6",
            "brightGreen": "#16C60C",
            "brightPurple": "#B4009E",
            "brightRed": "#E74856",
            "brightWhite": "#F2F2F2",
            "brightYellow": "#F9F1A5",
            "cursorColor": "#FFFFFF",
            "cyan": "#3A96DD",
            "foreground": "#CCCCCC",
            "green": "#13A10E",
            "name": "Campbell Powershell",
            "purple": "#881798",
            "red": "#C50F1F",
            "selectionBackground": "#FFFFFF",
            "white": "#CCCCCC",
            "yellow": "#C19C00"
        },
        {
            "background": "#000000",
            "black": "#0C0C0C",
            "blue": "#6060FF",
            "brightBlack": "#767676",
            "brightBlue": "#3B78FF",
            "brightCyan": "#61D6D6",
            "brightGreen": "#16C60C",
            "brightPurple": "#B4009E",
            "brightRed": "#E74856",
            "brightWhite": "#F2F2F2",
            "brightYellow": "#F9F1A5",
            "cursorColor": "#FFFFFF",
            "cyan": "#3A96DD",
            "foreground": "#BFBFBF",
            "green": "#00A400",
            "name": "GitBash",
            "purple": "#BF00BF",
            "red": "#BF0000",
            "selectionBackground": "#FFFFFF",
            "white": "#FFFFFF",
            "yellow": "#BFBF00"
        },
        {
            "background": "#282C34",
            "black": "#282C34",
            "blue": "#61AFEF",
            "brightBlack": "#5A6374",
            "brightBlue": "#61AFEF",
            "brightCyan": "#56B6C2",
            "brightGreen": "#98C379",
            "brightPurple": "#C678DD",
            "brightRed": "#E06C75",
            "brightWhite": "#DCDFE4",
            "brightYellow": "#E5C07B",
            "cursorColor": "#FFFFFF",
            "cyan": "#56B6C2",
            "foreground": "#DCDFE4",
            "green": "#98C379",
            "name": "One Half Dark",
            "purple": "#C678DD",
            "red": "#E06C75",
            "selectionBackground": "#FFFFFF",
            "white": "#DCDFE4",
            "yellow": "#E5C07B"
        },
        {
            "background": "#FAFAFA",
            "black": "#383A42",
            "blue": "#0184BC",
            "brightBlack": "#4F525D",
            "brightBlue": "#61AFEF",
            "brightCyan": "#56B5C1",
            "brightGreen": "#98C379",
            "brightPurple": "#C577DD",
            "brightRed": "#DF6C75",
            "brightWhite": "#FFFFFF",
            "brightYellow": "#E4C07A",
            "cursorColor": "#4F525D",
            "cyan": "#0997B3",
            "foreground": "#383A42",
            "green": "#50A14F",
            "name": "One Half Light",
            "purple": "#A626A4",
            "red": "#E45649",
            "selectionBackground": "#FFFFFF",
            "white": "#FAFAFA",
            "yellow": "#C18301"
        },
        {
            "background": "#002B36",
            "black": "#002B36",
            "blue": "#268BD2",
            "brightBlack": "#073642",
            "brightBlue": "#839496",
            "brightCyan": "#93A1A1",
            "brightGreen": "#586E75",
            "brightPurple": "#6C71C4",
            "brightRed": "#CB4B16",
            "brightWhite": "#FDF6E3",
            "brightYellow": "#657B83",
            "cursorColor": "#FFFFFF",
            "cyan": "#2AA198",
            "foreground": "#839496",
            "green": "#859900",
            "name": "Solarized Dark",
            "purple": "#D33682",
            "red": "#DC322F",
            "selectionBackground": "#FFFFFF",
            "white": "#EEE8D5",
            "yellow": "#B58900"
        },
        {
            "background": "#FDF6E3",
            "black": "#002B36",
            "blue": "#268BD2",
            "brightBlack": "#073642",
            "brightBlue": "#839496",
            "brightCyan": "#93A1A1",
            "brightGreen": "#586E75",
            "brightPurple": "#6C71C4",
            "brightRed": "#CB4B16",
            "brightWhite": "#FDF6E3",
            "brightYellow": "#657B83",
            "cursorColor": "#002B36",
            "cyan": "#2AA198",
            "foreground": "#657B83",
            "green": "#859900",
            "name": "Solarized Light",
            "purple": "#D33682",
            "red": "#DC322F",
            "selectionBackground": "#FFFFFF",
            "white": "#EEE8D5",
            "yellow": "#B58900"
        },
        {
            "background": "#000000",
            "black": "#000000",
            "blue": "#3465A4",
            "brightBlack": "#555753",
            "brightBlue": "#729FCF",
            "brightCyan": "#34E2E2",
            "brightGreen": "#8AE234",
            "brightPurple": "#AD7FA8",
            "brightRed": "#EF2929",
            "brightWhite": "#EEEEEC",
            "brightYellow": "#FCE94F",
            "cursorColor": "#FFFFFF",
            "cyan": "#06989A",
            "foreground": "#D3D7CF",
            "green": "#4E9A06",
            "name": "Tango Dark",
            "purple": "#75507B",
            "red": "#CC0000",
            "selectionBackground": "#FFFFFF",
            "white": "#D3D7CF",
            "yellow": "#C4A000"
        },
        {
            "background": "#FFFFFF",
            "black": "#000000",
            "blue": "#3465A4",
            "brightBlack": "#555753",
            "brightBlue": "#729FCF",
            "brightCyan": "#34E2E2",
            "brightGreen": "#8AE234",
            "brightPurple": "#AD7FA8",
            "brightRed": "#EF2929",
            "brightWhite": "#EEEEEC",
            "brightYellow": "#FCE94F",
            "cursorColor": "#000000",
            "cyan": "#06989A",
            "foreground": "#555753",
            "green": "#4E9A06",
            "name": "Tango Light",
            "purple": "#75507B",
            "red": "#CC0000",
            "selectionBackground": "#FFFFFF",
            "white": "#D3D7CF",
            "yellow": "#C4A000"
        },
        {
            "background": "#000000",
            "black": "#000000",
            "blue": "#000080",
            "brightBlack": "#808080",
            "brightBlue": "#0000FF",
            "brightCyan": "#00FFFF",
            "brightGreen": "#00FF00",
            "brightPurple": "#FF00FF",
            "brightRed": "#FF0000",
            "brightWhite": "#FFFFFF",
            "brightYellow": "#FFFF00",
            "cursorColor": "#FFFFFF",
            "cyan": "#008080",
            "foreground": "#C0C0C0",
            "green": "#008000",
            "name": "Vintage",
            "purple": "#800080",
            "red": "#800000",
            "selectionBackground": "#FFFFFF",
            "white": "#C0C0C0",
            "yellow": "#808000"
        }
    ]
}

Add a right-click shortcut to edit the document later

Default right button

<img src=".assets/image-20211121185655619.png" alt="image-20211121185655619" style="zoom:50%;" />

The file path needs to be replaced, and the variable name of wt.exe -p% needs to be consistent with WT's settings.json%

The script needs to be saved in. reg format before execution

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt-cmd]
 @="Open CMD Using WT Here"
 "Icon"="C:\\Users\\1062\\AppData\\Local\\ico\\cmd.ico"
 
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt-cmd\command]
 @="C:\\Users\\1062\\scoop\\apps\\windows-terminal\\current\\wt.exe -p cmd -d ."

 
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt-gitbash]
 @="Open Git Bash Using WT Here"
 "Icon"="C:\\Users\\1062\\AppData\\Local\\ico\\git.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt-gitbash\command]
 @="C:\\Users\\1062\\scoop\\apps\\windows-terminal\\current\\wt.exe -p GitBash -d ."
 

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt-ps]
 @="Open PowerShell Using WT Here"
 "Extended"=""
 "Icon"="C:\\Users\\1062\\AppData\\Local\\ico\\ps.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt-ps\command]
 @="C:\\Users\\1062\\scoop\\apps\\windows-terminal\\current\\wt.exe -p PowerShell -d ."
 


[HKEY_CLASSES_ROOT\*\shell\scoop-vscode]
@="Open with Code"
"Icon"="C:\\Users\\1062\\scoop\\apps\\vscode\\current\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\scoop-vscode\command]
@="\"C:\\Users\\1062\\scoop\\apps\\vscode\\current\\Code.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\scoop-vscode]
@="Open with Code"
"Icon"="C:\\Users\\1062\\scoop\\apps\\vscode\\current\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\scoop-vscode\command]
@="\"C:\\Users\\1062\\scoop\\apps\\vscode\\current\\Code.exe\" \"%V\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\scoop-vscode]
@="Open with Code"
"Icon"="C:\\Users\\1062\\scoop\\apps\\vscode\\current\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\scoop-vscode\command]
@="\"C:\\Users\\1062\\scoop\\apps\\vscode\\current\\Code.exe\" \"%V\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\scoop-vscode]
@="Open with Code"
"Icon"="C:\\Users\\1062\\scoop\\apps\\vscode\\current\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\scoop-vscode\command]
@="\"C:\\Users\\1062\\scoop\\apps\\vscode\\current\\Code.exe\" \"%V\""

Finish version right-click menu

<img src=".assets/image-20211122090224057.png" alt="image-20211122090224057" style="zoom: 50%;" />

Right click menu after shift

<img src=".assets/image-20211122090235656.png" alt="image-20211122090235656" style="zoom:50%;" />

Typora

Change the theme of Typora and download bluebook on the official website

Comment Bluebook. CSS: 426 to prevent large indentation between the sequence number and content of the code segment

Nut cloud

https://www.jianguoyun.com/

Free version: upload traffic 1G / month, download traffic 3G / month

Folders that do not want to be synchronized will adopt Cloud Bridge mode and will be downloaded only after being used

The local undeleted backup can directly compare files, and file conflicts may need to be handled

QQ wechat

WPS

At present, WPS is still used to solve the problems of office, drawing and PDF at the same time

Modified 360 speed browser (required for work)

360Chrome_12.0.1053.0 mandatory administrator permission to start

Method 1: find the installation folder (if you don't know where to install, you can right-click to open the file location), then go back to the 360Chrome folder, right-click the 360Chrome folder - Security - edit, and give Users full control permission. If it's difficult to use, you can give all options full control permission in the editing interface. Method 2: find the exe file (right click the shortcut on the desktop - where to open the file), right click - properties - compatibility - run this program as an administrator. This has a disadvantage that an interface pops up every time you open the browser for you to click OK. I guess it's because the browser is installed in the Program Files folder under drive C, and the permissions are not in place.

2.7 installation and configuration of development tools

JetBrains family bucket

https://www.jetbrains.com/

One click installation, one click synchronous configuration and plug-ins are great!

Maven

Using the IDEA comes with

The global is overwritten with personal configuration files, and the warehouse address is generally placed outside the C disk

%user_home%\.m2\settings.xml

D:\dev\.m2\repository

Github with SSH key

Install

First up, install the programs you need:

scoop install git openssh

Create a private key

If you don't already have an SSH key, you can create one like this:

PS> ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/you//.ssh/id_rsa): [press enter]
Enter passphrase (empty for no passphrase): [type your password]
Enter same passphrase again: [and once more]
...

Then add your SSH key to GitHub.

Test it out

To make sure everything's working, run:

ssh -T git@github.com

After a warning or two, you should see a message like this:

Hi <username>! You've successfully authenticated, but GitHub does not provide shell access. 

Install Nodejs

nvm & nodejs

scoop search nvm
scoop install nvm
nvm v
nvm install lts
nvm current
# The use command must be executed with administrator privileges, or an exit code 1 error will be reported
sudo nvm use $version$

npm

npm config list //View basic configuration
npm config list -l //View all configurations

# Gets the default directory for the global installation
npm config get prefix
# Set default directory for global installation
npm config set prefix "D:\dev\nodejs\node_global"
npm config set cache "D:\dev\nodejs\node_cache"
# Install an npm in the global directory, and then do not use the npm provided by node
npm install npm -g

System variable - > new variable NODE_PATH : D:\dev\nodejs\node_global\node_modules

User variable - > Path add D:\dev\nodejs\node_global

Now execute npm -v and you will find that it is already an npm under the global directory

Install cnpm

npm install cnpm -g --registry=https://registry.npmmirror.com

Install the image source management tool of NRM (NPM registry manager)

npm install nrm -g
nrm ls
nrm test
nrm use tencent

MySQL

After installation, first modify the my.ini configuration file, then install the service, initialize MySQL, log in and change the password

[mysqld]
basedir=C:/Users/1062/scoop/persist/mysql
datadir=C:/Users/1062/scoop/persist/mysql/data
port = 3306

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 
 
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
 
character-set-server = utf8mb4
 
performance_schema_max_table_instances = 600
table_definition_cache = 400
table_open_cache = 256

[mysql]
default-character-set = utf8mb4
[client]
user=root
default-character-set = utf8mb4
# Install MySQL service
mysqld --install MySQL --defaults-file="C:\Users\1062\scoop\apps\mysql\current\my.ini"
# Perform initialization
sudo mysqld --initialize
# Start MySQL service
sudo net start mysql
# The login password of this version is blank. Log in directly
mysql -u root
ALTER USER "root"@"localhost" IDENTIFIED  BY "Your new password";(mysql8)
exit

# To stop and/or delete the Service run 'sc stop MySQL' and 'sc delete MySQL'.

Python

# Installing minicanda3
scoop install miniconda3

. condarc file

channels:
  - conda-forge
show_channel_urls: true
auto_activate_base: false
custom_channels:
  conda-forge: https://mirrors.bfsu.edu.cn/anaconda/cloud
  msys2: https://mirrors.bfsu.edu.cn/anaconda/cloud
  bioconda: https://mirrors.bfsu.edu.cn/anaconda/cloud
  menpo: https://mirrors.bfsu.edu.cn/anaconda/cloud
  pytorch: https://mirrors.bfsu.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.bfsu.edu.cn/anaconda/cloud

Redis

scoop search redis
scoop install redis5

Toss around in windows for a long time and choose to join the embrace of wsl

wsl

Settings - > update and security - > Delivery Optimization

# First use wsl to check whether the wsl service is started. If not, execute the command to start it. You need to restart the computer
sudo Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# PowerShell enables the agent and clash opens the system agent
[net.webrequest]::defaultwebproxy = new-object net.webproxy "127.0.0.1:7890"
sudo wsl --install -d Debian

# wt settings.json
{
    "guid": "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}",
    "hidden": false,
    "name": "Debian",
    "icon": "C:\\Users\\1062\\AppData\\Local\\ico\\debian.ico",
    "source": "Windows.Terminal.Wsl"
}

The Debian installed in wsl is v9.13, which is manually upgraded to 10

Use Tsinghua source

Debian image usage help

# Install https support tools
sudo apt install apt-transport-https ca-certificates

cd /etc/apt
# backups
sudo cp sources.list sources.list.bak
# replace content
# The source image is annotated by default to improve apt update speed. You can cancel the annotation if necessary
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free

# Full update
sudo apt-get update && sudo apt-get upgrade

System upgrade

# Replace all "stretch" in / etc/apt/sources.list with "buster"
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade

Restart wsl service through powershell

sudo net stop LxssManager
sudo net start LxssManager

After restarting, clean up the old software

sudo apt-get autoremove

# View version information
cat /etc/os-release

New changes in Debian 10

Install and Test Redis:

  1. Launch the installed distro from your Windows Store and then install redis-server. The following example works with Ubuntu (you'll need to wait for initialization and create a login upon first use):

sudo apt-get update sudo apt-get upgrade sudo apt-get install redis-server redis-cli -v

  1. Restart the Redis server to make sure it is running:

sudo service redis-server restart

  1. Execute a simple Redis command to verify your Redis server is running and available:

$ redis-cli

127.0.0.1:6379> set user:1 "Oscar"

127.0.0.1:6379> get user:1

"Oscar"

  1. To stop your Redis server:

sudo service redis-server stop

Download Another Redis Desktop Manager from github

https://github.com/qishibo/AnotherRedisDesktopManager

Try connecting, it's done!

Posted by doobster on Tue, 23 Nov 2021 17:08:52 -0800