win10企业版 安装WSL

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" />
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容