Xiangxiang's Personal Site

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

View on GitHub
12 August 2017

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

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

Win11首次启动

slmgr /ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D
slmgr /skms kms.03k.org

Windows Features

Control Panel -> Programs -> Turn Windows features on or off

Enable

Windows Store

使用管理员打开CMD, 执行

wsreset -i
restart PC

Office LTSC

setup.exe /configure office-2024-ltsc.xml

Explorer menu - Show More as Default

reg add HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /ve /d "" /f

Java

Android

VSCode Community

MSTSC force TCP

Follow the path mentioned below.
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client
Now, right-click the Client folder and choose New > DWORD (32-bit) Value.
Type fClientDisableUDP as the name of the new item.
Finally, double-click it, set its Value data to 1 and click the OK button.


Turn off UDP in Group Policy
Press the Windows key + R, type gpedit.msc, and click OK.
Navigate to the path below.
Computer Configuration > Administration Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client
Now, double-click Turn Off UDP On Client in the right pane.
Then, tick the Enabled radio button and click OK.

WSL

安装

wsl --update
wsl --set-default-version 2
wsl --install -d Ubuntu-24.04

环境配置

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'
apt-get update
apt-get dist-upgrade
apt-get install git libssl-dev libffi-dev build-essential python3-pip python3-venv -y

# https://devguide.python.org/getting-started/setup-building/#build-dependencies
apt-get build-dep python3
apt-get install pkg-config
apt-get install build-essential gdb lcov pkg-config \
      libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
      libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
      lzma lzma-dev tk-dev uuid-dev zlib1g-dev


mkdir Projects
px git clone git@github.com:python/cpython.git
cd cpython
git checkout v3.13.1
./configure --enable-optimizations --with-lto
make
make test
sudo make altinstall


apt-get build-dep linux

apt-get install -y bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32readline-dev lib32z1-dev libelf-dev liblz4-tool libncurses-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev p7zip-full p7zip-rar dwarves cmake libdwarf-dev libdw-dev pkgconf linux-tools-generic linux-tools-common bpfcc-tools libbpfcc libbpfcc-dev linux-generic libbpf-dev python-is-python3
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 python312

# 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 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
tags: win10 env-setings chocolatey