微软官方文档
下载解压安装包,然后管理员身份打开powershell,运行安装命令:
Add-AppxPackage Ubuntu_2004.2021.825.0_x64.appx Add-AppxPackage Ubuntu_2004.2021.825.0_scale-100.appx Add-AppxPackage Ubuntu_2004.2021.825.0_scale-125.appx Add-AppxPackage Ubuntu_2004.2021.825.0_scale-150.appx Add-AppxPackage Ubuntu_2004.2021.825.0_scale-400.appx
WSL重启:How to Reboot WSL (Windows subsystem Linux) in Windows 10 or 11
Get-Service LxssManager | Restart-Service切换到root用户:
suto passwd root [sudo] password for alexzhang: New password: Retype new password: su root Password:切换到阿里云ubuntu镜像:阿里云镜像地址
mv /etc/apt/sources.list /etc/apt/sources.list.bk vim /etc/apt/sources.list
/etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse # deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
更新升级软件:
apt-get update apt-get upgrade # 安装开发环境 apt-get install openjdk-8-jdk cmake gcc g++ pip bison maven autoconf protobuf-compiler
Switch java versions
update-java-alternatives --list update-java-alternatives --set /path/to/java/version安装图形界面+vncserver
参考:Ubuntu VNC 安装/使用/故障解决 看这一篇就够了
apt-get install -y xrdp xfce4 apt-get install -y ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal配置xfce4
vi ~/.vnc/xstartup
unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc unset DBUS_SESSION_BUS_ADDRESS [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources gnome-panel & gnmoe-settings-daemon & metacity & nautilus & gnome-terminal &
启动:
mkdir ~/.config/nautilus vncserver -geometry 2560x1440编译配置openLookeng
编译:maven -T8C clean install -DskipTests
配置:
vim etc/node.properties
node.envirionment=olk node.launcher-log-file=/opt/openlookeng/ node.server-log-file=/opt/openlookeng/ catalog.config-dir=/opt/openlookeng/ node.data-dir plugin-dir=
vim etc/config.properties
vim etc/jvm.config
vim etc/catalog/jmx.properties



