生产力工具集
Windows 子系统
直接安装WSL2
适用于之前没有安装过WSL
1.如果之前没有用过 WSL,那么首先需要为Linux启用Windows子系统:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2.安装 WSL2 之前,必须启用“虚拟机平台”可选功能
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
重新启动计算机以完成WSL安装并更新到 WSL2
3.安装适用于 x64 计算机的 WSL2 Linux 内核更新包
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
4.完成之后,以管理员身份运行 PowerShell,执行如下命令来设置wsl使用的默认版本
wsl --set-default-version 2
这里我们将默认设置为 WSL2
5.接下来通过访问 Microsoft Store 来安装分发版 https://aka.ms/wslstore
6.查看 WSL 版本
wsl -l -v
Win 10下开启Windows子系统WSL
1.程序和功能 – 启动或关闭Windows功能 – 适用于Linux的Windows子系统 勾选后确定,重启系统。
2.打开cmd,输入bash回车,提示访问一个网址,使用浏览器访问,
重定向到应用商店,然后可以获取需要的Linux子系统,比如Ubuntu
3.阿里云官方镜像站:https://developer.aliyun.com/mirror/
从WSL 1切换到WSL 2
WSL 2相比WSL 1有着更完整的虚拟环境,而且一些数据库比如mongodb在WSL 1下默认是无法使用的,所以果断升级:
升级步骤参考微软官方文档:https://docs.microsoft.com/zh-cn/windows/wsl/install-win10
升级过程需要注意2点:
1.使用power shell 管理员权限执行命名。
2.如果WSL 1已经有Linux环境,升级后要重启电脑。
windows ubuntu子系统设置默认root用户
ubuntu config --default-user root
WSL2 固定IP
在Windows 10中,以管理员权限运行CMD或Powershell,然后执行以下两个命令:
1.在Ubuntu中添加IP地址192.168.50.2,名为eth0:1
wsl -d Ubuntu -u root ip addr add 192.168.50.2/24 broadcast 192.168.50.255 dev eth0 label eth0:1
2.在Win10中添加IP地址192.168.50.1
netsh interface ip add address "vEthernet (WSL)" 192.168.50.1 255.255.255.0
将来,访问Ubuntu时将使用192.168.50.2,访问Win10时将使用192.168.50.1。 您可以将上述两行命令另存为.bat文件,然后将其放入引导区,并使其每次自动执行。
Windows Terminal
您可以从Microsoft Store安装Windows Terminal:https://aka.ms/terminal
官方文档:https://docs.microsoft.com/en-us/windows/terminal/
快速打开:运行 wt
快速启动ssh:wt -w 0 new-tab cmd /k ssh root@172.16.2.223
设置-打开JSON文件 settings.json
// This file was initially generated by Windows Terminal Preview 1.5.3242.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
// You can add more global application settings here.
// To learn more about global settings, visit https://aka.ms/terminal-global-settings
// If enabled, selections are automatically copied to your clipboard.
"copyOnSelect": false,
// If enabled, formatted data is also copied to your clipboard
"copyFormatting": false,
// A profile specifies a command to execute paired with information about how it should look and feel.
// Each one of them will appear in the 'New Tab' dropdown,
// and can be invoked from the commandline with `wt.exe -p xxx`
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings
"profiles":
{
"defaults":
{
// Put settings here that you want to apply to all profiles.
},
"list":
[
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl"
},
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
// Make changes here to the cmd.exe profile.
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "命令提示符",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
]
},
// Add custom color schemes to this array.
// To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
"schemes": [],
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
{ "command": "closeTab", "keys": "ctrl+w" },
{ "command": "newTab", "keys": "ctrl+t" },
{ "command": "scrollUpPage", "keys": "alt+pageup" },
{ "command": "scrollUpPage", "keys": "shift+pageup" },
{ "command": "scrollDownPage", "keys": "alt+pagedown" },
{ "command": "scrollDownPage", "keys": "shift+pagedown" },
{ "command": { "action": "switchToTab", "index": 0 }, "keys": "ctrl+1" },
{ "command": { "action": "switchToTab", "index": 1 }, "keys": "ctrl+2" },
{ "command": { "action": "switchToTab", "index": 2 }, "keys": "ctrl+3" },
{ "command": { "action": "switchToTab", "index": 3 }, "keys": "ctrl+4" },
{ "command": { "action": "switchToTab", "index": 4 }, "keys": "ctrl+5" },
{ "command": { "action": "switchToTab", "index": 5 }, "keys": "ctrl+6" },
{ "command": { "action": "switchToTab", "index": 6 }, "keys": "ctrl+7" },
{ "command": { "action": "switchToTab", "index": 7 }, "keys": "ctrl+8" },
{ "command": { "action": "switchToTab", "index": 8 }, "keys": "ctrl+9" },
{ "command": { "action": "switchToTab", "index": 0 }, "keys": "alt+1" },
{ "command": { "action": "switchToTab", "index": 1 }, "keys": "alt+2" },
{ "command": { "action": "switchToTab", "index": 2 }, "keys": "alt+3" },
{ "command": { "action": "switchToTab", "index": 3 }, "keys": "alt+4" },
{ "command": { "action": "switchToTab", "index": 4 }, "keys": "alt+5" },
{ "command": { "action": "switchToTab", "index": 5 }, "keys": "alt+6" },
{ "command": { "action": "switchToTab", "index": 6 }, "keys": "alt+7" },
{ "command": { "action": "switchToTab", "index": 7 }, "keys": "alt+8" },
{ "command": { "action": "switchToTab", "index": 8 }, "keys": "alt+9" },
{ "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
{ "command": "paste", "keys": "ctrl+v" },
// Press Ctrl+Shift+F to open the search box
{ "command": "find", "keys": "ctrl+shift+f" },
// Press Alt+Shift+D to open a new pane.
// - "split": "auto" makes this pane open in the direction that provides the most surface area.
// - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
// To learn more about panes, visit https://aka.ms/terminal-panes
{ "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
]
}
Windows SVN
https://tortoisesvn.net/downloads.zh.html
Windows GIT
接口调试工具
postman
https://www.postman.com/downloads/
PostmanCanary
https://www.postman.com/downloads/canary/
insomnia
https://insomnia.rest/download/
ApiPost
https://www.apipost.cn/download.html
Git bash
https://git-scm.com/download/win
配置
默认打开路径
修改文件:C:\Program Files\PortableGit\etc\profile
在底部加入
# set Project Path
proj="你的项目文件目录"
cd $proj
加入Alias
进入 C:\Users\username目录
添加3个文件(.bash_profile,.bashrc,git-prompt.sh):
.bash_profile
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
.bashrc
alias s='screen -d -R'
alias mp='git commit -am "autopush" && git push'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ls='ls -hFG'
alias l='ls -lFah'
alias ll='ls -alF'
alias lt='ls -ltrF'
alias ll='ls -alF'
alias lls='ls -alSrF'
alias llt='ls -altrF'
alias tarc='tar cvf'
alias tarcz='tar czvf'
alias tarx='tar xvf'
alias tarxz='tar xvzf'
alias g='git'
alias less='less -R'
alias os='lsb_release -a'
alias vi='vim'
# Colorize directory listing
alias ls="ls -ph --color=auto"
# Colorize grep
alias grep="grep --color=auto"
# Shell
export CLICOLOR="1"
if [ -f "$HOME/git-prompt.sh" ]; then
source $HOME/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE="1"
export PS1="\[\033[40m\]\[\033[34m\][ \[\033[36m\]\w\$(__git_ps1 \" \[\033[35m\]{\[\033[32m\]%s\[\033[35m\]}\")\[\033[34m\] ]$\[\033[0m\] "
# export PS1="\[\033[40m\]\[\033[34m\][ \u@\H:\[\033[36m\]\w\$(__git_ps1 \" \[\033[35m\]{\[\033[32m\]%s\[\033[35m\]}\")\[\033[34m\] ]$\[\033[0m\] "
else
export PS1="\[\033[40m\]\[\033[34m\][ \[\033[36m\]\w\[\033[34m\] ]$\[\033[0m\] "
# export PS1="\[\033[40m\]\[\033[34m\][ \u@\H:\[\033[36m\]\w\[\033[34m\] ]$\[\033[0m\] "
fi
export LS_COLORS="di=34:ln=35:so=32:pi=33:ex=1;40:bd=34;40:cd=34;40:su=0;40:sg=0;40:tw=0;40:ow=0;40:"
执行bat
git-bash下执行RUN.bat
cmd /cRUN.bat
编辑器
Markdown编辑器
Typora
Typora Beta 0.11.18 下载地址:
- Windows x64: https://download.typora.io/windows/typora-update-x64-1117.exe
- Windows x86: https://download.typora.io/windows/typora-update-ia32-1117.exe
- Linux x64: https://download.typora.io/linux/typora_0.11.18_amd64.deb
- MacOS: https://download.typora.io/mac/Typora-0.11.18.dmg
markdownpad
Email:
Soar360@live.com
License Key:
GBPduHjWfJU1mZqcPM3BikjYKF6xKhlKIys3i1MU2eJHqWGImDHzWdD6xhMNLGVpbP2M5SN6bnxn2kSE8qHqNY5QaaRxmO3YSMHxlv2EYpjdwLcPwfeTG7kUdnhKE0vVy4RidP6Y2wZ0q74f47fzsZo45JE2hfQBFi2O9Jldjp1mW8HUpTtLA2a5/sQytXJUQl/QKO0jUQY4pa5CCx20sV1ClOTZtAGngSOJtIOFXK599sBr5aIEFyH0K7H4BoNMiiDMnxt1rD8Vb/ikJdhGMMQr0R4B+L3nWU97eaVPTRKfWGDE8/eAgKzpGwrQQoDh+nzX1xoVQ8NAuH+s4UcSeQ==
VScode
下载:https://code.visualstudio.com/Download
同步配置
文件 – 首选项 – 设置同步 (可使用live账户)
插件
css压缩插件css-minify
https://marketplace.visualstudio.com/items?itemName=DiegoMolina.css-minify
终端下使用的字体(等宽字体)
https://github.com/abertsch/Menlo-for-Powerline
右键使用vscode打开.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="VSCode"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
EmEditor
超大文件编辑器
https://www.rjsos.com/archives/emurasoft19.html
浏览器
Chrome
Chrome:
注意下载地址长期不变,但下到的始终是当前最新的Stable版。
32位:直接下载
64位:直接下载
Chrome Canary:
Chrome Dev:
Chrome Stable for Linux
64位
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
chrome代理插件:https://github.com/FelisCatus/SwitchyOmega/releases
FireFox
下载地址:
https://www.mozilla.org/en-US/firefox/all/
Opera
Opera浏览器桌面版历史版本下载
http://get.opera.com/ftp/pub/opera/desktop/
http://get.geo.opera.com/pub/opera/desktop/
Vmware
Vmware Workstation Pro 下载 15-14
https://my.vmware.com/group/vmware/info?slug=desktop_end_user_computing/vmware_workstation_pro/15_0
激活许可证
UY758-0RXEQ-M81WP-8ZM7Z-Y3HDA
VF750-4MX5Q-488DQ-9WZE9-ZY2D6
UU54R-FVD91-488PP-7NNGC-ZFAX6
YC74H-FGF92-081VZ-R5QNG-P6RY4
YC34H-6WWDK-085MQ-JYPNX-NZRA2
Vmware Workstation Pro 历史版本下载 12-9
https://my.vmware.com/group/vmware/info/slug/desktop_end_user_computing/vmware_workstation_pro/12_0
清理VMware.bat
net stop VMwareHostd
net stop VMAuthdService
net stop VMnetDHCP
net stop VMUSBArbService
net stop "VMware NAT Service"
taskkill /F /im vmware-tray.exe
远程桌面
RustDesk
VNC
TeamViewer
https://www.teamviewer.cn/cn/download/windows/
向日葵
https://sunlogin.oray.com/download/
ToDesk
https://www.todesk.com/download.html
清理远程.bat
sc stop "SunloginService"
sc stop "ToDesk_Service"
sc stop "teamviewer"
sc stop "vncserver"
taskkill /F /im SunloginClient.exe
taskkill /F /im todesk_service.exe
taskkill /F /im todesk.exe
REM start "" "C:\Program Files\RealVNC\VNC Server\vncserver.exe" -service -stop
启动远程.bat
sc start "SunloginService"
sc start "ToDesk_Service"
sc start "teamviewer"
sc start "vncserver"
虚拟组网
蒲公英 https://pgy.oray.com/download/
zerotier https://zerotier.com/download/
Win10启动时候加载bat
运行: shell:startup -> startup.vbs
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "C:\auto_run\startup\start.bat /start",0
Beyond Compare
http://www.ucbug.com/soft/40421.html
安装说明:https://www.rjsos.com/archives/beyondcompare4.html
Adobe Photoshop CS6
http://xiazai.zol.com.cn/detail/15/146785.shtml
补丁 (将 amtlib 覆盖掉相应软件的源文件) http://xiazai.zol.com.cn/detail/45/440347.shtml
Adobe Premiere Pro 2020
https://www.rjsos.com/archives/premiere2020.html
Everything
Windows桌面搜索引擎 (快速搜索文件工具)
思维导图
XMind
https://www.xmind.cn/download/ 破解1 破解2
MindMaster
https://www.edrawsoft.cn/mindmaster/ 破解
Virtual Audio Cable
混音软件,可实现多音频设备同时输出
https://software.muzychenko.net/eng/vacselect.htm
翻译
https://appdownload.deepl.com/windows/full/DeepLSetup.exe
Hyper
安装主题
hyper i hyper-material-theme
配置文件路径:C:\Users\malu\AppData\Roaming\Hyper.hyper.js
shell: 'C:\\Program Files\\PortableGit\\bin\\bash.exe',
...
plugins: ["hyper-material-theme"],
SQL
Windows Redis
https://github.com/microsoftarchive/redis/releases
Redis 分析工具客户端
https://redislabs.com/redisinsight/
PowerDesigner v16.5
http://onlinedown.rbread04.cn/huajunsafe/powerdesigner1029.zip
ODBC for MySQL
(注意powerdesigner是用java32位的,所以ODBC也下32位
https://dev.mysql.com/downloads/connector/odbc/
BIOS
bios修改工具mmtool https://softradar.com/static/products/mmtool/distr/0/mmtool_softradar-com.zip
win10适配修改器 http://www.angusj.com/resourcehacker
也可以直接下修改好的mmtool http://www.smxdiy.com/thread-1995-1-1.html
技嘉B85主板BIOS https://www.gigabyte.com/tw/Motherboard/GA-B85-HD3-A-rev-10/support#support-dl-bios
B85芯片组主板也能用上NvmeSSD https://zhuanlan.zhihu.com/p/40367807