Xiangxiang's Personal Site

Machine Learning & Security Engineer
生命不息,折腾不止,留下一点活着的记录.

View on GitHub
12 August 2017

Win10环境配置(持续更新中)

by xiangxiang

记录自己的Windows10装机后的软件配置

Win10版本选择

Win10安装注意事项

> diskpark              # 使用diskpart手动分区

DISKPART> list disk
DISKPART> select disk x # x为需要格式化的安装磁盘
DISKPART> detail disk   # 查看完整的磁盘信息确认没有选择错误
DISKPART> clean         # 清空磁盘上现有的分区信息
DISKPART> convert gpt   # 使用GPT分区
DISKPART> exit          # 退出diskpart

Win10首次启动

WSL

安装

wsl --update
wsl --set-default-version 2
wsl --install -d Ubuntu-22.04
ubuntu2204.exe config --default-user root

环境配置

# 一般情况下,将 /etc/apt/sources.list 文件中 
# Ubuntu 默认的源地址 http://archive.ubuntu.com/ 替换为 http://mirrors.ustc.edu.cn/ 即可
sudo sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list
# 使用 HTTPS 可以有效避免国内运营商的缓存劫持
sudo sed -i 's/http:/https:/g' /etc/apt/sources.list

# 使用本镜像站来升级 pip
python3 -m pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple pip -U
python3 -m pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple
sudo apt-get update
sudo apt-get install proxychains-ng -y

在.bashrc最后增加

export windows_host=`ip route | grep default | awk '{print $3}'`
# export ALL_PROXY=socks5://$windows_host:1080
# export HTTP_PROXY=$ALL_PROXY
# export http_proxy=$ALL_PROXY
# export HTTPS_PROXY=$ALL_PROXY
# export https_proxy=$ALL_PROXY
sudo sed -i "161c socks5 $windows_host 1080"  /etc/proxychains4.conf
alias px='proxychains4'
px apt-get install git libssl-dev libffi-dev build-essential python3-pip python3-venv -y
python3 -m pip install pysocks
px python3 -m pip install pipenv
git config --global core.editor "vim"
git config --global user.name "YOUR_NAME"
git config --global user.email "YOUR_EMAIL"
git config --global core.eol lf
git config --global core.autocrlf false

使用chocolatey安装常用软件

choco install -y vcredist-all
choco install -y 7zip.install
choco install -y python3
choco install -y temurin11
choco install -y temurin17
# choco install -y anaconda3
choco install -y mobaxterm
choco install -y winscp.install
choco install -y googlechrome
choco install -y adobereader
# choco install -y calibre
choco install -y ccleaner
choco install -y curl
choco install -y git.install
choco install -y crystaldiskinfo
# choco install -y burp-suite-free-edition
# -i 用于不安装依赖
choco install -i -y ghidra 
choco install -y k-litecodecpackfull
choco install -y sysinternals
choco install -y vlc
choco install -y Wget
choco install -y wireshark
choco install -y greenshot
choco install -y vscode
choco install -y obsidian
# choco install -y docker-desktop
choco install -y choco-cleaner
choco install -y openssl.light
# choco install -y irfanview
# choco install -y virtualbox
# choco install -y openconnect-gui

# https://docs.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge
# Add-AppxPackage -Path .\Microsoft.VCLibs.x64.14.00.Desktop.appx
# choco install microsoft-windows-terminal -y

# 回复windows store for LTSC
wsreset -i
tags: win10 env-setings chocolatey