wsl 问题荟萃 kali - ballgle/saltwiki GitHub Wiki
1、 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/7fa2af80.pub
2、升级参考[https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps]
https://github.com/DaoCalendar/wsl_XWin_Cygwin 参考这个设置图形
https://pinyin.sogou.com/linux/guide 安装搜狗输入法
关于设置代理:
建议用proxychains4
https://www.jianshu.com/p/0403797c13b6
https://segmentfault.com/a/1190000041463008 防火墙设置
https://docs.microsoft.com/en-us/windows/wsl/networking 这个才是终极武器吧
https://github.com/DaoCalendar/wsl_XWin_Cygwin
https://github.com/microsoft/WSL/issues/4150 参考
https://gist.github.com/andyneff/712b2b02e1757f23526776a997856c29
增加规则:
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
删除规则:
Remove-NetFireWallRule -DisplayName 'WSL'
最终测试
其实这都是小事,关键是局域网的端口一般不同。
curl -x "socks5://172.17.32.1:10810" https://www.google.com
再不行,用 https://github.com/paddlelaw/proxychains-ng
或者 https://github.com/haad/proxychains
https://www.jianshu.com/p/b08df324cee7
sudo apt install proxychains4
sudo vim /etc/proxychains4.conf
sudo proxychains4 firefox
proxychains4 curl -x "socks5://172.17.32.1:10810" https://www.google.com
安装输入法
建议安装fictx5
/mnt/d/downloads# dpkg -i sogoupinyin_4.0.1.2123_amd64.deb
https://blog.csdn.net/kan2016/article/details/105735645
kali-linux
https://www.kali.org/blog/kali-linux-in-the-windows-app-store/
https://www.kali.org/blog/win-kex-version-2-0/
The installation of Win-KeX is as easy as always:
sudo apt upgrade && sudo apt install -y kali-win-kex (in a [Kali WSL installation](https://www.kali.org/docs/wsl/win-kex/)/)
Win-KeX now supports two dedicated modes:
Win-KeX Window mode is the classic Win-KeX look and feel with one dedicated window for the Kali Linux desktop. To launch Win-KeX in Window mode with sound support, type: kex --win -s
Win-KeX SL mode provides a seamless integration of Kali Linux into the Windows desktop with the Windows Start menu at the bottom and the Kali panel at the top of the screen. All applications are launched in their own windows sharing the same desktop as Windows applications. kex --sl --s
To enable sound:
Start Win-KeX with the --sound or -s command line parameter. We’ve been watching Blu-rays in Win-KeX SL without problems. Why you ask? Because - now we can ;-)
fictx5 安装
在 Ubuntu 20.10+ 中可以直接使用系统软件源安装, 而在长期支持版本 20.04 上需要先添加 ppa:
而在更早版本中安装未测试, 故不保证能正常使用.
安装 接下来就是安装 Fcitx5 框架与想要的输入法 (以中文输入法为例), 省事点可以全安装:
sudo add-apt-repository ppa:hosxy/fcitx5
sudo apt install fcitx5 fcitx5-*
或者简化一下只需要以下安装也就足以正常输入中文了:
sudo apt install fcitx5 fcitx5-frontend-qt5 fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 fcitx5-chinese-addons
代理设置更高级
https://www.geeksforgeeks.org/how-to-setup-proxychains-in-linux-without-any-errors/