HostOnNet Blog

Category Archives: Linux

Sending mail from command line

Mail API – Transaction Email Service providers. Free Email Hosting YourDomain.com Spam Filter Solutions Installing Scrollout F1 Email Gateway MailScanner Check Mail Server mail-tester.com – check if your mail server settings. Mail using sendmail command To debug email servers, you


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


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


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,


mdadm

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