Linux commands that saved my days.
When you install one linux on your machine and your GRUB does not display the others systems. This is useful for GRUB to recognize it later.
sudo apt-get update
sudo apt-get install os-prober
sudo os-prober
sudo update-grub
sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
The nvm installer script creates environment entry to login script of the current user. You can either logout and login again to load the environment or execute the below command to do the same.
source ~/.profile
Install the latest version of node.js. Here node is the alias for the latest version.
nvm install node
To install a specific version of node:
nvm install 12.18.3
You can also select a different version for the current session. The selected version will be the currently active version for the current shell only.
nvm use 12.18.3
To find the default Node version set for the current user, type:
nvm run default --version
sudo apt install snapd
Install snap ☝️, then
sudo snap install dotnet-sdk --classic
sudo snap install dbeaver-ce
sudo apt install default-jre
sudo apt install default-jdk
sudo apt install openjdk-8-jdk
sudo apt install openjdk-8-jre
or
sudo apt install openjdk-9-jdk
sudo apt install openjdk-9-jre
or
sudo apt install openjdk-11-jdk
sudo apt install openjdk-11-jre
sudo update-alternatives --config java
Then select your preffered JDK.
sudo service mysql start
sudo service mysql stop
sudo service mongod start
sudo service mongod stop