安装 windows 包管理工具
打开 windows powershell 管理员模式
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
升级 windows 包管理工具
choco upgrade chocolatey
换源操作
sudo sed -i 's/http:/https:/g' /etc/apt/sources.list
#ubuntu
sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list; \
sed -i "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list; \
sudo sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
#alpine
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories; \
sed -i 's/http/https/g' /etc/apk/repositories;
#debian
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list\
&& sed -i 's/cdn-fastly.deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list\
&& sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list\
&& sed -i 's|security-cdn.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list\
&& sed -i 's/cdn-fastly.deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list\
&& sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list\
&& sed -i 's|security-cdn.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list\
&& sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/buster.list\
&& sed -i 's/cdn-fastly.deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/buster.list\
&& sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list.d/buster.list\
&& sed -i 's|security-cdn.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list.d/buster.list
常规软件安装
choco install -y wsl-alpine
choco install -y wechat
choco install -y google-chrome-x64
choco install -y office-online-chrome
choco install -y vscode
choco install -y wget
choco install -y curl
choco install -y freedownloadmanager
choco install -y 7zip.install
choco install -y potplayer
choco install -y fscapture
choco install -y shadowsocks
choco install -y office365proplus # 安装后直接激活,不行就转vl再激活
choco install -y autohotkey.portable
choco install -y openssh
choco install -y ultraiso
choco install -y wudt #create a bootable DVD or USB flash drive, download the ISO file
choco install -y rufus
choco install -y procexp
choco install -y fiddler
choco install -y wireshark # 抓包及网络分析工具
choco install -y nmap
choco install -y nvm
choco install -y git.install
choco install -y git-credential-manager-for-windows
choco install -y golang
choco install -y chocolateygui
choco install -y ccleaner
choco install -y docker
choco install -y SublimeText3
choco install -y teamviewer
choco install -y wps-office-free
choco install -y wsl
choco install -y wsl-debiangnulinux
choco install -y wsl-ubuntu-1804
choco install -y wsltty
其他常用软件
choco install autoruns
choco install virtualbox
choco install nginx
choco install php
choco install mysql
choco install mariadb
choco install sqlite
choco install wamp-server
choco install onedrive
choco install mactype
choco install filezilla
choco install postman # 接口测试
choco install atom
choco install chocolateyexplorer
choco install android-sdk #安装 Android SDK
choco install jdk8 #安装jdk8
choco install jre8
choco install nodejs.install #安装Node.js
choco install yarn
choco install vim #安装 Vim
choco install dropbox #安装 Dropbox
choco install kubernetes-cli
choco install docker-compose
choco install docker-kitematic
choco install gitlab-runner
choco install docker-machine-vmwareworkstation
choco install phpstorm
choco install intellijidea-community
choco install electron
choco install tortoisegit
choco install sqlite
choco install dbeaver #数据库(MySQL,Oracle,DB2,SQL Server,PostgreSQL ...管理
choco install anaconda3
choco install shadowsocks
choco install ultraiso
choco install screentogif
choco install ruby
choco install cmder
choco install conemu #安装ConEmu
choco install msys2
choco install msys2-installer
choco install putty.install
choco install vagrant
choco install vmwareworkstation
choco install vmware-tools
choco install laragon.install
choco install tiny-pxe-server