tiancheng91 / collection

笔记
https://github.com/tiancheng91/collection/issues
21 stars 1 forks source link

Win10 WSL #43

Open tiancheng91 opened 3 years ago

tiancheng91 commented 3 years ago

文件系统权限问题

# .zshrc
if grep -q Microsoft /proc/version; then
   if [ "$(umask)" -eq '0000' ]; then
      umask 0022
   fi
fi
# /etc/wsl.conf
[automount] 
enabled = true
options = "metadata,umask=22,fmask=11"

docker 启动

#!/bin/sh
PATH="/opt/docker:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
cgroupfs-mount
nohup dockerd --iptables=false --bridge=none --data-root=/opt/docker_data --registry-mirror=https://lhh84km0.mirror.aliyuncs.com > /home/ubuntu/.config/docker.log 2>&1 &
sleep 15
chmod a+w /var/run/docker.sock
tiancheng91 commented 3 years ago

https://github.com/DDoSolitary/LxRunOffline/releases

tiancheng91 commented 3 years ago

echo ':set term=builtin_ansi' >> ~/.vimrc