HostOnNet Blog

Author Archives: admin

Windows 2012 R2 Hyper-V Downloading Files with PowerShell

To download file with PowerShell, run To download Hyper-V Server ISO, to a Hyper-V server, i run You can get exact download link for ISO file from https://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2012-r2 This is timed link, so link generated for me get expired after


PostgreSQL Change User Password

Install PostgreSQL on Ubuntu 16.04 Create User and Database in PostgreSQL PostgreSQL FATAL: Peer authentication failed for user “USER_NAME” Restore PostgreSQL Database PostgreSQL DESCRIBE TABLE psql Create A User To create user in PostgreSQL, run Change User Password OR


Configuring DNS resolver with resolv.conf

resolv.conf is used by Linux servers for specifying DNS servers used to domain name resolution. Location of the file is Example In above example, google public name servers 8.8.8.8 will be used for DNS resolution. If you edit this file,


Can’t locate Time/HiRes.pm

When running bytes unixbench on a linux server, i get error To fix, you need to find which package provides this file, this is done with command Now to install package, run


dpkg

Installing a .deb Package To install .deb file, run dpkg -i file-name.deb Example Remove a Package Force Remove a Package List Installed Packages To check if a package is already installed, use dpkg -l with grep. To see which Package


Cpanel Server

Install Install Cpanel DNS Only Server Cpanel/WHM HOW-TOs Get access to Cpanel/WHM using whmapi1 Fix SSH in Cpanel Server with WHM root Access TailWatch – Monitor Services in Cpanel Server Cpanel webmail down, cpanel_php_fpm keep failing Building Packages For EasyApache


mdadm

mdadm is a command line tool to manage Software Raid in Linux. To see stats of Raid, run


Adding ISO Files to ProxMox

To add ISO images of CentOS to Proxmox, run Now ISO will be available for Install in new VMs created using ProxMox. List VMS On ProxMox Server


Mounting NFS file system in CentOS 7

When i try mounting NFS file system on CentOS 7, i get following error To mount NFS File system on CentOS 7, you need to install nfs-utils Once installed mount -t nfs worked properly.


Blocking Layer 7 DDoS with CloudFlare Firewall using Fail2ban

Fail2Ban can be configured to work with CloudFlare Firewall to block Layer 7 DDos (DoS) attacks. On Ubuntu install fail2ban with command Now you can edit and remove most of the [SECTION] from /etc/fail2ban/jail.conf if you are not using them.