VestaCP SSL for mail server

VestaCP Free Hosting Control Panel

VestaCP install self signed SSL for mail server by default. To install valid SSL, login to VestCP, go to sites. You will see a site with your sites hostname. If you don’t see it, create a site with your server hostname. Make sure DNS edited so hostname resolve to server IP. Now you should be … Read more

Disable Native Notification on Google Chrome Ubuntu

On Ubuntu, Google chrome had a disable native notification option. On Chrome 78, this option is removed. But you still can manually enable it. To enbale chrome notification, edit file gedit ~/.config/google-chrome/Local\ State Find “tab-hover-cards@4” Replace with “enable-native-notifications@2″,”tab-hover-cards@4” Save and exit the file. Now restart google chrome. Related Posts Google Chrome

apropos

apropos is a linux command that search manual pages and descriptions. Example root@mil-146068:~# apropos vagrant vagrant (1) – Tool for building and distributing virtualized development environments. dh_vagrant_plugin (1) – packaging helper for vagrant plugins root@mil-146068:~# See Linux Commands

bind

bind is a DNS server. To check bind configuration for errors, run named-checkconf -z /etc/named.conf if chroot named-checkconf -z -t /var/named/chroot /etc/named.conf dns working inside server, not outside install bind from yum configure bind as dns slave enable loging in bind install bind from source bind errors CentOS 7 Plesk server DNS not starting Wildcard … Read more

lighttpd too many open files

lighttpd server crashes with fllowing error in error_log file. 2019-11-05 09:39:02: (network_linux_sendfile.c.143) open failed: Too many open files 2019-11-05 09:39:02: (connections.c.603) connection closed: write failed on fd 1228 2019-11-05 09:39:02: (response.c.537) file not found … or so: Too many open files /4032/1_451.jpg -> As lighttpd is a single-threaded server, its main resource limit is the … Read more

df not showing all mounts

On a server, df not showing all mounts root@server20 [~]# df -h Filesystem Size Used Avail Use% Mounted on tmpfs 3.9G 0 3.9G 0% /dev/shm root@server20 [~]# This is caused by corrupt /etc/mtab To fix mv /etc/mtab /etc/mtab.old cat /proc/mounts > /etc/mtab See df

Show disk usage with df

df command shows partitions and disks used by each partition. root@server54 [~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 450G 380G 47G 90% / /dev/sda1 99M 11M 83M 12% /boot tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sdb1 458G 390G 46G 90% /backup /usr/tmpDSK 485M 63M 397M 14% /tmp root@server54 [~]# To see … Read more

RHCSA Study Guide

1. Logical volume ‘home’ as created and mounted. Reduce its size to ‘192M’ (size from 185M to 200MB is acceptable) # lvdispaly # umount /dev/vgsrv/home # e2fsck -f /dev/vgsrv/home # resize2fs /dev/vgsrv/home 192M # lvcreduce -L 192M /dev/vgsrv/home # mount /dev/vgsrv/home # lvdisplay # lvdisplay # umount /dev/vgsrv/home # lvextend -L 256M /dev/vgsrv/home # e2fsck … Read more

debconf: unable to initialize frontend: Dialog

When installing a program in Ubuntu 18.04 server minimal installation, i get following error debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.) debconf: falling back to frontend: Readline To fix this, run apt -y install whiptail OR apt … Read more

Install Unbound DNS caching server

Unbound is an Open source DNS caching and recursive resolver. You can find more about unbound at https://nlnetlabs.nl/projects/unbound/about/ To install unbound on Ubuntu/Debian, run apt install unbound To start unbound systemctl start unbound Set unbound to start on boot systemctl enable unbound To configure your server to use local name servers provided by unbound, edit … Read more