Install IntelliJ IDEA development tools in WSL2

1. wsl supports graphics

windows install xming

https://sourceforge.net/projects/xming/

add whitelist

View server ip

ifconfig

 Edit the configuration file (combined with your own installation directory)

‪D:\ProgramFiles\Xming\X0.hosts

 

  Start Xlaunh

 

 

 

 

 wsl

configure and verify

#b编辑配置文件
vi ~/.bashrc
#末尾增加配置
export DISPLAY="`sed -n 's/nameserver //p' /etc/resolv.conf`:0"
#刷新配置
source ~/.bashrc
#安装小工具
sudo apt install x11-apps
#测试
xcalc

X11 is the Linux window management system, which is a collection of various applications and tools that come with it, such as xclock, xcalc calculator, xclipboard for cutting and pasting, xev for event testing, etc. 

 Two, wsl installation idea

https://www.jetbrains.com/idea/download/?section=linux

 Copy the download into wsl

Copy reference article: wsl file copy_Curious novice's blog-CSDN blog

cp /mnt/c/Users/yjtzf/Downloads/ideaIU-2023.1.3.tar.gz /usr/local/
#进入文件夹
cd /usr/local
#解压
tar -xzvf ideaIU-2023.1.3.tar.gz
#重命名
mv idea-IU-231.9161.38/ idea
#进入bin
cd  /usr/local/idea/bin/
#启动idea
nohup ./idea.sh &

Guess you like

Origin blog.csdn.net/qq_29752857/article/details/131391567