feat: adjust bootable-usb-drive.md and node.md
This commit is contained in:
parent
bfbbded6e0
commit
de6c9baa7b
|
@ -19,4 +19,17 @@ sudo umount /dev/<tbd>
|
||||||
sudo mkfs.vfat /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
|
||||||
|
```
|
25
doc/node.md
25
doc/node.md
|
@ -12,6 +12,31 @@ sudo apt update
|
||||||
sudo apt-get install nodejs npm --no-install-recommends
|
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
|
## Using NVM
|
||||||
|
|
||||||
* install curl command-line utility
|
* install curl command-line utility
|
||||||
|
|
Loading…
Reference in New Issue