Node.js for begginers – installation

To download Node.js go to https://nodejs.org/en/ and install proper version.

After package installation you must create directory on disk to store your project and init it.
Open console, browse to created folder and then type:
#npm init
Hit [Enter] if you accept default values or enter your own data.
This will create package.json file.

If you want to install additional package then you can use command
#npm install --save packagename
–save – this option will add to your project depended library
Continue reading “Node.js for begginers – installation”

How to add new disk in VMware / ESXi / vCenter without rebooting

If you want to add new HDD to existing Linux virtual machine like CentOS 7 / RHEL 7 you must:

First add new disk in preferences of virtual machine.
Click Edit preferences of virtual machine. On tab Hardware click Add button and fill proper preferences.
When you save data new hardware should appear on hardware list.

Now login to your virtual machine and execute:
# fdisk -l
You should see all previous mounted hardware.

Continue reading “How to add new disk in VMware / ESXi / vCenter without rebooting”