Month: May 2017

Cloud Linux, CPanel / WHM, Tweaks

How to change the color of your BASH prompt

How to change the color of your BASH prompt You can change the color of your BASH prompt to green with this command: export PS1=”\e[0;32m[\[email protected]\h \W]\$ \e[m” It will change the colour of bash temporarily. To make it permanent then add code in bash_profile page. vi ~/.bash_profile and paste above code save the file and you …

Uncategorized

How to extend disk space in windows 2012

How to extend disk space in windows 2012 Login to windows. Click on Start run and type cmd. In windows command prompt. run diskpart.exe DISKPART prompt will come. diskpart >list volume Above command will show list of volumes. Select volume volume number It will select the volume which you want to extend. extend filesystem It …

Uncategorized

dd command to migrate VPS on linux platform

dd command to migrate VPS on linux platform. First create new vps with same configuration on another node. It doesn’t matter new vps is having os or not or you can choose any OS. Once same configuration VPS setup done then use below command to migrate VPS. dd if=/dev/guestos/kvm2351_img | ssh 10.10.10.10 “dd of=/dev/guestos/kvm2520_img” Once migration is …

OpenVZ, SolusVM

Mount windows/linux disk using kpartx

This post will guide you through how to access the contents of the virtual disk (LVM disk) directly so that you don’t need to boot the VM or when VM is not booting and you want to recover the data(windows or linux) [[email protected] ~]# lvdisplay | grep centosLV Path /dev/VolGroup/centosLV Name centos We need to create device …