2

修改WSL默认登录用户

 1 year ago
source link: https://www.liesauer.net/blog/post/746.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

修改WSL默认登录用户

修改WSL默认登录用户

添加以下内容到/etc/wsl.conf

  1. [user]
  2. default=USERNAME

修改WSL默认登录位置

添加以下内容到~/.bashrc

  1. cd ~

修改WSL主机名

添加以下内容到/etc/wsl.conf

  1. [network]
  2. hostname=HOSTNAME

添加ROOT权限

切换到root账号,添加以下内容到/etc/sudoers

  1. USERNAME ALL=(ALL:ALL) ALL

标签: wsl, wsl2, ubuntu

添加新评论

称呼

Email

当有人回复时接收邮件提醒

网站

内容


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK