跳转至

虚拟机使用

以VMWare,Ubuntu为例

共享文件夹

  1. 在虚拟机设置中添加共享文件夹
  2. sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
  3. /mnt/hgfs/ 是挂载点,我们也可以修改为其它挂载点
  4. -o allow_other 表示普通用户也能访问共享目录。
  5. ls /mnt/hgfs 查看共享文件夹
  6. 添加永久挂载点:echo '.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0' | sudo tee -a /etc/fstab
  7. 重启后生效

虚拟机网络配置

https://blog.csdn.net/weixin_56261190/article/details/144807447)

如果没出现有线设置这一选项,可以尝试以下命令:

sudo nmcli networking off
sudo nmcli networking on

虚拟机网络模式

(https://www.bilibili.com/video/BV11M4y1J7zP)

中文输入法配置

https://blog.csdn.net/windson_f/article/details/124932523