HostOnNet Blog

Author Archives: admin

Install Composer

Composer is PHP package manager. Something like npm, pip etc.. used by other languages. To install composer, run Install dependency using composer List Installed Packages Update Packages


ansible

Ansible is a DevOps tool, used for managing servers. Ansible allow you to manage multiple servers easily. With ansible playbook, you can automate complex server administration and deployment tasks. Installing Ansible To install Ansible on Ubuntu, run Quick Start We


lftp using active mode for file transfer

By default lftp and ftp use Passive Mode. I had to FTP a file from a server to remote server. Due to firewall settings, i was not able to upload file as FTP session get stuck on This is because


GIT fatal: Unable to find remote helper for ‘https’

On a CentOS 6 server, when cloning repo from GIT, i got following error root@server48 [~]# git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle Cloning into /root/.vim/bundle/vundle… fatal: Unable to find remote helper for ‘https’ root@server48 [~]# This is because git was installed from


ERROR 1286 (42000): Unknown storage engine ‘InnoDB’

After upgrading MySQL to MariaDB 10.0.23, i got following error This was because InnoDB was not enabled in /etc/my.cnf To enable InooDB, edit add Now restart MariaDB, on CentOS 7 server, run


Secure Password Generator in Python

On ubuntu, i was using mkpasswd tool to generate password. It did generate secure passwords. But many sites require more secure password with number and special chars. boby@hon-pc-01:~ $ mkpasswd Password: L3o2zOV5vzHqM boby@hon-pc-01:~ $ I created a python program, so


Java iKVM Keyboard problem

On iKVM, when i type keys like -,?, etc.. i get different characters on KVM console. I changed keyboard language in iKVM Preferences, but it did not change anything. The problem is caused by OS on server installed with non


systemctl

systemctl command is will replace service command (SysV) used in older versions of CentOS/Ubuntu. To see list of all services, run To view cgroups tree, run To see status of a service To start/stop/restart a service To start To stop


Removing a logical volume

You can use lvremove command to remove a logical volume. On server, we have volume group with 2 logical volumes. I want to remove Logical Volume /dev/pve/vm. To do this, we need to umount the logical volume. We found, the


LVM

vgcreate – create volume group lvcreate – create a logical volume removing a logical volume lvremove – delete lvm partition. lvreduce – reduce lvm partition size. lvresize – resize lvm partition. LVM contains following layers * Physical Volumes * Volume