HostOnNet Blog


sar is a tool to collect, report and store system activity information, a very useful tool to debug server performance related problems. To install sar on CentOS/RHEL, run To view memory stats, run To view IO stats (disk usage), run

Making POST request with curl

For an API request, i need to sent POST request with following data. POST Content-Type: application/json { “username”:”demouser1″, “password”:”mypassword” } This can be done with following curl command Here –request POST tell curl to use POST method for the

Remove a servers key fingerprint from known_hosts

I was creating a program that login to remove server using PHP and run some commands. The servers key fingerprint was already on my known_hosts file. To verify script still work with out the fingerprint in known_hosts, i want to

Convert KVM, VMWare virtual machine to Hyper-V

QEMU disk image utility (qemu-img) can be used to convert virtual machine disk from one format to another. QEMU is part of Linux KVM virtual machine. To convert KVM Virtual machine image to Hyper-V format, run To convert VMware

Add IP in CentOS Server via Command Line

I installed CentOS 7 on a Hyper-V server. I want to manually assign IP to the server. This is done by editing file The file name vary depending on the network interface you have. Instead of editing the file via

Installing PowerShell On Ubuntu

Microsoft have recently Open Sourced PowerShell and made it available for Linux and Mac. To Install powershell on Ubuntu, go to Download latest release. To install PowerShell v6.0.0-alpha.17 Release, run Bit install fails with some warning, i have

Dockerfile – Scripting your docker image

Dockerfile allow you to script your installation step for your custom docker image. This is reproducible, easy to share and debug. Lets say you need a docker image with nginx installed, you can install it manually, commit the resulting image.

Django – Python Web Application Framework

Django is a Python web application framework. First you need pip installed Now install Django using pip

Install Docker On CentOS 7

To install Docker on CentOS 7, run Start docker with Test if docker is working Example [root@localhost ~]# docker run hello-world Unable to find image ‘hello-world:latest’ locally latest: Pulling from library/hello-world 78445dd45222: Pull complete Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7 Status: Downloaded newer image

VirtualBox – Open Source Virtual Machine

VirtualBox allow you to run virtual machines on your computer. It is an Open Source software supported by Oracle. Using Commandline VirtualBox comes with command line tool VBoxManage. To list all virtual machines on your computer, run To start