win10企业版 安装WSL

2019-08-22  本文已影响0人  quan575

win10更新助手

参考文章,由于企业版和长期支持版没有Microsoft Store。直接下载手动安装

安装WSL ubuntu

手动下载安装:https://docs.microsoft.com/en-us/windows/wsl/install-manual

修改密码

将WSL发行版的默认用户名更改为root。使用以下命令:
ubuntu1604 config --default-user root
普通用户忘记密码的时候可以设置root登录,然后修改密码
https://winaero.com/blog/reset-password-wsl-linux-distro-windows-10/

~/.bashrc

# 账号 时间 文件夹
PS1="\[\033]2;\h:\u \w\007\033[33;1m\]\u \033[35;1m\t\033[0m \[\033[36;1m\]\w\[\033[0m\]\n\[\e[32;1m\]$ \[\e[0m\]"
alias ls='ls -hF --color=tty'

源文件sources.list

https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

sudo vim /etc/apt/sources.list
# 光标到首行开头位置直接敲键盘gg,然后输入:.,$d 
sudo apt-get upgrade
sudo apt-get update

常用软件

sudo apt-get install imagemagick
convert -version
/etc/ImageMagick/policy.xml
改为 <policy domain="coder" rights="read|write" pattern="PDF" />
上一篇下一篇

猜你喜欢

热点阅读