Node Version Manager
One flexible method to install Node.js is by using NVM (Node Version Manager). NVM lets you install and manage multiple versions of Node.js and their associated packages concurrently.
To install NVM on Ubuntu, navigate to the project’s GitHub page and copy the curl command from the README. This command downloads the latest installation script.
Before piping the downloaded script to bash, consider auditing it by removing the “| bash” part from the command:
Unlocking a Root Account
Steps:
- 1. Boot from a live media.
- 2. Create a backup of the
/etc/shadow
file. - 3. Open the
/etc/shadow
file in nano. - 4. Change this line
root:*:19953:0:99999:7
or something similar toroot:$y$j9T$HnFlM7MzlDXwpow4d9lyP/$fcPtzuJlSPrWoejZqWfNqRFwPUd1wZ5YLr6J6rz2iyC:20024:0:99999:7:::
this will unlock the root account and change it’s password to “kali”. - 5. Now boot to the main Linux OS and you should have access to the root account.
To clarify, altering the /etc/shadow
file directly can have significant security implications, as this file stores the encrypted passwords for user accounts on Linux systems. Here’s a summary of the steps and additional considerations when working with the root account in this way:
Installing Docker
1. Update your system:
Run the following commands to update your system.
sudo apt update
2. Add Docker’s Official Repository:
Run the following commands to set up Docker’s official repository in your WSL environment:
# Install prerequisites for adding repositories
sudo apt-get install -y ca-certificates curl gnupg
# Add Docker’s official GPG key
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Add the Docker repository to APT sources
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
3. Install Docker:
Now install Docker and its components: