Do you have problem with installation of ESXi from iso image because of missing drivers?
You can solve this by preparing custom iso immage of VmWare ESXi. Continue reading “How to customize ESXi iso image (how to add drivers)”
How to merge a git branch into master
#git checkout master
#git pull origin master
#git merge test
#git push origin master
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 kill SSH session / SSH hangout
If you need to terminate not active SSH session please use keys sequence:
Continue reading “How to kill SSH session / SSH hangout”
How to create partitions and format them under Linux (Centos 7)
When you add new disk first you need to identify device path.
Please type:
# fdisk -l
and find path to your new disk, e.g.
/dev/sdb
Continue reading “How to create partitions and format them under Linux (Centos 7)”
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”
How to mount devices or shares without rebooting system / reload fstab
When you make new entries in /etc/fstab or lost connection to network (e.g. samba) share it is possible to remount all disconnected devices.
To do so you need to execute:
Continue reading “How to mount devices or shares without rebooting system / reload fstab”
How to deal with high IO in linux
If you are dealing with high IO wait on linux machine then you must detect which application causing this.
First use
# top
This will show list of current running applications.
Continue reading “How to deal with high IO in linux”
How to count all tables size in MySql/MariaDB database
Sometimes we need to see the size of all tables in our MySql/MariaDB database.
The easiest way is to make such query:
Continue reading “How to count all tables size in MySql/MariaDB database”
How to make email copy of all sent messages (auto BCC) in Postfix
If you want to make copy of all messages sent through email accout then create file /etc/postfix/sender_bcc with contents:
#emails from #BCC to
from@domain.com bcc@domain.com
Then edit /postfix/main.cf file and add at the end of file
Continue reading “How to make email copy of all sent messages (auto BCC) in Postfix”