HostOnNet Blog

Author Archives: admin

find – Linux Command

Find Inside Files Find a a useful Linux command that can be used to search for files. Search files by file name To find all files in current directory with extension .png, run Find Files larger than X MB To


Cpanel Set Password Ageing

Many web sites get hacked because web site owners never change password or use simple passwords. In WHM > Configure Security Policies, you can enable Password Age and Password Strength. Settings password strength in WHM.


vi commands

Vi Commands :w Save file :wq Save and exit :q! exit with out saving. :set number Show line number. To hide, use :set nunumber Move Commands CTRL + E Scroll the window down CTRL + Y Scroll the window up


CentOS crontab: command not found

On a CentOS server, when setting up cron job, i got following error. This is because cronie package not installed. To fix, run Now you need to set crond daemon to start on boot. Now verify crond will start on


Installing Linux Malware Detect (maldet)

Linux Malware Detect (LDM) is a tool used to scan for malware. You can download Linux Malware Detect from https://www.rfxn.com/projects/linux-malware-detect/ Installing LDM LDM will be installed on folder /usr/local/maldetect/. You can run it with command maldet. Configure LDM Edit conf.maldet


KVM Windows Server 2012 Guest Port Forwarding

I have a Windows Server 2012 KVM Guest on a Linux Server. Guest VM use Private IP. To access Remote Desktop of this VM from Internet, we need to make TCP and UDP port 3389 available to public. Since KVM


Quickly Sharing Files On Ubuntu

Ubuntu used to have a public folder, that you can share using Samba. Recent versions of Ubuntu do not include Samba by default, you can install it if you need to share files regularly with other computers on network. https://www.samba.org/


Remote Backup Linux Server With Rsync

To Remote backup linux server with rsync, create a bash script. Create file Add following content In above code, replace following Make script executable We need to set cronjob to run the backup script. Add This will run backup script


backup

Backup Install Back In Time in Ubuntu Remote Backup Linux Server With Rsync MySQL Data Directory Backup with Rsync Cpanel Server Move Large Cpanel sites with pkgacct Backup Web Site Backup Site to Amazon S3 R1Soft Backup R1Soft.com backup is


mysqldump

mysqldump command is used to take MySQL backup. Take Backup of All databases To take backup of all Databases on a MySQL server, run Take Backup of a MySQL Database To take Backup of a MySQL Database, run Restoring Backup