HostOnNet Blog

pip – Python Package Manager

pip is python package manger. https://pip.pypa.io/en/stable/ To install pip, run On Ubuntu, you can install with On CentOS Server, you can install with Install a package with pip To install a package with pip, run Example pip install fabric Upgrade


sar

sar No such file or directory 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


Making POST request with curl

curl use socks5 proxy For an API request, i need to sent POST request with following data. POST https://api.ctl.io/v2/authentication/login Content-Type: application/json { “username”:”demouser1″, “password”:”mypassword” } This can be done with following curl command Here –request POST tell curl to use


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. https://linux.die.net/man/1/qemu-img QEMU is part of Linux KVM virtual machine. To convert KVM Virtual machine image to Hyper-V format, run To convert VMware


New PC

Here is some useful resources when building new assembled computer. https://in.pcpartpicker.com – Allows you to chose different components. Some good configurations available at https://in.pcpartpicker.com/guide/ To check benchmark score for a CPU, check http://www.cpubenchmark.net/ TomsHardware have several builds for different price


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. https://github.com/PowerShell/PowerShell To Install powershell on Ubuntu, go to https://github.com/PowerShell/PowerShell/releases 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. https://www.djangoproject.com First you need pip installed Now install Django using pip