开启WSL并在微软应用市场安装
打开PowerShell
win+x, a
ubuntu1804.exe config --default-user root
运行bash
并修改
vim /etc/passwd
注:时间久了,源可能会不存在
# 备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 修改
vim /etc/apt/sources.list
# 完全代替修改为
deb http://mirrors.aliyun.com/ubuntu/ bionic main
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main
apt update && apt upgrade
注:直接安装整个xfce4
桌面来安装所需的图形界面组件(idea,eclipse等需要图形界面,或者自己单独安装需要的组件)
apt install xfce4
在~/.bashrc
添加
export DISPLAY=:0.0
export LIBGL_ALWAYS_INDIRECT=1
Install the lastest version of VcXsrv.
Open XLaunch, choose “One large window” or “One large window without titlebar” and set the “display number” to 0.
Other settings leave as default and finish the configuration.
运行bash
startxfce4
Install the lastest version of Hack fonts.
sudo apt-get install fonts-noto
sudo apt-get install fonts-noto-hinted
sudo apt-get install fonts-noto-mono
sudo apt-get install fonts-noto-unhinted
sudo apt-get install fonts-noto-cjk
sudo apt-get install fcitx
sudo apt-get install fcitx-pinyin
在~/.bashrc
添加
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
简单起见,直接apt install openjdk-8-jdk
或用Oracle的jdk
下载解压
方便启动,加入到PATH
# idea
export IDEA_HOME=/opt/idea/current
export PATH=$IDEA_HOME/bin:$PATH
下载解压
方便启动,加入到PATH
# dbeaver
export DBEAVER_HOME=/opt/dbeaver/current
export PATH=$DBEAVER_HOME:$PATH
完整版(给个star):RedisDesktopManager-Linux-WSL
# need to upgrade
apt update && apt upgrade
# change to latest tag
git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.9.8
cd RedisDesktopManager/
cd src/
./configure
qmake
make
make install
cd /opt/redis-desktop-manager/
mv qt.conf qt.backup
# optional, reduces rdm size 30MB+ to 2MB+
strip rdm
方便启动,加入到PATH
# RDM
export RDM_HOME=/opt/redis-desktop-manager
export PATH=$RDM_HOME:$PATH
export DISPLAY=:0.0
export LIBGL_ALWAYS_INDIRECT=1
#pinyin
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
# dbeaver
export DBEAVER_HOME=/opt/dbeaver/current
export PATH=$DBEAVER_HOME:$PATH
# idea
export IDEA_HOME=/opt/idea/current
export PATH=$IDEA_HOME/bin:$PATH
# RDM
export RDM_HOME=/opt/redis-desktop-manager
export PATH=$RDM_HOME:$PATH
git config --global user.name archon
git config --global user.email [email protected]
git config --global credential.helper store
/usr/share/fonts/${自己新建的目录}
fc-cache -f -v
RedisDesktopManager-Linux-WSL
wsl-tutorial
redisdesktop linux
redisdesktop build fail