feat: adjust bootable-usb-drive.md and node.md

This commit is contained in:
dancingCycle 2023-08-17 10:44:11 +02:00
parent bfbbded6e0
commit de6c9baa7b
2 changed files with 39 additions and 1 deletions

View File

@ -19,4 +19,17 @@ sudo umount /dev/<tbd>
sudo mkfs.vfat /dev/<tbd>
```
* [create bootable USB drive](https://www.pragmaticlinux.com/2021/03/create-a-bootable-usb-drive-from-a-linux-iso-image/)
* identify the device name
```
lsblk -p | grep "disk"
```
* make sure the USB drive is not mounted
```
sudo umount /dev/<tdb>
```
* write the ISO file to the USB drive
```
sudo dd if=[ISO FILE] of=[DEVICE NAME] bs=4M conv=fdatasync status=progress
```

View File

@ -12,6 +12,31 @@ sudo apt update
sudo apt-get install nodejs npm --no-install-recommends
```
## Using NVM Update
* configure Node.js: [Here](https://github.com/nvm-sh/nvm) we find a bash script to manage multiple active node.js versions
```
node -v
which node
less ~/.profile
touch ~/.profile
chmod 700 ~/.profile
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
cat ~/.profile
command -v nvm
nvm -v
. ~/.profile
nvm -v
command -v nvm
echo $NVM_DIR
nvm version-remote --lts
nvm ls-remote| grep 'Latest LTS'| grep v10
nvm i <lts>
which node
/usr/bin/node -v
node -v
```
## Using NVM
* install curl command-line utility