How to Clear RAM Memory Cache, Buffer and Swap Space on Linux

Every Linux System has three options to clear cache without interrupting any processes or services. 1. Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches 2. Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches 3. Clear PageCache, dentries and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches If you want to clear Swap space, … Read more

enable root ssh ubuntu 16

sudo sed -i \’s/prohibit-password/yes/\’ /etc/ssh/sshd_config passwd root sudo systemctl restart sshd Related Posts:Cara Setting Port SSH di Centos 8Install netbox pada centos 7Block SSH Server Attacks (Brute Force Attacks)…Install VNC Server pada Rocky LinuxCara Setting IP Address Static di CentOS 8 untuk PemulaInstall docker Swarm di ubuntu 16.04Cara Melihat path sebuah service di centosInstall LEMP … Read more

ISPConfig 3.1: Automated installation on Debian and Ubuntu

apt-get update && apt-get -y upgrade apt-get install -y unzip cd /tmp wget –no-check-certificate -O installer.tgz \”\” tar zxvf installer.tgz cd *ispconfig* bash Related Posts:How to Upgrade Mysql in WHM/CpanelThe following cPanel service generated warnings from…Install PHP Composer pada Rocky LinuxMembuat Script grep log zimbra dan di kirim ke emailCara Mudah Install Zimbra di … Read more

How to Check Bad Sectors or Bad Blocks on Hard Disk in Linux

Then scan your Linux disk drive to check for bad sectors/blocks by typing: $ sudo badblocks -v /dev/sda10 > badsectors.txt ———— Specifically for ext2/ext3/ext4 file-systems ———— $ sudo e2fsck -l badsectors.txt /dev/sda10 OR ———— For other file-systems ———— $ sudo fsck -l badsectors.txt /dev/sda10 Scan Bad Sectors on Linux Disk Using Smartmontools ———— On Debian/Ubuntu … Read more

How To Set Up an NFS Mount on Ubuntu 12.04

Setup An NFS mount is set up between at least two virtual servers. The machine hosting the shared network is called the server, while the ones that connect to it are called ‘clients’. This tutorial requires 2 servers: one acting as the server and one as the client. We will set up the server machine … Read more