Ubuntu

Mar 12, 2024Linux

使用 VMware 安装 Ubuntu Linux

使用 Ubuntu 安装软件

安装环境

  1. 安装 Node.js 和 npm

终端运行:

sudo apt update
sudo apt install nodejs npm
sudo apt update
sudo apt install nodejs npm
  1. 安装 nvm

使用 curl 安装 nvm,首先安装 curl

sudo apt update
sudo apt install curl
curl --version # 检查是否安装成功
sudo apt update
sudo apt install curl
curl --version # 检查是否安装成功

安装 nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

最新版可在 github 上查看 (https://github.com/nvm-sh/nvm)[https://github.com/nvm-sh/nvm]

VMware 虚拟机使用主机侧代理

与主机共享文件夹

注意,需要执行挂载操作,如果虚拟机重启,需要再次挂载共享文件夹

sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other

/mnt/hgfs/ 是挂载点,我们也可以修改为其它挂载点

-o allow_other 表示普通用户也能访问共享目录。