Press "Enter" to skip to content

Posts published in “Linux”

Portainer and Docker Usage

johnyan 0

Install Docker and Portainer By default, Portainer store its data inside the container in the /data folder on Linux (C:\\data on Windows). You’ll need to persist Portainer data to keep your changes after restart/upgrade of the Portainer container. You can use a bind mount on Linux to persist the data on the Docker host folder: [email protected]:/# curl -sSL | sh [email protected]:/# docker…

Some Popular Linux VPS Bench Scripts

john 0

Cloud service providers often define host tiers by the allocated resources, but the differences in the underlying hardware, architecture and performance tuning can result in varying capabilities even between similar configurations. The easiest way to measure the real differences between servers is to run a set of tests, i.e. a benchmark, to create simple to read values for comparisons. UnixBench…

Using SSMTP to Send Email From Linux VPS Command Line Through Gmail Account

johnyan 0

Ssmtp (Simple SMTP) is a little nice tool you can use under Linux command line to send out email. SSMTP allows users to transfer emails through an SMTP server from the Linux command line. It provides the means to connect to a mailhub with a proper configuration file. If your config file was set up right, all your worries regarding command…

Monit – Linux Open Source System or Process Monitor Program

johnyan 0

1. What is Monit? Monit is a utility for managing and monitoring processes, programs, files, directories and file systems on a Unix like system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. E.g. Monit can start a process if it does not run, restart a process if it does not respond and stop…

Linux Virtual Machine PHP Invoked OOM-killer (Out of Memory) Issue

johnyan 0

One of my GCP VM is running at f1-Micro type which only has limited memory, 614MB. From syslog, I found it has a PHP invoked OOM killer messages. This usually means this server essentially ran out of memory and extra memory should add into this system, Based on some posts online, especially this 2010’s  post : “The Linux kernel likes to always allocate…

Ubuntu Basic System and Service Configuration Commands

johnyan 0

1. Update / Upgrade Commands sudo apt-get update : In a nutshell, apt-get update doesn’t actually install new versions of software. Instead, it updates the package lists for upgrades for packages that need upgrading, as well as new packages that have just come to the repositories. sudo apt-get upgrade : will fetch new versions of packages existing on the machine if APT…

Install Portainer to Manage Containers – Nginx, MySQL, WordPress

johnyan 0

Portainer is a lightweight management UI which allows you to easily manage your different Docker environments (Docker hosts or Swarm clusters). It is meant to be as simple to deploy as it is to use. It consists of a single container that can run on any Docker engine (can be deployed as Linux container or a Windows native container). Portainer…

Kali Usage Tips and Tricks

johnyan 0

Kali Linux is a Debian-based Linux distribution aimed at advanced Penetration Testing and Security Auditing. Kali contains several hundred tools which are geared towards various information security tasks, such as Penetration Testing, Security research, Computer Forensics and Reverse Engineering. Download Kali: Basic Configuration Videos: